Get Commuication Audio


This request returns audio recoding of a communication event.

Phone calls are the only communication events that can have an audio recording. A call is recorded when the system is configured to record calls and only if the call is answered or a voicemail is left.

Resource

GET /communications/<OID>/audio

Where OID is the object ID of the communication.

Parameters

None

Payload

None

Response

The audio contents. The Content-Type and Content-Disposition headers are set to the mime-type of the audio format and the audio file name.

Context

Authorization

User

Errors

HTTP code Xelion code Description

404

10100

No call with the specified OID exists or the call exists and has no audio recording.

Example

Request
GET https://xelion.nl/api/v1/master/communications/14142135/audio
Response Headers

Content-Type: audio/x-mp3
Content-Disposition: audio.mp3

Response Body

ID3 6TSSE 0 LAME 64bits version _??Hb5m3 `?
[rest of binary contents]