Get Call Transcripts
curl --request GET \
--url https://api.example.com/api/v1/calls/{call_id}/transcripts \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v1/calls/{call_id}/transcripts"
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', 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",
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"
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")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/calls/{call_id}/transcripts")
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[
{
"content": "<string>",
"id": 123,
"call_id": 123,
"is_final": true,
"speaker": "<string>",
"segment_start": 123,
"segment_end": 123,
"confidence": 123,
"created_at": "2023-11-07T05:31:56Z"
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Call Data
Get Transcripts by Call ID
Get all transcripts for a call.
Returns transcripts if the call belongs to an assistant in your organization.
GET
/
api
/
v1
/
calls
/
{call_id}
/
transcripts
Get Call Transcripts
curl --request GET \
--url https://api.example.com/api/v1/calls/{call_id}/transcripts \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v1/calls/{call_id}/transcripts"
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', 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",
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"
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")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/calls/{call_id}/transcripts")
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[
{
"content": "<string>",
"id": 123,
"call_id": 123,
"is_final": true,
"speaker": "<string>",
"segment_start": 123,
"segment_end": 123,
"confidence": 123,
"created_at": "2023-11-07T05:31:56Z"
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}This endpoint retrieves a list of all transcript entries for a specific call, identified by its database ID.
Path Parameters
call_id(integer, required): The unique identifier for the call.
Query Parameters
speaker(string, optional): Filter transcripts by the speaker.- Allowed values:
user,assistant.
- Allowed values:
include_interim(boolean, optional, default: false): Whether to include non-final (interim) transcript entries.
Response
The response is a JSON array of transcript objects.Response
[
{
"id": 1,
"call_id": 101,
"text": "Hello, how can I help you today?",
"speaker": "assistant",
"is_final": true,
"timestamp": "2023-10-30T10:00:05Z"
},
{
"id": 2,
"call_id": 101,
"text": "Yes, I'd like to check the status of my order.",
"speaker": "user",
"is_final": true,
"timestamp": "2023-10-30T10:00:10Z"
}
]
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
Filter by speaker (user/assistant)
Include interim (non-final) transcripts