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
/v1/media/{id}/confirm

Path Parameters

id*string

Request Body

application/json
  1. body

Request schema for confirming a media file upload

size?integer

The file size in bytes. If provided, it will be stored for reference.

Range0 < value <= 9007199254740991

Response Body

Upload confirmed successfully

application/json
  1. response

Response after confirming media file upload

success*boolean
data*

Media file object

Example Request
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"  }}