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
Bearer token (e.g.
Authorization: Bearer YOUR_API_KEY)multipart/form-data or application/jsonRequest Example
Response
For videos larger than 100MB, use the Upload Large Video endpoint which supports resumable uploads.