Developers
Media upload API
Upload once, keep the correct identifier and reuse a ready asset.
On this page
Authorization and limitsDirect uploadPresigned and multipart flowUse the right identifier and URLDirect upload
curl https://app.mumro.io/api/uploads/direct \
-H "Authorization: Bearer $MUMRO_API_KEY" \
-F "asset_type=image" \
-F "file=@cover.jpg;type=image/jpeg"This uses the authorization and retry rules above. The transport ceiling is 100 MB, with lower per-type limits where applicable. The response contains numeric id, public UUID asset_id, file_size_bytes, a short-lived download_url and, for supported images, public_url.
Presigned and multipart flow
- Call
POST /api/uploads/initwithfilename,content_type,size_bytesandasset_type(video,image,thumbnailorsubtitle). - Use the returned signed URL or part URLs. Do not send your Mumro API key to object storage.
- Call
POST /api/uploads/{asset_id}/complete; multipart completion includesupload_idandmultipart_partswithETagandPartNumber. - Use
POST /api/uploads/{asset_id}/abortto cancel an unfinished upload.
All API calls follow the authorization and error contract above. Save initialization IDs so a network error does not make you blindly create another upload.
Use the right identifier and URL
Use stable image public_url values in CMS content. Do not embed expiring signed download_url values in permanent articles. Publishing can reject known expiring URLs.
URL import uses POST /api/uploads/from-url with an HTTPS url and asset_type: "image" or "video". Only permitted external hosts are accepted; the remote content is validated.