Skip to main content
POST
Generate database upload URL

Authorizations

X-API-Key
string
header
required

API key authentication. Include your API key in the X-API-Key header as: X-API-Key YOUR_API_KEY

Example:

Authorization
string
header
required

JWT Bearer token authentication. Include your access token in the Authorization header as: Bearer YOUR_ACCESS_TOKEN

Example:

Path Parameters

db_id
string
required

Query Parameters

content_type
string

Response

Pre-signed upload URL generated successfully

Response containing pre-signed upload URL for file uploads.

Generated by POST /database/{db_id}/upload-url endpoint. Use this URL to upload files directly to cloud storage.

file_key
string
required

Unique key identifying the file location in storage. Use this key to reference the file in subsequent operations.

Example:

"databases/123e4567-e89b-12d3-a456-426614174000/documents/file-uuid.csv"

upload_url
string
required

Pre-signed URL for uploading file to cloud storage. Upload your file to this URL using PUT or POST request.

Example:

"https://storage.googleapis.com/bucket/path/file.csv?signature=abc123&expires=1640000000"

expires_at
string | null

UTC timestamp when the upload URL expires. Complete the upload before this time. Typically 1 hour from generation.

Example:

"2024-01-15T11:30:00Z"