통화 기록

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
}