Media
Upload media from file
Single multipart request: send the file plus workspace_id (optional folder_id). MIME type is detected from the file.
POST
Upload media from file
Upload one image or video withmultipart/form-data. Fields:
workspace_id(required) - workspace that will own the filefile(required) - the binary uploadfolder_id(optional) - media library folder in that workspace
mimeType). Allowed types are the same as in the app (JPEG, PNG, GIF, WebP, MP4, MOV, etc.). Maximum size per request is 500MB (same as the in-app standard upload).
Response 201: { "media": { "id", "url", "mime_type", ... } } - use media.id in Create post content[].media.
Do not use this endpoint for URL import - use Import from URL.
Request
Workspace that will own the file
Image or video file
Optional media library folder id belonging to
workspace_id