Upload

File upload operations. Get pre-signed URLs for uploading audio files to cloud storage.

Get pre-signed upload URL

post

Generate a pre-signed URL for uploading audio files directly to Google Cloud Storage.

Workflow

  1. Call this endpoint โ†’ Get file_id and upload_url

  2. Upload file to GCS โ†’ Use the upload_url with required headers

  3. Wait for confirmation โ†’ Upload is automatically confirmed via GCS Eventarc

  4. Start processing โ†’ Use file_id in /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.wav

Important Notes

  • Required Header: x-goog-if-generation-match: 0 (prevents duplicate uploads)

  • URL Expiry: 30 minutes

  • One-time Use: Re-upload returns 412 Precondition Failed

  • No Content-Type needed: Server auto-detects format

Supported Formats

WAV, MP3, FLAC, M4A, AAC, OGG, Opus, WebM, AIFF (max 500MB)

Authorizations
AuthorizationstringRequired

How to Authenticate

  1. Get your token from Timbr Dashboard
  2. Click the Authorize button above
  3. Enter only the token (e.g., TBR_abc123def456)
  4. Click Authorize then Close

Important

  • โœ… Correct: TBR_8b3364b5a772328a
  • โŒ Wrong: Bearer TBR_8b3364b5a772328a

The 'Bearer ' prefix is added automatically by Swagger UI.

Responses
200

Upload URL generated successfully

application/json
post
/v1/upload

Last updated