Skip to main content
POST
Upload a media file

Authorizations

Authorization
string
header
required

Use a Bearer token to access these API endpoints. Example: "Bearer {your-token}"

Body

multipart/form-data
file
file
required

The raw binary file content (max 50 MB), sent as a multipart/form-data part — not a URL and not base64

name
string

Display name; defaults to the original file name

Maximum string length: 255
message_uuid
string<uuid> | null

UUID of the message this media belongs to

Response

Media uploaded

success
boolean
Example:

true

message
string
Example:

"Media uploaded"

data
object