Jump to content

API getrecordingfile: Difference between revisions

From Wiki 7Kas
API docs (generated from func=help)
 
API docs regenerated from func=help (operator catalogue)
 
Line 1: Line 1:
''7Kas VoIP REST API function. Available to: '''SuperRoot, Operator, Client'''.''
''7Kas VoIP REST API function. Available to: '''Operator, Client'''.''


== Description ==
== Description ==
Line 25: Line 25:


----
----
Back to [[API VoIP]] · '''[[API Console|▶ Try it live]]''' · Profiles: [[API profile SuperRoot]], [[API profile Operator]], [[API profile Client (of operator)]], [[API profile Client (direct)]]
Back to [[API VoIP]] · '''[[API Console|▶ Try it live]]''' · Profiles: [[API profile Operator]], [[API profile Client (of operator)]], [[API profile Client (direct)]]
[[Category:API SuperRoot]][[Category:API Operator]][[Category:API Client]][[Category:API function]]
[[Category:API Operator]][[Category:API Client]][[Category:API function]]

Latest revision as of 13:47, 5 November 2026

7Kas VoIP REST API function. Available to: 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 Operator, API profile Client (of operator), API profile Client (direct)