API getrecordingfile
Appearance
(Redirected from Recording audio)
7Kas VoIP REST API function. Available to: SuperRoot, Operator, Client.
Description
Downloads the audio recording (stereo MP3) of one of the caller's calls. Select by id OR uniqueid. Streams with HTTP Range (206) so players can seek. Scoped to the caller's (root, accountcode) by the key; only files still on disk are served (404-as-{} otherwise).
Call
GET …/7Kas?func=getrecordingfile&ukey=YOUR_KEY&…
Requires the ukey parameter.
Parameters
| Parameter | Type | Required | Default | Meaning |
|---|---|---|---|---|
id |
integer | No | — | Recording id. Provide id OR uniqueid. |
uniqueid |
string | No | — | Call uniqueid. Provide id OR uniqueid. (max 80) |
dl |
integer | No | — | 1 = force download (Content-Disposition attachment). |
Example
https://api.7kas.com:9080/7Kas?func=getrecordingfile&ukey=KEY&id=5270558&dl=1
Response
audio/mpeg body (supports Range/206). On missing/foreign/no-file: {}.
Back to API VoIP · ▶ Try it live · Profiles: API profile SuperRoot, API profile Operator, API profile Client (of operator), API profile Client (direct)