How do I send call recordings to Callyst automatically?
If your phone system or file storage can run a script, new recordings can reach Callyst by themselves. The script sends each .wav or .mp3 file (up to 50 MB) to the Callyst upload API, one request per file, and every call is scored into your workspace. The same API the upload page uses is open to your own scripts, and the examples below work as they are.
Callyst has no built-in connection to any phone system: the script is yours, and Callyst gives you an upload token. This guide is for ongoing uploads. For the free 10-call check, use your upload page instead: see How do I upload call recordings to Callyst?
Last checked against Callyst's product facts: 13 November 2026.
Before you start
- A way to run a script. Anything that can run a shell script or a scheduled task will do, on your own computer, a server or your storage service. The recordings must exist as files. If you are unsure how to get them out of your phone system, we have export guides for GoTo Connect, RingCentral, Aircall and Dialpad. These are guides to each phone system's own export steps, not integrations.
- An upload token for your workspace (step 1).
- A full workspace. A free-check workspace made on the website can only be used from its free-check page, and the API refuses its requests with a 403. Ask us to upgrade it first.
- Audio files.
.wavor.mp3, up to 50 MB each, in English. Send recordings, not transcripts: Callyst transcribes the audio itself. - Permission. Our Terms say to upload only calls you have the right to record and use, including any consent that call-recording laws require. Getting that consent is your responsibility.
Step 1: Get an upload token
Today the Callyst team issues upload tokens. Email support@callyst.com, name your workspace, and we will send you a token.
- Treat the token like a password. Anyone who has it can add calls to your workspace.
- Keep it in an environment variable (the examples use
CALLYST_TOKEN), not in the script, not in a shared folder and not in a code repository. - The script sends it in the
Authorizationheader asBearer <your token>. - If it leaks, email us. We will revoke it and send you a new one. A revoked token, and any token of a cancelled workspace, is answered with 401
invalid token.
Step 2 (optional): Make a job
A job is a named batch that calls can be attached to. For ongoing scoring you do not need one: every call is scored whether or not it is in a job. If you want one, send:
curl -X POST "https://callyst.com/api/v1/jobs" \
-H "Authorization: Bearer $CALLYST_TOKEN" \
-H "Content-Type: application/json" \
-d '{"kind":"production"}'
The answer is 201 with {"jobId":"…"}. Pass that id as job_id on each call in step 3. A job_id that is not one of your workspace's jobs is answered with 404 unknown job_id. The other job kinds are for the free check and Blind Match, and are not covered here.
Step 3: Send each recording
Send one POST https://callyst.com/api/v1/calls request per recording. The body is the audio file itself, not a form. Put the call's details in the query string or in X- headers; if you give the same detail both ways, the query string wins.
| Detail | Needed? | Header | What to send |
|---|---|---|---|
rep | Yes | X-Rep | Your name or id for the rep, for example an email address or employee number. A rep Callyst has not seen before is added to the workspace with that value as the name, and an admin can edit the name later. |
started_at | Yes | X-Started-At | When the call started, as an ISO 8601 date and time, for example 2026-11-12T09:30:00Z. End it with Z or an offset such as +01:00. |
direction | No | X-Direction | inbound, outbound or unknown. If you leave it out, it is unknown. |
external_call_id | No | X-External-Call-Id | Your phone system's id for the call. Callyst keeps it with the call. |
disposition | No | X-Disposition | The outcome your phone system recorded, for example Connected. |
duration_sec | No | X-Duration-Sec | The length in seconds, as a number above 0. If you leave it out, Callyst reads the length from the audio. |
job_id | No | X-Job-Id | The id from step 2. |
filename | No | X-Filename | A name ending in .wav or .mp3. Only needed when the Content-Type does not already say which it is. |
Also set Content-Type to audio/wav or audio/mpeg. curl does not do this for you when you send a file: without it, it sends a form type and the file is refused. The request must carry a Content-Length, which curl and PowerShell add when they send a file.
A good answer is 202 with {"callId":"…","status":"received"}. Received means the audio is saved and queued for scoring; the scoring happens afterwards.
Step 4 (only if you made a job): Close it
When every file of the job has been sent, send POST https://callyst.com/api/v1/jobs/<jobId>/complete with the same token. The answer is 200 with {"closed":true}, or 404 unknown job for a job that is not yours. For ongoing scoring this only marks the job as finished: your calls are scored either way.
Examples you can copy
One file, with curl
Set the token first, for example export CALLYST_TOKEN=… in the same terminal, then:
curl -X POST "https://callyst.com/api/v1/calls" \
-H "Authorization: Bearer $CALLYST_TOKEN" \
-H "Content-Type: audio/mpeg" \
-H "X-Rep: jane.doe" \
-H "X-Started-At: 2026-11-12T09:30:00Z" \
-H "X-Direction: outbound" \
-H "X-External-Call-Id: call-1001" \
--data-binary @jane.doe_2026-11-12_09-30-00.mp3
A folder, with bash
The loop expects files named like jane.doe_2026-11-12_09-30-00.mp3: the rep, the date and the start time in UTC, separated by underscores. It prints one line per file with the answer, and moves each accepted file to a sent folder so a rerun does not send it again. If your files are named differently, change the three lines that read the name.
#!/usr/bin/env bash
# Sends every .wav and .mp3 in ./recordings to Callyst, then moves each accepted file to ./sent.
# File names look like jane.doe_2026-11-12_09-30-00.mp3: rep, date, start time (UTC).
# The token comes from the environment, never from this file: export CALLYST_TOKEN=...
set -u
: "${CALLYST_TOKEN:?Set CALLYST_TOKEN first}"
mkdir -p sent
shopt -s nullglob
for f in recordings/*.wav recordings/*.mp3; do
name=$(basename "$f"); stem=${name%.*}
rep=${stem%%_*}; rest=${stem#*_}; day=${rest%%_*}; clock=${rest#*_}
started="${day}T${clock//-/:}Z"
case "$f" in *.wav) type=audio/wav ;; *) type=audio/mpeg ;; esac
out=$(curl -s -w '\n%{http_code}' -X POST "https://callyst.com/api/v1/calls" \
-H "Authorization: Bearer $CALLYST_TOKEN" -H "Content-Type: $type" \
-H "X-Rep: $rep" -H "X-Started-At: $started" \
--data-binary @"$f")
code=${out##*$'\n'}; body=${out%$'\n'*}
echo "$name -> $code $body"
if [ "$code" = 202 ]; then mv "$f" sent/; fi
done
A folder, with PowerShell
The same loop for Windows PowerShell. The token is read from the environment variable, and failed files stay in recordings.
# Sends every .wav and .mp3 in .\recordings to Callyst, then moves each accepted file to .\sent.
# File names look like jane.doe_2026-11-12_09-30-00.mp3: rep, date, start time (UTC).
# The token comes from the environment, never from this file: $env:CALLYST_TOKEN = "..."
if (-not $env:CALLYST_TOKEN) { throw "Set CALLYST_TOKEN first" }
New-Item -ItemType Directory -Force sent | Out-Null
foreach ($f in Get-ChildItem .\recordings\* -Include *.wav, *.mp3) {
$p = $f.BaseName -split '_'
$started = "$($p[1])T$($p[2] -replace '-', ':')Z"
$type = if ($f.Extension -eq '.wav') { 'audio/wav' } else { 'audio/mpeg' }
$headers = @{ Authorization = "Bearer $env:CALLYST_TOKEN"; 'X-Rep' = $p[0]; 'X-Started-At' = $started }
try {
$r = Invoke-RestMethod -Method Post -Uri 'https://callyst.com/api/v1/calls' -Headers $headers -ContentType $type -InFile $f.FullName
"$($f.Name) -> $($r.status) $($r.callId)"
Move-Item $f.FullName sent
} catch {
$why = if ($_.ErrorDetails) { $_.ErrorDetails.Message } else { $_.Exception.Message }
"$($f.Name) -> failed: $why"
}
}What the API says back
| Answer | What it means |
|---|---|
| 202 | The file was saved and queued for scoring. |
400 rep is required | The request has no rep. |
400 started_at must be an ISO-8601 date | started_at is missing or not a date. |
400 direction must be inbound, outbound or unknown | direction has another value. |
400 duration_sec must be positive | duration_sec is not a number above 0. |
400 unsupported file type (use .wav or .mp3) | The Content-Type and filename say neither audio/wav nor audio/mpeg. |
400 audio body is required or file is empty | The request has no audio in it. |
401 invalid token | The token is missing, wrong or revoked, or the workspace is cancelled. |
| 403 | The workspace is a free-check workspace: This free-check workspace can only be used from its free-check page. Ask us to upgrade it to use the full workspace and the API. |
404 unknown job_id | The job is not one of your workspace's jobs. |
411 Content-Length is required | The request did not say how big it is. |
413 request is larger than 50 MB | The file is over 50 MB. Export that call again as a smaller file if your phone system allows, or leave it out. |
If you get any other answer, the file was not accepted. Send it again, and email support@callyst.com if it keeps happening.
Sending the same file twice
The API answers 202 again if you send a file it has already received, and the first copy is not affected. When Callyst filters the new copy, it sets it aside as an exact duplicate, so one call is not scored twice. It still helps to keep track of what you have sent: the example loops move each accepted file to a sent folder for that reason.
What happens next
- Callyst transcribes the audio itself and scores each call against your scorecard, or our standard one. Calls sent this way are scored into your workspace. They do not get an emailed report and have no 24-hour promise.
- Callyst sets aside voicemails, no-answers, exact duplicates, calls under 60 seconds (by default) and calls over 90 minutes. They are not scored.
- Scores and coaching notes are AI-generated and can be wrong. Review flags before acting on them.
- Audio is deleted 30 days after scoring, and no recording is kept longer than 35 days.
Questions and answers
Does Callyst connect to my phone system?
No. Callyst has no built-in connection to any phone system. It has an upload API that a script of yours can call, and it works with any phone system that can export recordings.
Which file types and sizes can I send?
.wav or .mp3, up to 50 MB each, one file per request.
How do I get an upload token?
Email support@callyst.com with your workspace name. The Callyst team issues the token.
What do I do if my token leaks?
Email us. We will revoke it and send you a new one. A revoked token is refused with 401.
Where should I keep the token?
In an environment variable on the machine that runs the script. Not in the script, a shared folder or a code repository.
Do I need to make a job?
No. For ongoing scoring every call is scored whether or not it is in a job.
Will a file I send twice be scored twice?
No. The API accepts it, and Callyst sets the second copy aside as an exact duplicate when it filters the call.
Do I need a transcript?
No. Callyst transcribes the audio itself. You send recordings, not transcripts.
Where can I read how you handle data?
See our privacy policy and Terms.