Single multipart request: send the file plus workspace_id (optional folder_id). MIME type is detected from the file.
multipart/form-data. Fields:
workspace_id (required) — workspace that will own the filefile (required) — the binary uploadfolder_id (optional) — media library folder in that workspacemimeType). 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.
workspace_id