通話記録

List call logs

GET/openapi/calllog

リクエスト

パラメータ

taskIdinteger

クエリパラメータ · Format: 1,2 — separate multiple task IDs with commas, up to 10

startTimestring

クエリパラメータ · Format: 2006-01-02 15:04:05; defaults to the start of today

endTimestring

クエリパラメータ · Format: 2006-01-02 15:04:05; defaults to the end of today

directionstring

クエリパラメータ · inbound for incoming calls, outbound for outgoing calls

phonestring

クエリパラメータ · Caller or callee phone number

pageIndexinteger

クエリパラメータ · Page number, defaults to 1

pageSizeinteger

クエリパラメータ · Items per page, defaults to 10, max 100

assistantIdsarray

クエリパラメータ · Assistant ID

descriptionstring

クエリパラメータ · Filter by call type: phone = phone call, privateTest = debug call

リクエストボディ

フィールドなし

レスポンス

200 OK
itemsobject[]必須
[].sessionIdstring
[].taskIdinteger
[].startAtstring
[].answerAtstring
[].endAtstring
[].calleestring
[].callerstring
[].directionstring
[].durationinteger
[].billsecinteger
[].recordFilestring
[].assistantobject[]必須
[].idinteger必須

Assistant ID

[].vidinteger必須

Assistant version ID

totalinteger必須
pageIndexinteger必須
pageSizeinteger必須

サンプルコード

curl -X GET 'https://openapi.voicefox.ai/openapi/calllog?taskId=0&startTime=string&endTime=string&direction=string&phone=string&pageIndex=0&pageSize=0&assistantIds=0&description=string' \
  -H 'Authorization: Bearer <YOUR_TOKEN>' \
  -H 'Content-Type: application/json'

レスポンス例

{
  "items": [
    {
      "sessionId": "string",
      "taskId": 0,
      "startAt": "string",
      "answerAt": "string",
      "endAt": "string",
      "callee": "string",
      "caller": "string",
      "direction": "string",
      "duration": 0,
      "billsec": 0,
      "recordFile": "string",
      "assistant": [
        {
          "id": 0,
          "vid": 0
        }
      ]
    }
  ],
  "total": 0,
  "pageIndex": 0,
  "pageSize": 0
}