Export Call Transcripts
curl --request GET \
--url https://api.example.com/api/v1/calls/{call_id}/transcripts/export \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v1/calls/{call_id}/transcripts/export"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v1/calls/{call_id}/transcripts/export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v1/calls/{call_id}/transcripts/export",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/calls/{call_id}/transcripts/export"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/v1/calls/{call_id}/transcripts/export")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/calls/{call_id}/transcripts/export")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"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
Export Call Transcripts
curl --request GET \
--url https://api.example.com/api/v1/calls/{call_id}/transcripts/export \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v1/calls/{call_id}/transcripts/export"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v1/calls/{call_id}/transcripts/export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v1/calls/{call_id}/transcripts/export",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/calls/{call_id}/transcripts/export"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/v1/calls/{call_id}/transcripts/export")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/calls/{call_id}/transcripts/export")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"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
[2023-10-30T10:00:05Z] assistant: Hello, how can I help you today?
[2023-10-30T10:00:10Z] user: Yes, I'd like to check the status of my order.
format=json:
You will receive a JSON file (.json) containing an array of transcript objects.
JSON Content
[
{
"speaker": "assistant",
"text": "Hello, how can I help you today?",
"timestamp": "2023-10-30T10:00:05Z"
},
{
"speaker": "user",
"text": "Yes, I'd like to check the status of my order.",
"timestamp": "2023-10-30T10:00:10Z"
}
]
format=csv:
You will receive a CSV file (.csv) with the transcript data.
CSV Content
"timestamp","speaker","text"
"2023-10-30T10:00:05Z","assistant","Hello, how can I help you today?"
"2023-10-30T10:00:10Z","user","Yes, I'd like to check the status of my order."
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