Raw ZIP export
curl --request POST \
--url https://app.freyavoice.ai/api/v2/call/export-raw \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"callIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"archivedFilter": "active",
"filters": "<string>",
"search": "<string>",
"semanticQuery": "<string>",
"redact": false
}
'import requests
url = "https://app.freyavoice.ai/api/v2/call/export-raw"
payload = {
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"callIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"archivedFilter": "active",
"filters": "<string>",
"search": "<string>",
"semanticQuery": "<string>",
"redact": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
workspaceId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
callIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
archivedFilter: 'active',
filters: '<string>',
search: '<string>',
semanticQuery: '<string>',
redact: false
})
};
fetch('https://app.freyavoice.ai/api/v2/call/export-raw', 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://app.freyavoice.ai/api/v2/call/export-raw",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'workspaceId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'callIds' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'archivedFilter' => 'active',
'filters' => '<string>',
'search' => '<string>',
'semanticQuery' => '<string>',
'redact' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.freyavoice.ai/api/v2/call/export-raw"
payload := strings.NewReader("{\n \"workspaceId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"callIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"archivedFilter\": \"active\",\n \"filters\": \"<string>\",\n \"search\": \"<string>\",\n \"semanticQuery\": \"<string>\",\n \"redact\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.freyavoice.ai/api/v2/call/export-raw")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"workspaceId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"callIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"archivedFilter\": \"active\",\n \"filters\": \"<string>\",\n \"search\": \"<string>\",\n \"semanticQuery\": \"<string>\",\n \"redact\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.freyavoice.ai/api/v2/call/export-raw")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"workspaceId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"callIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"archivedFilter\": \"active\",\n \"filters\": \"<string>\",\n \"search\": \"<string>\",\n \"semanticQuery\": \"<string>\",\n \"redact\": false\n}"
response = http.request(request)
puts response.read_body"<string>"{
"success": false,
"data": {
"message": "<string>",
"result": "<unknown>"
}
}{
"success": false,
"data": {
"message": "<string>",
"result": "<unknown>"
}
}{
"success": false,
"data": {
"message": "<string>",
"result": "<unknown>"
}
}{
"success": false,
"data": {
"message": "<string>",
"result": "<unknown>"
}
}Calls
Raw ZIP export
Lossless dump of calls + related sub-tables + recordings + debug blobs + upstream FK targets (agents/workflows/versions) for round-trip with the import endpoint. Returns a ZIP containing calls.json, agents.json, workflows.json, versions.json, recordings/<callId>[_user|_assistant].{mp3,wav}, and traces/<callId>.json.gz + logs/<callId>.json.gz (gzip-compressed OTel traces and application logs). Workspace-scoped; requires the `calls:export` permission.
POST
/
call
/
export-raw
Raw ZIP export
curl --request POST \
--url https://app.freyavoice.ai/api/v2/call/export-raw \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"callIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"archivedFilter": "active",
"filters": "<string>",
"search": "<string>",
"semanticQuery": "<string>",
"redact": false
}
'import requests
url = "https://app.freyavoice.ai/api/v2/call/export-raw"
payload = {
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"callIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"archivedFilter": "active",
"filters": "<string>",
"search": "<string>",
"semanticQuery": "<string>",
"redact": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
workspaceId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
callIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
archivedFilter: 'active',
filters: '<string>',
search: '<string>',
semanticQuery: '<string>',
redact: false
})
};
fetch('https://app.freyavoice.ai/api/v2/call/export-raw', 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://app.freyavoice.ai/api/v2/call/export-raw",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'workspaceId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'callIds' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'archivedFilter' => 'active',
'filters' => '<string>',
'search' => '<string>',
'semanticQuery' => '<string>',
'redact' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.freyavoice.ai/api/v2/call/export-raw"
payload := strings.NewReader("{\n \"workspaceId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"callIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"archivedFilter\": \"active\",\n \"filters\": \"<string>\",\n \"search\": \"<string>\",\n \"semanticQuery\": \"<string>\",\n \"redact\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.freyavoice.ai/api/v2/call/export-raw")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"workspaceId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"callIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"archivedFilter\": \"active\",\n \"filters\": \"<string>\",\n \"search\": \"<string>\",\n \"semanticQuery\": \"<string>\",\n \"redact\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.freyavoice.ai/api/v2/call/export-raw")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"workspaceId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"callIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"archivedFilter\": \"active\",\n \"filters\": \"<string>\",\n \"search\": \"<string>\",\n \"semanticQuery\": \"<string>\",\n \"redact\": false\n}"
response = http.request(request)
puts response.read_body"<string>"{
"success": false,
"data": {
"message": "<string>",
"result": "<unknown>"
}
}{
"success": false,
"data": {
"message": "<string>",
"result": "<unknown>"
}
}{
"success": false,
"data": {
"message": "<string>",
"result": "<unknown>"
}
}{
"success": false,
"data": {
"message": "<string>",
"result": "<unknown>"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Available options:
active, all, archived Base64-encoded filter state
Global search term
Semantic search query - export follows its result set
Required string length:
2 - 500Mask PII in the export (for seeding non-prod environments)
Response
ZIP archive
The response is of type file.