buying/assets

POST/buying/assets

Upload a file to this account's Assets for agentic buying, as Upload asset on /direct/creatives does. Send the raw file bytes as the body. Accepts PNG, JPEG and GIF images up to 2 MiB, H.264 MP4 videos up to 100 MB, and HTML playables up to 5 MiB. Uploads start in review; import them with buying_asset_import once approved. Use this instead of buying_asset_upload for files too large to send inline. Requires editor access and a signed-in user token; API keys get 403.

Request

cURL
curl -X POST "https://provisioning.cloudx.io/api/v1/buying/assets?name=<name>&filename=<filename>" \
  -H "Authorization: Bearer $CLOUDX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Query parameters

NameTypeDescription
namerequiredstringAsset name shown in Assets.
filenamerequiredstringFile name; its extension (.png, .jpg, .jpeg, .gif, .mp4 or .html) selects the file type.

Body

Responses

The new Asset.
{
  "result": "<string>"
}

200The new Asset.

FieldTypeDescription
resultrequiredobjectThe tool's JSON result.

400The file was rejected.

FieldTypeDescription
errorrequiredstring

401Unauthorized.

FieldTypeDescription
errorrequiredstring

403Forbidden or feature unavailable.

FieldTypeDescription
errorrequiredstring

413The file is larger than the upload limit.

FieldTypeDescription
errorrequiredstring

500Internal server error.

FieldTypeDescription
errorrequiredstring