cURL
curl --request POST \ --url https://apigcp.trynia.ai/v2/sources/upload-url \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "filename": "<string>", "content_type": "application/pdf" } '
{ "upload_url": "<string>", "gcs_path": "<string>", "expires_in_seconds": 123 }
Generate a signed URL for direct PDF upload. Use the returned gcs_path in POST /v2/sources.
API key must be provided in the Authorization header
Original filename (used for storage object naming)
1
MIME type. Currently only application/pdf is supported.
Successful Response
Signed URL for direct upload (HTTP PUT)
GCS path to pass to create-source payload
Signed URL expiration in seconds
Was this page helpful?
Suggestions
Contact support