Skip to main content
POST
Upload media

Authorizations

Authorization
string
header
required

Company API key. The header value must be Api-Key <token>, e.g. Authorization: Api-Key AbCd1234.xxxxxxxx.

Body

multipart/form-data
file
file
required

.jpg, .jpeg, .png, .mp4 or .pdf; at most 16 MB.

name
string

Display name. Defaults to the file name.

Response

File stored.

url_pk
integer

Pass it as media.url_pk in send.

media
enum<string>
Available options:
image,
video,
document,
unknown
url
string<uri>
name
string