ListConversations
Queries a list of sessions.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
voicebot:ListConversations |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance IDs. |
da37319b-6c83-4268-9f19-814aed62e401 |
| PageNumber |
integer |
Yes |
The page number. |
1 |
| PageSize |
integer |
Yes |
The number of entries per page. |
10 |
| CallingNumber |
string |
No |
The calling number. |
138106***** |
| Result |
integer |
No |
The result. |
0 |
| Query |
string |
No |
The query conditions. |
13788914724 |
| BeginTimeLeftRange |
integer |
No |
The lower bound of the start time range. |
1638288000000 |
| BeginTimeRightRange |
integer |
No |
The upper bound of the start time range. |
1637547875311 |
| IsSandBox |
string |
No |
Specifies whether the sandbox mode is enabled. |
false |
| RoundsLeftRange |
integer |
No |
The lower bound of the conversation rounds range. |
1 |
| RoundsRightRange |
integer |
No |
The upper bound of the conversation rounds range. |
3 |
| DebugConversation |
integer |
No |
||
| AbTestId |
string |
No |
The AB test ID. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Conversations |
array<object> |
The list of sessions. |
|
|
object |
The list of sessions. |
||
| AbTestName |
string |
||
| CalledNumber |
string |
The called number. |
12356 |
| CallingNumber |
string |
The calling number. |
135815884*** |
| ConversationId |
string |
The session ID. |
82b2eaae-ce5c-45f8-8231-f15b6b27e55c |
| DsReport |
string |
||
| DsReportTitles |
array |
||
|
string |
|||
| EndReason |
integer |
The reason for ending the session. Valid values:
|
1 |
| EndTime |
integer |
The end time. |
1582266750353 |
| HasLastPlaybackCompleted |
boolean |
Specifies whether the last prompt was fully played before the session ended. |
true |
| HasToAgent |
boolean |
Specifies whether the session was transferred to a human agent. |
false |
| Rounds |
integer |
The number of conversation rounds. |
2 |
| SandBox |
boolean |
Specifies whether the sandbox mode is enabled. |
true |
| SkillGroup |
string |
The skill group. |
skg-123 |
| StartTime |
integer |
The start time. |
1641625694286 |
| Voice |
string |
The text-to-speech (TTS) voice used for the call. |
cosyvoice-v3-flash:longanyang |
| PageNumber |
integer |
The page number. |
1 |
| PageSize |
integer |
The number of entries per page. |
10 |
| RequestId |
string |
The request ID. |
a2c26e67-5984-4935-984e-bcee52971993 |
| TotalCount |
integer |
The total number of entries. |
1 |
Examples
Success response
JSON format
{
"Conversations": [
{
"AbTestName": "",
"CalledNumber": "12356",
"CallingNumber": "135815884***",
"ConversationId": "82b2eaae-ce5c-45f8-8231-f15b6b27e55c",
"DsReport": "",
"DsReportTitles": [
""
],
"EndReason": 1,
"EndTime": 1582266750353,
"HasLastPlaybackCompleted": true,
"HasToAgent": false,
"Rounds": 2,
"SandBox": true,
"SkillGroup": "skg-123",
"StartTime": 1641625694286,
"Voice": "cosyvoice-v3-flash:longanyang"
}
],
"PageNumber": 1,
"PageSize": 10,
"RequestId": "a2c26e67-5984-4935-984e-bcee52971993",
"TotalCount": 1
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter %s is invalid. | |
| 500 | InternalError | An error occurred while processing your request. Please try again later. Submit a ticket if the error still exists. | |
| 404 | InvalidInstanceId.NotFound | The specified InstanceId does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.