Skip to main content
POST
Upload an image or document
Send a multipart/form-data request with one part named file, a filename, and an explicit supported Content-Type. Maximum file size: 5 MB. Requires media:write. Image bytes must match the declared image type. Documents are checked by MIME type without inspecting their contents. Missing or empty file Content-Type headers, empty files, and unsupported types, including application/octet-stream, are rejected; a filename extension alone does not select the type.
Use the returned url as an image source or a document link in rich-text content.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
file
file
required

Response

Default Response

id
string
required

Unique identifier for the stored file.

url
string
required

Public URL for the uploaded file.