Download a call recording
calls:download-recordingAuthenticationBreak-glass read of a KMS-encrypted recording. reason, when sent, is written to the audit log; see the parameter for when it is required. Select either one exact recording_id, or a role/leg/segment tuple; mixing these selectors returns 400. Supports exactly one HTTP byte range and always returns the canonical JSON error envelope on failure.
bearerAuthAuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
id*stringuuidreason?stringHuman audit justification, recorded on the access audit row whenever it is sent. Whether it is required depends on the workspace's sensitive-data access mode. In reason mode it is required (at least 8 characters) on the transcript, recording and tool-I/O reads, and omitting it returns 400. In approval mode a user reads under an approved access request instead (the approved request's reason is recorded), while an API key keeps the reason rule. In open mode it is optional. Per-turn audio never requires it in any mode. Control characters are rejected.
1 <= length <= 500recording_id?stringExact recording row. Mutually exclusive with role, leg, and segment_index.
uuidrole?string"agent""agent""caller""mixed"leg?string"caller""caller""brief"segment_index?integer0 <= value <= 21474836470download?booleanUse attachment rather than inline Content-Disposition.
falseRange?stringOne RFC 9110 byte interval. Multiple ranges are rejected with 416 and a JSON error envelope.
^bytes=(?:[0-9]+-[0-9]*|-[0-9]+)$Complete decrypted Ogg/Opus recording.
response?fileaudio/oggbinarycurl -X GET 'https://api.kejue.co/v1/calls/497f6eca-6276-4993-bfeb-53cbbbba6f08/recording'"string"