Skip to main content
GET
Get call recording
The 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 as recording-<call id>-<YYYY-MM-DD>.ogg or .mp3, named by the call and the day it started (UTC)
  • An audio source (e.g. <audio src="...">)
  • A curl or wget target, 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.
A recording covers the conversation, from when the line is picked up to when the call is hung up. Its length and duration_seconds are two clocks, and they can differ either way:
  • duration_seconds can 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 status no_answer and duration_seconds 0 and 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 the 0 do not mean it is silent.
When you need the recording’s own length, read it from the file; bill and report on duration_seconds. A link carries exp (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. 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 no exp. It keeps opening until the call’s links are revoked. 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

Authorization
string
header
required

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).

Headers

Range
string

One byte range. Answers 206 with those bytes; without it the whole file is 200.

Path Parameters

id
string<uuid>
required

Query Parameters

exp
integer

When the link stops opening, in Unix seconds: 00:00 UTC on the eighth day after the day it was issued. Part of the signed link; do not change it.

sig
string
required

Signature included in the recording_url from call responses. Do not construct this manually.

Response

The whole audio file. HEAD answers these headers with no body.

The response is of type file.