QueryTouchList
Queries contact data based on instance, contact ID list, session ID list, and other conditions.
Operation description
This operation queries contact data, including contact status, session acceptor, agent name, contact channel, satisfaction score, and evaluation status. For more information, see Response elements.
QPS limit
Per-user call frequency: not throttled.
API frequency: 50 calls per second.
If the total calls from multiple users exceed the API frequency, throttling is triggered.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the Artificial Intelligence Cloud Call Service (AICCS) instance. You can obtain the instance ID from Instance Management in the left-side navigation pane of the Artificial Intelligence Cloud Call Service console. |
ccc_xp_pre-cn-*** |
| TouchId |
array |
No |
The list of contact IDs to query exactly. |
|
|
integer |
No |
The contact ID. |
10**** |
|
| ChannelId |
array |
No |
The list of session IDs to query exactly. |
|
|
string |
No |
The session ID. |
846a7a4aa2524186b899a6ba02**** |
|
| ChannelType |
array |
No |
The channel type. Valid values:
|
|
|
integer |
No |
The channel type. Valid values:
|
1 |
|
| TouchType |
array |
No |
The contact type. Valid values:
|
|
|
integer |
No |
The contact type. Valid values:
|
2 |
|
| MemberId |
array |
No |
The list of member IDs to query. |
|
|
integer |
No |
The member ID. |
1000 |
|
| MemberName |
array |
No |
The list of member names to query. |
|
|
string |
No |
The member name. |
zhangsan |
|
| ServicerId |
array |
No |
The list of agent IDs to query. |
|
|
integer |
No |
The agent ID. |
70020 |
|
| ServicerName |
array |
No |
The list of agent names to query. |
|
|
string |
No |
The agent name. |
lisi |
|
| QueueId |
array |
No |
The list of inbound skill group IDs. |
|
|
integer |
No |
The inbound skill group ID. |
10000 |
|
| EvaluationStatus |
array |
No |
The evaluation status. Valid values:
|
|
|
integer |
No |
The evaluation status. Valid values:
|
0 |
|
| EvaluationLevel |
array |
No |
The satisfaction level. Valid values:
|
|
|
integer |
No |
The satisfaction level. Valid values:
|
5 |
|
| EvaluationScore |
array |
No |
The satisfaction score. Valid values:
|
|
|
integer |
No |
The satisfaction score. Valid values:
|
5 |
|
| FirstTimeStart |
integer |
No |
The start of the time range for session start time. The value is a timestamp in milliseconds. |
1614596400000 |
| FirstTimeEnd |
integer |
No |
The end of the time range for session start time. The value is a timestamp in milliseconds. |
1614599400000 |
| CloseTimeStart |
integer |
No |
The start of the time range for session end time. The value is a timestamp in milliseconds. |
1614600400000 |
| CloseTimeEnd |
integer |
No |
The end of the time range for session end time. The value is a timestamp in milliseconds. |
1614600500000 |
| PageSize |
integer |
No |
The number of entries per page. The value must be greater than 0. Default value: 20. |
20 |
| CurrentPage |
integer |
No |
The current page number. The value must be greater than 0. Default value: 1. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| ResultData |
object |
The data result. |
|
| Empty |
boolean |
Indicates whether the result is empty. |
false |
| OnePageSize |
integer |
The page size. |
2 |
| TotalPage |
integer |
The total number of pages. |
4 |
| CurrentPage |
integer |
The current page number. |
1 |
| PreviousPage |
integer |
The previous page number. |
2 |
| TotalResults |
integer |
The total number of results. |
100 |
| Data |
array<object> |
The data. |
|
|
array<object> |
The response data. |
||
| ParentTouchId |
integer |
The parent touch ID. |
0 |
| DepId |
integer |
The department ID. |
100 |
| GmtModified |
integer |
The update time. The value is a timestamp in milliseconds. |
1611207979000 |
| UserTouchId |
integer |
The user touch ID. |
1386**** |
| CommonQueueName |
string |
The skill group name. |
Test1 |
| ChannelId |
string |
The session ID. |
4f8807a9de024507a3090b5b66a8**** |
| TouchId |
string |
The contact ID. |
1386**** |
| MemberId |
integer |
The member ID. |
6400665**** |
| ServicerName |
string |
The agent name. |
1390000**** |
| Feedback |
string |
The feedback. |
xxxx |
| TouchType |
integer |
The touch type. Valid values:
|
2 |
| Status |
integer |
The touch status. Valid values:
|
1 |
| SwitchUser |
string |
The transfer list. |
null |
| FirstTime |
integer |
The session pickup time. The value is a timestamp in milliseconds. |
1611209971000 |
| FromId |
integer |
The session initiator. |
6400665**** |
| QueueId |
integer |
The skill group ID. |
111 |
| ExtAttrsString |
object |
The large field. |
|
| TouchTime |
string |
The session duration, in seconds. |
111 |
| ToId |
integer |
The session receiver. |
67**** |
| BuId |
integer |
The tenant ID. |
905 |
| GmtCreate |
integer |
The creation time. The value is a timestamp in milliseconds. |
1611209971000 |
| CloseTime |
integer |
The session end time. The value is a timestamp in milliseconds. |
1611207976000 |
| ExtAttrs |
object |
The extended fields. |
|
| EvaluationScore |
integer |
The satisfaction score. Valid values:
|
1 |
| OnlineJoinRespInterval |
integer |
The first response duration, in seconds. |
1 |
| Dnis |
string |
The called number for both outbound and inbound calls. |
05712688**** |
| OnlineSessionSource |
integer |
The online session source. |
0 |
| EvaluationStatus |
integer |
The evaluation status. Valid values:
|
1 |
| EvaluationLevel |
integer |
The satisfaction level. Valid values:
|
2 |
| OutCallRouteNumber |
string |
The calling number for outbound calls. |
05712688**** |
| Ani |
string |
The calling number for inbound calls. |
187****0000 |
| EvaluationSolution |
integer |
The evaluation Solutions. |
0 |
| TouchEndReason |
integer |
The end reason. |
2 |
| MemberName |
string |
The member name. |
Visitor |
| ServicerId |
integer |
The agent ID. |
67**** |
| ChannelType |
integer |
The touch channel. |
1 |
| TouchContent |
string |
The session end reason. Valid values:
|
1 |
| NextPage |
integer |
The next page number. |
2 |
| Message |
string |
The status code description. |
Success |
| RequestId |
string |
The request ID. |
865658FD-80DE-5D49-ABEB-F3CC9863F4F1 |
| Code |
string |
The status code. |
200 |
| Success |
boolean |
Indicates whether the API call was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"ResultData": {
"Empty": false,
"OnePageSize": 2,
"TotalPage": 4,
"CurrentPage": 1,
"PreviousPage": 2,
"TotalResults": 100,
"Data": [
{
"ParentTouchId": 0,
"DepId": 100,
"GmtModified": 1611207979000,
"UserTouchId": 0,
"CommonQueueName": "Test1",
"ChannelId": "4f8807a9de024507a3090b5b66a8****",
"TouchId": "1386****",
"MemberId": 0,
"ServicerName": "1390000****",
"Feedback": "xxxx",
"TouchType": 2,
"Status": 1,
"SwitchUser": "null",
"FirstTime": 1611209971000,
"FromId": 0,
"QueueId": 111,
"ExtAttrsString": {
"test": "test",
"test2": 1
},
"TouchTime": "111",
"ToId": 0,
"BuId": 905,
"GmtCreate": 1611209971000,
"CloseTime": 1611207976000,
"ExtAttrs": {
"EvaluationScore": 1,
"OnlineJoinRespInterval": 1,
"Dnis": "05712688****",
"OnlineSessionSource": 0,
"EvaluationStatus": 1,
"EvaluationLevel": 2,
"OutCallRouteNumber": "05712688****",
"Ani": "187****0000",
"EvaluationSolution": 0
},
"TouchEndReason": 2,
"MemberName": "Visitor",
"ServicerId": 0,
"ChannelType": 1,
"TouchContent": "1"
}
],
"NextPage": 2
},
"Message": "Success",
"RequestId": "865658FD-80DE-5D49-ABEB-F3CC9863F4F1",
"Code": "200",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | SystemError | A system error occurred. Please contact the administrator. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.