通話記録
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
}