Skip to main content

Upload a media file (binary)

POST 

/:workspace/media

Uploads a single file in one multipart/form-data request. For files larger than your instance's chunked-upload threshold (MIXPOST_CHUNKED_UPLOAD_THRESHOLD, default 10 MB), use the chunked upload flow instead.

The allowed MIME types are configured on your instance, and the maximum size depends on the file's MIME type:

  • video/* — MIXPOST_MAX_VIDEO_FILE_SIZE, default 200 MB
  • image/gif — MIXPOST_MAX_GIF_FILE_SIZE, default 15 MB
  • any other image/* — MIXPOST_MAX_IMAGE_FILE_SIZE, default 15 MB
  • anything else — rejected

Request​

Responses​

The created media record. Successful uploads return HTTP 200, not 201.