Get auto attendant message of line


This request returns the auto attendant message of a phone line.

Resource

GET /phonelines/<OID>/auto_attendant_message

Where OID is the object ID of the phone line.

Parameters

Name Type Description

response_type

[json|stream]

if stream is specified then the attachments contents are streamed to the client.

Payload

None

Response

The Attachment field contentsB64String contains the attachment’s data in Base64 econding.

Context

Authorization

User

Errors

HTTP code Xelion code Description

500

11000

If the attachment exceeds the maximum size or another server error occurred. See error message for more information.

Example

Request
GET https://xelion.nl/api/v1/master/phonelines/784848/auto_attendant_message
Response
{
    "object": {
        "originalLocation": "xcc_audio17098878868184063897.wav",
        "mimeType": "audio/wav",
        "contentsB64String": "UklGRpBrAABXQVZFZm10IBAAAAABAAEAQ",
        "hasThumbnail": false,
        "size": 27544,
        "commonName": "xcc_audio17098878868184063897.wav",
        "oid": "2173865",
        "objectType": "Attachment"
    }
}

Stream the contents

Request
GET https://xelion.nl/api/v1/master/phonelines/784848/auto_attendant_message?response_type=stream
headers
Content-Type: audio/wav;charset=utf-8
Content-Disposition: attachment; filename=xcc_audio17098878868184063897.wav
...
body
xcc_audio17098878868184063897.wav