Skip to main content
POST
Generate Upload URL

Body

application/json

Request model for generating a signed upload URL.

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

Example: { "file_name": "recording.wav", "content_type": "audio/wav" }

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.

Attributes: 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": "https://storage.googleapis.com/...", "file_id": "550e8400-e29b-41d4-a716-446655440000", "expires_at": "2024-01-15T10:30:00Z" }

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