Authentication
Bearer token authentication for the v2 Conversations API
Bearer Token Authentication
All v2 endpoints require a Bearer token in the Authorization header. No client ID or client secret is involved.
Authorization: Bearer <your_token>Getting Your Token
You will receive your API token during onboarding from the Querio team.
Example Request
curl -X POST https://app.querio.ai/api/v2/embed/{customer_slug}/conversations \
-H "Authorization: Bearer <your_token>" \
-H "Content-Type: application/json" \
-d '{
"prompt": "How many shipments happened in the last 30 days",
"datasourceId": "your_dataset_id",
"scope": {
"customer_id": "your_customer_id"
},
"environment": "production"
}'Error Responses
| Status | Code | Description |
|---|---|---|
| 401 | invalid_request | Missing or malformed Authorization header |
| 401 | invalid_client | Invalid or expired token |