For the complete documentation index, see llms.txt. This page is also available as Markdown.

Media

Upload and retrieve binary media files (images, documents, audio, video) for use in rich message content types such as RCS or WhatsApp.

Upload a media file

post

Uploads a binary media file (image, document, audio, or video) and returns a mediaId that can be referenced in rich message content fields such as ImageContent.mediaId, DocumentContent.mediaId, etc.

Authorizations
AuthorizationstringRequired

HTTP Basic Authentication. Encode username:password in Base64 and pass as: Authorization: Basic <base64_encoded_credentials>

Use your eCall account credentials or a dedicated API sub-user created in the eCall portal (Interfaces → Overview).

Body
filestring · binaryOptional

The file to upload.

Responses
201

File uploaded successfully.

application/json

Result of a successful media upload.

mediaIdstring · nullableOptional

Unique identifier of the uploaded media file. Use this in message content.

Example: a3f1c890-bb22-4c1d-a7e3-d3f1a2b4c567
post/api/v2/media

Retrieve a media file

get

Downloads a previously uploaded media file by its mediaId.

Authorizations
AuthorizationstringRequired

HTTP Basic Authentication. Encode username:password in Base64 and pass as: Authorization: Basic <base64_encoded_credentials>

Use your eCall account credentials or a dedicated API sub-user created in the eCall portal (Interfaces → Overview).

Path parameters
mediaIdstring · uuidRequired

Unique identifier of the media file, as returned by the upload endpoint.

Responses
200

Media file returned as binary.

application/octet-stream
string · binaryOptional
get/api/v2/media/{mediaId}

Last updated

Was this helpful?