Get a presigned URL for direct file upload to cloud storage
POST/v2/{media_type}/upload-url
Returns a signed URL that allows the client to upload a file directly to Google Cloud Storage via HTTP PUT. This avoids sending the file through the backend, eliminating upload timeouts for large files.
Flow:
- Call this endpoint to get a signed upload URL
- PUT the file directly to the signed URL with the required headers
- Call the regular POST /v2/videos or /v2/audios endpoint with the returned public_url
Request
Responses
- 200
- 402
- 422
Successful Response
Refused before the URL is issued. Either the payer's balance is non-positive, or a plan usage window (daily / weekly / monthly) is exhausted. Not an affordability check: admission is balance > 0, not balance >= cost, so an account holding fewer credits than this upload will cost still receives a URL and goes into debt when the media is submitted. Credits are deducted at submit time (step 3), never here.
Validation Error