調(diào)用GetCallDetailRecord獲取指定實(shí)例下指定通話ID對(duì)應(yīng)的通話的詳情。
調(diào)試
您可以在OpenAPI Explorer中直接運(yùn)行該接口,免去您計(jì)算簽名的困擾。運(yùn)行成功后,OpenAPI Explorer可以自動(dòng)生成SDK代碼示例。
授權(quán)信息
當(dāng)前API暫無授權(quán)信息透出。
請(qǐng)求參數(shù)
名稱 | 類型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
ContactId | string | 是 | 通話 ID。 | job-10963442671187**** |
InstanceId | string | 是 | 實(shí)例 ID。 | ccc-test |
返回參數(shù)
示例
正常返回示例
JSON
格式
{
"Code": "OK",
"HttpStatusCode": 200,
"Message": "無",
"RequestId": "7BEEA660-A45A-45E3-98CC-AFC65E715C23",
"Data": {
"ReleaseInitiator": "customer",
"ContactDisposition": "Success",
"ContactType": "OUTBOUND",
"AgentIds": "agent1@ccc-test,agent2@ccc-test",
"CallDuration": 50,
"RecordingReady": true,
"EstablishedTime": 1532458000000,
"InstanceId": "ccc-test",
"SatisfactionSurveyOffered": true,
"CalledNumber": "1332315****",
"AgentNames": "agent1,agent2",
"Satisfaction": 1,
"StartTime": 1532458000000,
"ContactId": "job-10963442671187****",
"SatisfactionSurveyChannel": "IVR",
"ReleaseTime": 1532458000000,
"CallingNumber": "0533128****",
"SkillGroupNames": "測試技能組",
"SkillGroupIds": "skillgroup@ccc-test",
"AgentEvents": [
{
"AgentName": "坐席小王",
"AgentId": "agent@ccc-test",
"SkillGroupId": "skillgroup@ccc-test",
"EventSequence": [
{
"Event": "Dialing",
"EventTime": 1604639129000,
"Duration": 3
}
]
}
],
"IvrEvents": [
{
"FlowId": "edaf2eaa-8f88-44ca-812e-41b3cd2b7a90",
"EventSequence": [
{
"Event": "Route2IVR",
"EventTime": 1604639129000
}
],
"FlowType": "MAIN_FLOW"
}
],
"QueueEvents": [
{
"QueueId": "skillgroup@ccc-test",
"QueueName": "測試技能組",
"FlowId": "edaf2eaa-8f88-44ca-812e-41b3cd2b7a90",
"QueueType": 1,
"EventSequence": [
{
"Event": "Enqueue",
"EventTime": 1604639129000
}
]
}
],
"CustomerEvents": [
{
"CustomerId": "1332315****",
"EventSequence": [
{
"Event": "Released",
"EventTime": 1532458000000
}
]
}
],
"CallerLocation": " 山東省-淄博",
"CalleeLocation": "河北省-唐山",
"EarlyMediaState": "NotConnected",
"ReleaseReason": "200 - OK",
"AnalyticsReportReady": true,
"AnalyticsReport": {
"ProblemSolving": {
"TaskId": "",
"Success": true,
"Solved": true,
"Problem": "",
"Solution": ""
},
"Emotion": {
"TaskId": "",
"Success": true,
"Type": "",
"Confidence": 0,
"Remark": ""
},
"Satisfaction": {
"TaskId": "",
"Success": true,
"SatisfactionDescription": "",
"Remark": ""
},
"TodoList": {
"TaskId": "",
"Success": true,
"Tasks": [
""
]
}
}
}
}
錯(cuò)誤碼
HTTP status code | 錯(cuò)誤碼 | 錯(cuò)誤信息 | 描述 |
---|---|---|---|
400 | Parameter.Blank | The parameter %s may not be null or blank. | 該參數(shù)不能為null或含有空白符的字符串。 |
訪問錯(cuò)誤中心查看更多錯(cuò)誤碼。