Skip to main content
POST
Upload media

Authorizations

Authorization
string
header
required

HTTP Basic Authentication. Use your API Access Key ID as the username and your API Access Key Secret as the password. Generate keys in the CloudTalk Dashboard under Account -> Settings -> API Keys (https://dashboard.cloudtalk.io/menu/account/settings/API-keys).

Body

multipart/form-data
file
file
required

The image or file, with its content type and file name.

Response

Uploaded. Send the id in mediaIds before expiresAt.

id
string
required

What mediaIds takes on Send a message.

Example:

"77120"

contentType
string
required

The MIME type the upload declared.

Example:

"image/jpeg"

size
integer
required

Bytes.

Example:

48213

expiresAt
string<date-time>
required

24 hours after the upload. After it, a send refuses the id. RFC 3339 in UTC, to the second.

Example:

"2026-11-13T10:00:00Z"