Bearer Token Authentication
All API requests require authentication using a Bearer token in theAuthorization header.
Making Authenticated Requests
Include your API key in every request:Key Scoping
Each API key is scoped to a single knowledge base. This means:- You can only query the knowledge base the key was issued for
- Attempting to query a different knowledge base returns
403 Forbidden - If you have access to multiple knowledge bases, you’ll have separate keys for each
Authentication Errors
| Status Code | Error | Description |
|---|---|---|
401 Unauthorized | missing_api_key | No Authorization header provided |
401 Unauthorized | invalid_api_key | The API key is malformed or doesn’t exist |
403 Forbidden | key_scope_mismatch | The key doesn’t have access to this knowledge base |
403 Forbidden | key_revoked | The API key has been revoked |
Security Best Practices
Next Steps
Query Endpoint
Start querying knowledge bases
Rate Limits
Understand usage limits
(7).png?fit=max&auto=format&n=6FZsVQ5mPkveKHn2&q=85&s=46e497b52f808bab8589207e29abb2e1)
(6).png?fit=max&auto=format&n=3Dv90z8s7pwEMiZV&q=85&s=5b1b766bf867af4abce636e36c001b97)