Retrieves a list of a user's Q&A sessions.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
energy:GetChatSessionList |
none |
*All Resource
|
None | None |
Request syntax
POST /api/v2/aidoc/document/chat/session/list HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request parameters. |
|
| name |
string |
No |
The session name. |
oklabs |
| userId |
string |
No |
The unique ID of the user. If this parameter is left empty, the ID of the account that calls the SDK is used by default. |
12222 |
| currentPage |
integer |
No |
The page number for paging. The default value is 1. |
1 |
| pageSize |
integer |
No |
The number of entries per page. The default value is 10. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| requestId |
string |
The ID of the request. |
83A5A7DD-8974-5769-952E-590A97BEA34E |
| data |
object |
The returned data. |
|
| sessionList |
array<object> |
The list of sessions. |
|
|
object |
|||
| sessionId |
string |
The ID of the Q&A session. This ID is used to track multiple Q&A pairs for the same user. |
5c748ef9-3f23-4b5a-916f-966c0d2c6dcd |
| name |
string |
The session name. |
student_app_spelling |
| userId |
string |
The user ID for the current session. |
12222 |
| folderId |
string |
The ID of the folder. This specifies the scope of documents for the query. |
3493370b-4884-47dd-95ed-49038769af53 |
| createTime |
integer |
The timestamp when the session was created. This is a UNIX timestamp in milliseconds. |
2025-01-01T14:45:17Z |
| updateTime |
integer |
The timestamp of the last update. This is a UNIX timestamp in milliseconds. |
2024-12-30T02:05:03Z |
| total |
integer |
The total number of records. |
21 |
| totalPage |
integer |
The total number of pages. |
3 |
| currentPage |
integer |
The current page number. |
1 |
| pageSize |
integer |
The number of entries per page. |
10 |
Examples
Success response
JSON format
{
"requestId": "83A5A7DD-8974-5769-952E-590A97BEA34E\n",
"data": {
"sessionList": [
{
"sessionId": "5c748ef9-3f23-4b5a-916f-966c0d2c6dcd",
"name": "student_app_spelling",
"userId": "12222",
"folderId": "3493370b-4884-47dd-95ed-49038769af53",
"createTime": 0,
"updateTime": 0
}
],
"total": 21,
"totalPage": 3,
"currentPage": 1,
"pageSize": 10
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.