通話記録

Get call log details

GET/openapi/call_logs/{sessionID}

リクエスト

パラメータ

sessionIDstring必須

パスパラメータ · Session ID

レスポンス

200 OK
idinteger必須

通话记录ID

sessionIdstring必須

会话ID

scriptPlanIdinteger必須

IVR ID

agentIdstring

坐席ID

numberIdinteger必須

号码ID

taskIdinteger

任务ID

taskItemIdinteger

任务记录ID

startAtstring必須

开始时间

endAtstring必須

挂机时间

answerAtstring必須

应答时间

createdAtstring必須

创建时间

calleestring必須

被叫号码

calleeAttributestring必須

被叫号码归属地

callerstring必須

主叫号码

callerAttributestring必須

主叫号码归属地

directionstring必須

呼叫方向

inboundoutbound
agentNamestring

坐席姓名

recordFilestring必須

通话记录

durationinteger必須

通话时长

billsecinteger必須

计费时长

hangupSidestring必須

挂机方

hangupReasonstring必須

挂机原因

collectobject[]必須

信息收集结果

[].vidinteger

助手版本ID

[].itemsobject[]必須
[].questionstring必須

问题

[].optionboolean必須

是否有选项

[].answerOptionstring[]

问题可选答案

[].answerstring

答案

[].hitboolean必須

是否收集

[].messagestring
ringTimeinteger

振铃

assistantVidsinteger[]

使用的助手ID数组

サンプルコード

curl -X GET 'https://openapi.voicefox.ai/openapi/call_logs/{sessionID}' \
  -H 'Authorization: Bearer <YOUR_TOKEN>' \
  -H 'Content-Type: application/json'

レスポンス例

{
  "id": 0,
  "sessionId": "会话ID",
  "scriptPlanId": 0,
  "agentId": "坐席ID",
  "numberId": 0,
  "taskId": 0,
  "taskItemId": 0,
  "startAt": "开始时间",
  "endAt": "挂机时间",
  "answerAt": "应答时间",
  "createdAt": "创建时间",
  "callee": "被叫号码",
  "calleeAttribute": "被叫号码归属地",
  "caller": "主叫号码",
  "callerAttribute": "主叫号码归属地",
  "direction": "inbound",
  "agentName": "坐席姓名",
  "recordFile": "通话记录",
  "duration": 0,
  "billsec": 0,
  "hangupSide": "挂机方",
  "hangupReason": "挂机原因",
  "collect": [
    {
      "vid": 0,
      "items": [
        {
          "question": "问题",
          "option": false,
          "answerOption": [
            "string"
          ],
          "answer": "答案",
          "hit": false,
          "message": "string"
        }
      ]
    }
  ],
  "ringTime": 0,
  "assistantVids": [
    0
  ]
}