Redirect to a fresh download URL for a Sarj.ai call recording
curl --request GET \
--url https://platform-api.sarj.ai/api/v1/calls/{call_id}/recording \
--header 'Authorization: Bearer <token>'import requests
url = "https://platform-api.sarj.ai/api/v1/calls/{call_id}/recording"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform-api.sarj.ai/api/v1/calls/{call_id}/recording', 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://platform-api.sarj.ai/api/v1/calls/{call_id}/recording",
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://platform-api.sarj.ai/api/v1/calls/{call_id}/recording"
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://platform-api.sarj.ai/api/v1/calls/{call_id}/recording")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform-api.sarj.ai/api/v1/calls/{call_id}/recording")
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_bodyThis response has no body data.{
"error": {
"message": "<string>",
"field_violations": [
{
"field": "phone_number.country_code",
"message": "Must start with +"
}
],
"type": "validation_error"
},
"meta": {
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}{
"error": {
"message": "<string>",
"field_violations": [
{
"field": "phone_number.country_code",
"message": "Must start with +"
}
],
"type": "validation_error"
},
"meta": {
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}{
"error": {
"message": "<string>",
"field_violations": [
{
"field": "phone_number.country_code",
"message": "Must start with +"
}
],
"type": "validation_error"
},
"meta": {
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}Calls
Redirect to a fresh download URL for a Sarj.ai call recording
Resolve a Sarj.ai recording link to a freshly minted, short-lived download URL via a 302 redirect. Two ways to authenticate: an API key (the standard /api/v1 Bearer credential — the request is authorized against the key’s organization), or, when no API key is sent, a call-scoped recording token in the X-Sarj-Recording-Token header (preferred) or the t query parameter. The token exists for header-less consumers such as an HTML5 audio player; prefer the API key or the header, since the t query form places a credential in the URL. If an API key is present it always wins and the token is ignored.
GET
/
calls
/
{call_id}
/
recording
Redirect to a fresh download URL for a Sarj.ai call recording
curl --request GET \
--url https://platform-api.sarj.ai/api/v1/calls/{call_id}/recording \
--header 'Authorization: Bearer <token>'import requests
url = "https://platform-api.sarj.ai/api/v1/calls/{call_id}/recording"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform-api.sarj.ai/api/v1/calls/{call_id}/recording', 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://platform-api.sarj.ai/api/v1/calls/{call_id}/recording",
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://platform-api.sarj.ai/api/v1/calls/{call_id}/recording"
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://platform-api.sarj.ai/api/v1/calls/{call_id}/recording")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform-api.sarj.ai/api/v1/calls/{call_id}/recording")
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_bodyThis response has no body data.{
"error": {
"message": "<string>",
"field_violations": [
{
"field": "phone_number.country_code",
"message": "Must start with +"
}
],
"type": "validation_error"
},
"meta": {
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}{
"error": {
"message": "<string>",
"field_violations": [
{
"field": "phone_number.country_code",
"message": "Must start with +"
}
],
"type": "validation_error"
},
"meta": {
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}{
"error": {
"message": "<string>",
"field_violations": [
{
"field": "phone_number.country_code",
"message": "Must start with +"
}
],
"type": "validation_error"
},
"meta": {
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}Last modified on August 19, 2026

