通話記録
Get conversation history
GET
/openapi/calltrace/{sessionId}リクエスト
パラメータ
sessionIdstring必須パスパラメータ · Session ID
レスポンス
200 OK
[].sessionIdstring必須
会话ID
[].eventstring必須
1. system.say — assistant speech; 2. customer.say — user speech; 3. begin — call started; 4. hangup — call ended; 5. transfer.connected — call transferred
[].contentstring必須
对话内容
[].elapsedMillSecondsinteger必須
Time elapsed since the session started (ms)
[].dialogIDstring必須
对话轮次ID
[].createdAtstring必須
创建时间
サンプルコード
curl -X GET 'https://openapi.voicefox.ai/openapi/calltrace/{sessionId}' \
-H 'Authorization: Bearer <YOUR_TOKEN>' \
-H 'Content-Type: application/json'レスポンス例
[
{
"sessionId": "会话ID",
"event": "对话类型",
"content": "对话内容",
"elapsedMillSeconds": 0,
"dialogID": "对话轮次ID",
"createdAt": "创建时间"
}
]