Skip to content

content_media_create_upload_url

Get a time-limited signed URL to PUT a file straight into the product bucket.

Tool

content_media_create_upload_url

Get a time-limited signed URL to PUT a file straight into the product bucket.

Get a time-limited signed URL to PUT a file straight into the product bucket. Creates a pending asset; call content_media_finalize once the upload finishes.

Behavior

HTTP
POST /content/media/upload-url

Arguments

NameTypeRequiredDescription
filenamestringName to store the file under, for display purposes.
contentTypestringThe media type the app will PUT, e.g. video/mp4. Must be image/* or video/*.

Response

FieldTypeAlwaysDescription
assetobjectThe pending asset row. It turns ready on finalize.
expiresAtstringISO-8601 time after which the upload URL stops working.
uploadUrlstringTime-limited signed PUT URL. Upload the bytes to it, then call the finalize tool.
contentTypestringThe Content-Type header the PUT must send — the signature covers it.

Try it

Get a time-limited signed URL to PUT a file straight into the product bucket.

When to use

Get a time-limited signed URL to PUT a file straight into the product bucket. Creates a pending asset; call content_media_finalize once the upload finishes.

Example

Ask your agent something like this:

Get a time-limited signed URL to PUT a file straight into the product bucket.

The agent will invoke content_media_create_upload_url with these arguments:

{
  "contentType": "<contentType>"
}

Esc

Start typing to search the docs.

navigateselect