Skip to main content

Finalize a media upload (step 3 of 3)

POST 

/media/:id/complete

Call after uploading the file to the presigned upload_url. Verifies the file actually exists (400 file_not_uploaded when it does not) and that its magic bytes match the declared content type (400 file_type_mismatch — the media is then marked failed). Videos get a thumbnail generated in the background. Idempotent: calling on already-ready media returns 200. 400 upload_failed when the media was previously marked failed. No request body is required.

Request

Responses

Media finalized (or already ready)