Skip to main content
Version: Next

Download call recording(s)

GET

/org/{tenant}/v2/cdrs/recordings

Platform support: MT and CC

Token Cost: 5 tokens (medium)

Downloads the recorded audio for one or more calls. Access is authorized per uniqueid based on the caller's identity: API key and trusted service callers get every requested id, sitemanager users/groups are restricted to recordings their group's CDR report permissions allow, and extension-owned callers only get recordings they participated in. Ids the caller may not access are silently left out; if none remain the request fails with 404.

On a multi-tenant system a sitemanager group must also have access to the tenant: either the tenant is selected on the group, or the group has the system or all-tenants scope. Otherwise the request fails with 403. default (tenantcode 0) covers every tenant, so it needs the system or all-tenants scope. Single-tenant systems have no tenant scope on groups.

After authorization core-api hands the download to nginx (X-Accel-Redirect), which serves the file from file_sharing_service. Range requests are supported; Content-Type, Content-Disposition, Content-Length, Accept-Ranges and Content-Range come from file_sharing_service. A single id returns the audio file, multiple ids return a zip archive.

Request​

Responses​

Recording audio file, or zip archive for multiple ids