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 upload. Use the returned gcs_path in POST /v2/sources.
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
}API key must be provided in the Authorization header
Was this page helpful?