{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Call Data
Export Transcripts
Export call transcripts in various formats.
GET
/
api
/
v1
/
calls
/
{call_id}
/
transcripts
/
export
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}This endpoint allows you to export the full transcript of a specific call to a file. You can choose from several formats.
The response from this endpoint will be a file download.
If
If
Path Parameters
call_id(integer, required): The unique identifier for the call whose transcript you want to export.
Query Parameters
format(string, optional, default:txt): The desired file format.- Allowed values:
txt,json,csv.
- Allowed values:
speaker(string, optional): Filter transcripts to include only a specific speaker (userorassistant).
Response Formats
Ifformat=txt:
You will receive a plain text file (.txt) with the conversation formatted for readability.
Text Content
[10:00:05] assistant: Hello, how can I help you today?
[10:00:10] user: Yes, I'd like to check the status of my order.
format=json:
You will receive a JSON file (.json) containing call metadata and a transcripts array.
JSON Content
{
"call_id": 101,
"call_sid": "CAxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"started_at": "2023-10-30T10:00:00Z",
"transcripts": [
{
"speaker": "assistant",
"content": "Hello, how can I help you today?",
"timestamp": "2023-10-30T10:00:05Z",
"confidence": 0.95,
"segment_start": 0.0,
"segment_end": 2.5
},
{
"speaker": "user",
"content": "Yes, I'd like to check the status of my order.",
"timestamp": "2023-10-30T10:00:10Z",
"confidence": 0.93,
"segment_start": 4.1,
"segment_end": 7.2
}
]
}
format=csv:
You will receive a CSV file (.csv) with the transcript data.
CSV Content
"Timestamp","Speaker","Content","Confidence"
"2023-10-30T10:00:05Z","assistant","Hello, how can I help you today?","0.95"
"2023-10-30T10:00:10Z","user","Yes, I'd like to check the status of my order.","0.93"
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
Export format
Pattern:
^(txt|json|csv)$Filter by speaker
Response
Successful Response
⌘I