Upload
File upload operations. Get pre-signed URLs for uploading audio files to cloud storage.
Generate a pre-signed URL for uploading audio files directly to Google Cloud Storage.
Workflow
Call this endpoint โ Get
file_idandupload_urlUpload file to GCS โ Use the
upload_urlwith required headersWait for confirmation โ Upload is automatically confirmed via GCS Eventarc
Start processing โ Use
file_idin/v1/audio/separate,/v1/audio/enhance, etc.
Upload Example
curl -X PUT "$upload_url" \
-H "x-goog-if-generation-match: 0" \
--data-binary @your_audio.wavImportant Notes
Required Header:
x-goog-if-generation-match: 0(prevents duplicate uploads)URL Expiry: 30 minutes
One-time Use: Re-upload returns
412 Precondition FailedNo Content-Type needed: Server auto-detects format
Supported Formats
WAV, MP3, FLAC, M4A, AAC, OGG, Opus, WebM, AIFF (max 500MB)
How to Authenticate
- Get your token from Timbr Dashboard
- Click the Authorize button above
- Enter only the token (e.g.,
TBR_abc123def456) - Click Authorize then Close
Important
- โ
Correct:
TBR_8b3364b5a772328a - โ Wrong:
Bearer TBR_8b3364b5a772328a
The 'Bearer ' prefix is added automatically by Swagger UI.
Upload URL generated successfully
Unauthorized - Invalid or missing Timbr authentication
Internal server error
Last updated