Skip to main content
Posts across all platforms attach media by reference. This guide walks through the media lifecycle — uploading a file, verifying it, and attaching it to a scheduled post — plus the URL-transloading alternative for remote files.

How media attachment works

Media is uploaded independently of posts. An upload returns a media ID, which you reference in base.media (or a channel override) when creating a post:
A post attaches its media at creation time, so the media must be LIVE (verified and ready) before you create the post.

Media statuses

Step 1: Request a presigned upload URL

1

Request an upload URL

The response contains a presigned URL and the media ID:
The media row is created in 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:
If the upload is interrupted, request a fresh URL (the presigned one can’t be renewed).
3

Finalize the upload

Finalizing verifies the file landed in storage, probes it for dimensions, duration, and format, and marks it LIVE. It also corrects the MIME type and video flag from the actual file contents:
Each asset is reported individually:
Batch up to 50 media IDs per call. A 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 base.media or channel overrides when creating a post:
The same media ID can be attached to multiple posts across platforms.

Checking upload readiness

If you need to confirm an asset is ready before creating posts (for example, after a retry), poll its status:
Treat both 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 a mediaUrl per post, and a background worker downloads the file, registers it as media, links it to the post, and schedules it:
While transloading runs, the post sits in PROCESSING status; it moves to SCHEDULED when the media is attached, or FAILED with a failureReason. Track progress with get bulk upload status.

Error handling

Cleanup

When a post is deleted or rejected, media attached only to that post is cleaned up automatically. Media attached to multiple posts (or to none) remains in your library.
Last modified on November 8, 2026