API ReferenceMedia
Complete media upload
Mark a media upload as complete and ready for use.
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
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.oncue.so/v1/media/med_x9k4m2n7pqhj/complete"{
"data": {
"id": "med_x9k4m2n7pqhj",
"userId": "usr_x9k4m2n7pqhj",
"r2Key": "media/usr_x9k4m2n7pqhj/med_x9k4m2n7pqhj/original",
"thumbnailR2Key": "media/usr_x9k4m2n7pqhj/med_x9k4m2n7pqhj/thumb",
"originalFilename": "product-photo.jpg",
"mimeType": "image/jpeg",
"sizeBytes": 1024000,
"transcodingStatus": "ready",
"createdAt": "2025-01-15T10:00:00Z",
"updatedAt": "2025-01-15T10:00:30Z"
}
}{
"error": "File not found in storage"
}{
"error": "Unauthorized"
}{
"error": "Asset not found"
}