Skip to main content

Method

POST /v1/gallery/upload

Multipart Form Fields

  • file (required) – Binary file upload.
  • folderId – UUID of destination folder.
  • fileName – Override the stored filename (defaults to the uploaded name).
  • publish – Truthy value (1, true, on, yes) keeps the file public; otherwise it remains private.
  • metadata – JSON string merged into file metadata.
  • width, height, duration – Optional numeric hints for images/videos.

JSON Body Parameters

Headers

string
Bearer token (e.g. Authorization: Bearer YOUR_API_KEY)
string
multipart/form-data or application/json

Request Example

Response

The upload response is asynchronous. Poll /v1/gallery/files or subscribe to gallery.file.uploaded webhooks to know when processing finishes.
For videos larger than 100MB, use the Upload Large Video endpoint which supports resumable uploads.