curl --request GET \
--url https://api.goyappr.com/calls/{id}/recording \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.goyappr.com/calls/{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://api.goyappr.com/calls/{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://api.goyappr.com/calls/{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://api.goyappr.com/calls/{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://api.goyappr.com/calls/{id}/recording")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goyappr.com/calls/{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_body"<string>""<string>"{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}Get Call Recording
Answers 200 with the audio file of the call’s recording itself, not a redirect, typed as the file is stored: audio/ogg when Yappr recorded the call (every browser call), audio/mpeg when the phone carrier did. No Authorization header required — the exp and sig query parameters (included in the recording_url from GET /calls responses) serve as authentication. Open directly in a browser, use as an <audio> src, or fetch it as is. HEAD answers the GET’s headers with no body. A HEAD without a Range answers from Yappr’s record of the file without reading the audio - the stored file’s record, or the record kept of a phone carrier’s recording (written when it is saved; an older one is looked up at the carrier on its first read, which keeps one) - so it answers 200 where a GET answers 404 (the carrier has since deleted its file) or 503 (the audio’s store is not answering). A HEAD with a Range reads the audio and answers as a GET would; send Range: bytes=0-0 to check that the audio can still be fetched. A Range header is honoured: 206 with those bytes and a Content-Range, or 416 when it starts past the end. Every answer, refusals too, is Cache-Control: private, no-store. A link lasts 7 to 8 days (exp is 00:00 UTC on the eighth day after the day it was issued) and stops opening when the call’s links are revoked; read the call again for a current one. Python’s built-in urllib (User-Agent: Python-urllib/3.x) is refused at the edge with 403 error code: 1010 until an edge rule is lifted; send any other User-Agent. A link issued before links started expiring has no exp and opens until the call’s links are revoked. A refusal is JSON, except to a browser (a GET whose Accept includes text/html), which gets the same status with a short page saying why.
curl --request GET \
--url https://api.goyappr.com/calls/{id}/recording \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.goyappr.com/calls/{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://api.goyappr.com/calls/{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://api.goyappr.com/calls/{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://api.goyappr.com/calls/{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://api.goyappr.com/calls/{id}/recording")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goyappr.com/calls/{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_body"<string>""<string>"{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}recording_url returned by List Calls, Get Call and the call.recording_url a workflow’s follow-up sends is a signed link on api.goyappr.com. No Authorization header is required to open it.
Opened in a browser or fetched, it answers 200 with the audio itself — no redirect — so you can use it as:
- A direct download link (e.g.
<a href="...">Download</a>), saved asrecording-<call id>-<YYYY-MM-DD>.oggor.mp3, named by the call and the day it started (UTC) - An audio source (e.g.
<audio src="...">) - A
curlorwgettarget, as is
HEAD answers the same headers with no body, and a Range request (Range: bytes=0-99) answers 206 with those bytes and a Content-Range, so a player can seek. A range past the end is 416 with no body and, whenever the file’s size can be read, Content-Range: bytes */<size> and the file’s ETag and Last-Modified.
HEAD without a Range answers from Yappr’s record of the file and does not read the audio: the stored file’s record for a recording Yappr stores (every browser call, and phone calls on your own carrier account), or the record kept of a phone carrier’s recording, written when the recording is saved. An older phone recording with no record yet is looked up at the carrier on its first read, which keeps one, so that first read takes longer.
Because that HEAD does not reach the audio, it answers 200 where a GET answers 404 (the phone carrier has since deleted its file) or 503 (the audio’s store is not answering just then). A HEAD with a Range reads the audio and answers as a GET would: send Range: bytes=0-0 to check that the audio can still be fetched.
| Header | On | Value |
|---|---|---|
Content-Type | 200, 206, 416 | The type of the file as stored: audio/ogg when Yappr recorded the call (every browser call), audio/mpeg when the phone carrier did. Read this header rather than assuming from the call’s direction: a call recorded by Yappr is Ogg whichever way it ran |
Content-Length | 200, 206 | The file’s size, or the size of the range |
Content-Disposition | 200, 206, 416 | attachment; filename="recording-<call id>-<YYYY-MM-DD>.ogg" (or .mp3), the day the call started in UTC: a browser saves the file under that name |
Accept-Ranges | 200, 206, 416 | bytes |
Content-Range | 206, 416 | bytes <first>-<last>/<size>, or bytes */<size> on a 416 |
ETag, Last-Modified | 200, 206, 416 | The stored file’s. They change only if the file does; use them to tell whether a copy you keep is still the same file. Both are listed in Access-Control-Expose-Headers, so a page on another site can read them |
Cache-Control | every answer, refusals too | private, no-store: nothing on the way keeps a copy, so a revoked link stops playing everywhere and a 404 before the recording is stored is not remembered |
curl -I "$RECORDING_URL" # 200, Content-Length, no body
curl -o recording.ogg "$RECORDING_URL" # the whole file
curl -r 0-99 "$RECORDING_URL" | wc -c # 206: 100 bytes
duration_seconds are two clocks, and they can differ either way:
duration_secondscan run a few seconds longer, because it counts until the call is closed on our side.- The recording can run longer: on some browser calls by a few percent (a 341-second call with a 361-second recording), because it is written from both sides’ audio as it arrives.
- A call can have
statusno_answerandduration_seconds0and still have a recording, on a phone call or a browser call alike. The recording holds the audio that was captured, which can include someone speaking: the status and the0do not mean it is silent.
duration_seconds.
How long a link lasts
A link carriesexp (when it stops opening, in Unix seconds) and sig (its signature). It lasts 7 to 8 days: exp is 00:00 UTC on the eighth day after the day it was issued, so a link issued at any time on 24 September stops opening at 2 October 00:00 UTC, and the same call read twice in one day returns the same link. For a link that outlives that, read the call again — every read issues a current one. Do not build or edit these links: a changed exp or sig is refused.
Taking a link back
Anyone who has a link can play the recording until it expires. If one was shared where it should not have been, revoke the call’s recording links: every link issued for that call so far stops opening at once, and the next read issues a new one. A link issued before links started expiring has noexp. It keeps opening until the call’s links are revoked.
When a link does not open
| Status | Code | Why |
|---|---|---|
| 403 | RECORDING_LINK_EXPIRED | The link is past its exp. Read the call again for a new one. |
| 403 | RECORDING_LINK_REVOKED | The call’s links were revoked after this one was issued. Read the call again for a new one. |
| 403 | RECORDING_LINK_INVALID | The link was not issued by Yappr, or was changed. Use recording_url exactly as the API returned it. Sent without its sig (an API key alone does not open a recording), it says the link needs its signature: use recording_url, or Copy recording link on the call in Call Logs. |
| 404 | NOT_FOUND | The call has no recording (yet), or it can no longer be fetched. This is the answer for any link to such a call, signed or not: reading the call again would not give a link that opens. List Calls and Get Call leave recording_url out for a call whose recording cannot be served. |
| 416 | — | Range starts past the end of the file. Content-Range: bytes */<size> gives the size. |
| 503 | RECORDING_LINK_UNAVAILABLE | The link could not be checked, or the audio fetched, just now - including when the audio’s store does not start answering within a few seconds. Try again in a moment. |
HEAD answers each of these with the same status and no body, except where it answers from the file’s record (see above): there it answers 200 where a GET answers 404 because the audio can no longer be fetched, or 503 because it could not be fetched just now.
These bodies are JSON ({"error": ..., "code": ...}) for an API client. A browser opening the link (a GET whose Accept includes text/html) gets the same status with a short page instead, saying in plain words why the link does not open and what to do, in Hebrew when the browser prefers it. A player’s or a script’s request never gets the page.
Python’s built-in urllib: until an edge rule is lifted, a request whose User-Agent is urllib’s default (Python-urllib/3.x) is refused on api.goyappr.com with 403 and the plain-text body error code: 1010, on this link and on every other route; send any other User-Agent (requests, httpx, curl and Node are not affected).Authorizations
Your Yappr API key (e.g. ypr_live_...). Generate one in the dashboard under Settings → API Keys. No key is 401 MISSING_KEY; a key that is not one of ours, or is revoked, is 401 INVALID_KEY; an expired one is 401 EXPIRED_KEY. A valid key without the scope an operation needs is 403 INSUFFICIENT_SCOPE on every operation, and the message names the scope. Every response, a 401 included, carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset: the budget is 60 requests a minute per API key. Every 429, whatever its code, carries Retry-After (whole seconds, never zero): the per-key budget's RATE_LIMIT asks for what is left of the minute, a route's daily cap (RATE_LIMITED) for the time until that cap resets. All four headers are listed in Access-Control-Expose-Headers, so a browser can read them. A path the API does not serve (an unknown sub-path, an id left empty) is 404 ROUTE_NOT_FOUND, and a method a served path does not take is 405 METHOD_NOT_ALLOWED with an Allow header; both are answered before any scope check, and nothing is read or changed. A trailing slash is ignored where it cannot be an id left empty (POST /calls/ is POST /calls) and refused where it can (GET /calls/). A doubled slash inside a path is merged into one before the request reaches the API (GET //calls is GET /calls).
Query Parameters
Response
The whole audio file. HEAD answers these headers with no body.
The response is of type file.