Get upload URL

Request a presigned URL for uploading a media file directly to storage.

Request a presigned URL for uploading a media file directly to storage. The returned URL is valid for 1 hour.

Upload Process:

  1. Call this endpoint with the filename
  2. Use the returned upload_url to upload your file via HTTP PUT
  3. After successful upload, call POST /v1/media/{id}/confirm to finalize

Example upload with curl:

curl -X PUT -T "your-file.jpg" -H "Content-Type: image/jpeg" "<upload_url>"

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/upload

Request Body

application/json
  1. body

Request schema for getting a presigned upload URL

filename*string

The filename for the media file. Should include the file extension.

Length1 <= length <= 255
content_type?string

The MIME type of the file. If not provided, it will be inferred from the filename extension.

Length1 <= length

Response Body

Upload URL generated successfully

application/json
  1. response

Response containing presigned upload URL

success*boolean
data*
Example Request
curl -X POST 'https://api.outstand.so/v1/media/upload' \  -H 'Content-Type: application/json' \  -d '{  "filename": "string"}'
Example Response
{  "success": true,  "data": {    "id": "string",    "upload_url": "http://example.com",    "expires_in": 0  }}