Skip to main content
POST
Generate Upload URL

Body

application/json

Request model for generating a signed upload URL.

Fields

  • file_name — Name of the file to upload.
  • content_type — MIME type of the file (e.g., "audio/wav", "image/png").

Example

file_name
string
required

Name of the file to upload

Required string length: 1 - 255
Example:

"recording.wav"

content_type
string
required

MIME type of the file

Required string length: 1 - 100
Example:

"audio/wav"

Response

Successful Response

Response model for upload URL generation.

Fields

  • upload_url — Pre-signed URL for direct upload to GCS.
  • file_id — Unique identifier for the uploaded file.
  • expires_at — When the upload URL expires.

Example

upload_url
string
required

Pre-signed URL for direct upload to GCS

file_id
string
required

Unique identifier for tracking the upload

expires_at
string<date-time>
required

When the upload URL expires