API reference

REST API over HTTPS. Base URL: https://upload.montageloft.com. Authenticate with Authorization: Bearer <token> (create tokens in the dashboard).

Endpoints

RequestDescription
POST/v1/uploadsCreate an upload session → upload_id, part_size, expires_at
PUT/v1/uploads/{upload_id}/parts/{n}Upload part n (8–64 MB; the last part may be smaller)
POST/v1/uploads/{upload_id}/completeFinalize the upload after the last part
POST/v1/jobsStart processing: {"upload_id": ..., "preset": "web-1080p"}
GET/v1/jobs/{job_id}Job status: queued, processing, done, failed
GET/v1/jobs/{job_id}/outputSigned download URL of the result

Example: create a session

curl -X POST https://upload.montageloft.com/v1/uploads \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "example.bin", "size": 5368709120}'

Response 201 Created:

{
  "upload_id": "33e74d02f6724f8cf59c",
  "part_size": 67108864,
  "expires_at": "2026-11-23T12:00:00Z"
}

Errors

HTTPCodeMeaning
400invalid_requestMalformed JSON or a missing field
401unauthorizedMissing or invalid API token
403forbiddenThe token has no access to this resource
404not_foundUnknown id
409conflictThe upload is already finalized
413too_largeFile exceeds your plan limit
429rate_limitedToo many requests, see Retry-After
503unavailableTemporary, retry with back-off

Webhooks

Add an HTTPS endpoint in the dashboard. We send a JSON POST for these events: upload.completed, job.started, job.done, job.failed. Each request carries X-Signature: sha256=… — an HMAC of the body with your webhook secret. Reply with any 2xx.

Presets

PresetOutput
web-1080pMP4 H.264 1080p, 6 Mbit/s, AAC 160k
web-720pMP4 H.264 720p, 3 Mbit/s
mobile-480pMP4 H.264 480p, 1.2 Mbit/s
social-verticalMP4 H.264 1080×1920 for Reels/Shorts
hls-adaptiveHLS fMP4, 6 renditions 240p–1080p
av1-archiveMKV AV1 + Opus, CRF 30
prores-masterMOV ProRes 422 HQ
audio-onlyM4A AAC 192k

Limits