Upload media
POST /api/media/upload
Request a presigned upload URL, then PUT the raw file bytes to the returned URL. The media record is created immediately in PENDING state; call finalize once the upload completes to verify the file and mark it LIVE.
Required Scope
posts:write
Request Body Parameters
Original file name (1–255 characters, alphanumeric, dashes, underscores, dots, and spaces).
Groups related uploads together. Generate a unique string per upload batch (e.g.
sess_v0Kps9Bgnk2...).Request Example
Response Example
Upload the file
PUT the raw bytes to the returned url with the same Content-Type. The URL expires after 1 hour and accepts files up to maxSize (~5 GB).
Next step
Once thePUT succeeds, call finalize media to verify the upload, extract dimensions and duration, and mark the asset LIVE.

