A complete report combining the core fields, artifact, and compliance object:
{
"message": {
"type": "end-of-call-report",
"endedReason": "assistantEndedCall",
"call": {
"id": "call-123",
"assistantId": "asst-456",
"status": "ended"
},
"startedAt": "2024-01-15T10:25:00Z",
"endedAt": "2024-01-15T10:35:00Z",
"cost": 0.15,
"artifact": {
"recording": {
"stereoUrl": "https://storage.sulus.ai/recordings/call-123-stereo.wav",
"mono": {
"combinedUrl": "https://storage.sulus.ai/recordings/call-123-mono.wav"
}
},
"transcript": "AI: For quality purposes this call may be recorded, do you consent? User: Yes. AI: Great, how can I help you today? User: I need to reschedule an appointment.",
"messages": [
{ "role": "assistant", "message": "For quality purposes this call may be recorded, do you consent?" },
{ "role": "user", "message": "Yes." },
{ "role": "assistant", "message": "Great, how can I help you today?" },
{ "role": "user", "message": "I need to reschedule an appointment." }
],
"messagesOpenAIFormatted": [
{ "role": "assistant", "content": "For quality purposes this call may be recorded, do you consent?" },
{ "role": "user", "content": "Yes." },
{ "role": "assistant", "content": "Great, how can I help you today?" },
{ "role": "user", "content": "I need to reschedule an appointment." }
]
},
"compliance": {
"recordingConsent": {
"type": "verbal",
"grantedAt": "2024-01-15T10:25:08Z"
}
}
}
}