Cue
API ReferenceMedia

Direct file upload

Upload file content directly after requesting an upload URL.

PUT
/media/{id}/upload-direct

Authorization

bearerAuth
AuthorizationBearer <token>

API keys start with cue_sk_ prefix. Get your key from the Cue dashboard.

Example: cue_sk_abc123def456ghi789jkl012mno345pqr678stu901vwx234

In: header

Path Parameters

id*string

Media asset ID

Request Body

application/octet-stream

body*file
Formatbinary

Response Body

application/json

application/json

application/json

application/json

curl -X PUT "https://api.oncue.so/v1/media/med_x9k4m2n7pqhj/upload-direct" \  -H "Content-Type: application/octet-stream" \  -d 'string'
{
  "data": {
    "assetId": "med_x9k4m2n7pqhj",
    "status": "processing"
  }
}
{
  "error": "Asset already uploaded"
}
{
  "error": "Unauthorized"
}
{
  "error": "Asset not found"
}