Confirm upload
Confirm that a media file has been successfully uploaded.
Confirm that a media file has been successfully uploaded. This marks the file as active and returns the public URL that can be used in posts.
Important: Call this endpoint only after successfully uploading the file to the presigned URL. The system will verify the file exists in storage before confirming.
Permissions: Requires media:upload. Access is limited by the API key creator's current organization membership and stored key ceiling. See Organization permissions.
POST
id*stringapplication/json- body
Request schema for confirming a media file upload
size?integerThe file size in bytes. If provided, it will be stored for reference.
Range
0 < value <= 9007199254740991Upload confirmed successfully
application/json- response
Response after confirming media file upload
success*booleandata*Media file object
curl -X POST 'https://api.outstand.so/v1/media/string/confirm' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "success": true, "data": { "id": "string", "filename": "string", "url": "http://example.com", "content_type": "string", "size": 0, "status": "pending", "created_at": "2019-08-24T14:15:22Z", "expires_at": "2019-08-24T14:15:22Z" }}