curl --request POST \
--url https://open.bigmodel.cn/api/paas/v4/assistant/conversation/list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"assistant_id": "65940acff94777010aa6b796"
}'
{
"success": true,
"code": 200,
"msg": "操作成功",
"data": {
"assistant_id": "65940acff94777010aa6b796",
"conversation_list": [
{
"id": "conv_123456",
"assistant_id": "65940acff94777010aa6b796",
"create_time": "2024-01-01T10:00:00Z",
"update_time": "2024-01-01T10:30:00Z",
"usage": {
"prompt_tokens": 123,
"completion_tokens": 123,
"total_tokens": 123
}
}
],
"has_more": true
}
}
查询指定智能体的会话列表,支持分页查询。
curl --request POST \
--url https://open.bigmodel.cn/api/paas/v4/assistant/conversation/list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"assistant_id": "65940acff94777010aa6b796"
}'
{
"success": true,
"code": 200,
"msg": "操作成功",
"data": {
"assistant_id": "65940acff94777010aa6b796",
"conversation_list": [
{
"id": "conv_123456",
"assistant_id": "65940acff94777010aa6b796",
"create_time": "2024-01-01T10:00:00Z",
"update_time": "2024-01-01T10:30:00Z",
"usage": {
"prompt_tokens": 123,
"completion_tokens": 123,
"total_tokens": 123
}
}
],
"has_more": true
}
}
使用以下格式进行身份验证:Bearer <your api key>
业务处理成功
The response is of type object
.