mumro.Documentation
Open Mumro

Developers

Media upload API

Upload once, keep the correct identifier and reuse a ready asset.

On this pageAuthorization and limitsDirect uploadPresigned and multipart flowUse the right identifier and URL

Authorization and limits

Uploads require a Public API Bearer key, editor (member) or higher and either social_publishing or shorts_generator. Write access follows the current role; MCP scopes do not apply. Upload routes do not share publication-create idempotency. A repeated initialization may allocate another asset.

Handle 400/422 for unsupported media or input, 401/403 for access, 404 for missing assets, 413 for size limits, 429 for rate limits and remote-fetch errors on URL imports. Actual limits depend on asset type and MIME content, not only the transport ceiling.

Direct upload

BASH
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

  1. Call POST /api/uploads/init with filename, content_type, size_bytes and asset_type (video, image, thumbnail or subtitle).
  2. Use the returned signed URL or part URLs. Do not send your Mumro API key to object storage.
  3. Call POST /api/uploads/{asset_id}/complete; multipart completion includes upload_id and multipart_parts with ETag and PartNumber.
  4. Use POST /api/uploads/{asset_id}/abort to 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.

↑ ↓ to navigate · Enter to open · Esc to close