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:
- Call this endpoint with the filename
- Use the returned
upload_urlto upload your file via HTTP PUT - After successful upload, call
POST /v1/media/{id}/confirmto 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
application/json- body
Request schema for getting a presigned upload URL
filename*stringThe filename for the media file. Should include the file extension.
Length
1 <= length <= 255content_type?stringThe MIME type of the file. If not provided, it will be inferred from the filename extension.
Length
1 <= lengthUpload URL generated successfully
application/json- response
Response containing presigned upload URL
success*booleandata*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 }}