Querying Call Information (queryCallInfoByCallId)
Scenario
This interface is invoked to query call information.
Method
POST
URI
https://Domain name/apiaccess/rest/workbench/v1/queryCallInfoByCallId (For example, the domain name is service.besclouds.com.)
Request Description
No. |
Parameter |
Type |
Mandatory or Not |
Description |
---|---|---|---|---|
1 |
X-APP-Key |
String |
No |
App key, which is the user ID. |
2 |
Authorization |
String |
Yes |
Authentication field. The format is Bearer {Value of AccessToken returned by the tokenByAkSk interface}. (A space is required after Bearer.) |
No. |
Parameter |
Type |
Mandatory or Not |
Description |
---|---|---|---|---|
1 |
callId |
String |
Yes |
Call ID. |
2 |
userId |
String |
Yes |
User ID. |
3 |
tenantId |
String |
Yes |
Tenant ID. |
4 |
agentId |
String |
Yes |
Agent ID. |
Response Description
- Status code: 200
No. |
Parameter |
Type |
Mandatory or Not |
Description |
---|---|---|---|---|
1 |
caller |
Number |
No |
Calling number. |
2 |
called |
Number |
No |
Called number. |
3 |
mediaAbility |
Number |
No |
Media type. |
4 |
calldata |
String |
No |
Call-associated data. |
5 |
callId |
String |
No |
Call ID. |
6 |
callSkillId |
Number |
No |
Call skill ID. |
7 |
callSkill |
String |
No |
Call skill description. |
8 |
callType |
Number |
No |
Call type. |
- Status code: 400
Incorrect request. Check the request path and parameters.
- Status code: 401
Unauthorized operation. 1. Check whether you have purchased related services. 2. Contact customer service to check the status of your account.
- Status code: 404
The requested content is not found. Check the request path.
- Status code: 500
Business failure. Check the values of parameters in the request.
Error Codes
None
Example
Request header:
x-app-key:9******************************3 Authorization:Bearer 9******************************7
Request parameters:
{ "callId": "1652317325-339", "userId": "1652268429538866153", "tenantId": "202205116084", "agentId": "109", }
Response parameters:
{ "caller": 70004, "called": 60015, "mediaAbility": 1, "calldata": "1", "callId": "1652317325-339", "callSkillId": 1, "callSkill": "voice", "callType": 0 }
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot