Finish a media upload (step 3)
finalize_media_uploadRegister an uploaded media object as a MediaAsset and retrieve its publicUrl. Call after uploading bytes to the presigned URL to obtain a link for post scheduling.
Instructions
STEP 3 of the media upload flow: call AFTER you have PUT the raw bytes to the presigned uploadUrl from prepare_media_upload. Registers the object as a MediaAsset and returns it; its publicUrl is what you pass to schedule_post mediaUrls. Pass the same key/contentType/size from step 1. Idempotent: re-finalizing the same key returns the existing asset. CAPABILITY: draft — creates content that cannot reach an audience on its own. Safe for a draft-only agent token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The object key returned by prepare_media_upload. | |
| size | Yes | Exact file size in bytes. | |
| contentType | Yes | Same MIME type used in prepare_media_upload. |