Skip to main content
POST
Media Upload

Authorizations

Authorization
string
header
required

Basic authentication using base64 encoded API key and secret. Format: Authorization: Basic <base64(api_key:api_secret)>

Body

multipart/form-data

Media upload

files
file
required

File to upload

inline
string

Set to 'true' to store the file with an inline disposition (e.g. an inline image) instead of as an attachment.

linked_model
enum<string>

Name of the model the uploaded media is linked to.

Available options:
messages
Example:

"messages"

Response

Successful media upload response

status
string
Example:

"success"

data
object