How media attachment works
Media is uploaded independently of posts. An upload returns a media ID, which you reference inbase.media (or a channel override) when creating a post:
LIVE (verified and ready) before you create the post.
Media statuses
Step 1: Request a presigned upload URL
1
Request an upload URL
PENDING state. URLs expire after 1 hour and accept files up to ~5 GB — for larger files, split your content or use multiple assets.2
Upload the file bytes
PUT the raw file directly to the presigned URL. No API key is needed — the URL itself is the authorization:3
Finalize the upload
Finalizing verifies the file landed in storage, probes it for dimensions, duration, and format, and marks it Each asset is reported individually:Batch up to 50 media IDs per call. A
LIVE. It also corrects the MIME type and video flag from the actual file contents:404 response lists missingIds — assets that were never uploaded or belong to another workspace. An asset can also report status: "FAILED" (probe error); re-upload and finalize again in that case.4
Attach to a post
Reference the media IDs in The same media ID can be attached to multiple posts across platforms.
base.media or channel overrides when creating a post:Checking upload readiness
If you need to confirm an asset is ready before creating posts (for example, after a retry), poll its status:PENDING and PROCESSING as “not ready” in your polling loop. PENDING assets self-heal: if the file is already in storage, the status check promotes them to LIVE.
Alternative: URL transloading for bulk imports
If your files live at public URLs, skip the upload entirely. The bulk upload endpoint accepts amediaUrl per post, and a background worker downloads the file, registers it as media, links it to the post, and schedules it:
PROCESSING status; it moves to SCHEDULED when the media is attached, or FAILED with a failureReason. Track progress with get bulk upload status.

