Skip to content

Confirm Upload

Confirms that the file has been successfully uploaded to the presigned URL. This transitions the asset from pending to confirmed status, making it available for use.

POST /v1/assets/{asset_id}/confirm
assets:write

Path Parameters

ParameterTypeRequiredDescription
asset_idstringYesThe asset ID returned by the presign upload endpoint.

Request Examples

Terminal window
curl -X POST https://xqr.co/api/v1/assets/presign/a1b2c3d4-e5f6-7890-abcd-ef1234567890/confirm \
-H "Authorization: Bearer xqr_pk_a1b2c3d4.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

Response

200 OK

The confirmed asset object.

{
"data": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"filename": "logo.png",
"mime_type": "image/png",
"file_size": 48210,
"status": "confirmed",
"is_public": false,
"public_url": null,
"tags": [],
"created_at": "2026-03-21T14:30:00Z",
"updated_at": "2026-03-21T14:30:45Z"
},
"meta": {
"request_id": "req_3c4d5e6f7a8b9c01",
"rate_limit": {
"limit": 600,
"remaining": 595,
"reset": 1742572800
}
}
}

Was this page helpful?