통화 기록

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": "创建时间"
  }
]