Base URL
Authentication
All endpoints (except/v1/authenticate) require a valid JWT token in the Authorization header:
Request format
- All request bodies must be JSON with
Content-Type: application/json - For streaming endpoints, also include
Accept: text/event-stream
Response format
All responses return JSON. Successful responses include the requested data directly:Error responses
Errors return a JSON object with adetail field:
HTTP status codes
| Code | Description |
|---|---|
| 200 | Success |
| 201 | Created |
| 204 | No Content - success with no response body |
| 400 | Bad request - invalid parameters |
| 401 | Unauthorized - missing or invalid token |
| 404 | Not found - resource doesn’t exist |
| 500 | Internal server error |
Pagination
List endpoints that support pagination return results in pages. Pass apage query parameter (1-based) to navigate. Responses include total, page, page_size, and has_more fields.
Endpoint summary
| Method | Endpoint | Description |
|---|---|---|
| POST | /v1/authenticate | Exchange API key for JWT token |
| GET | /v1/models | List available AI models |
| GET | /v1/integrations | List database integrations |
| GET | /v1/projects | List projects |
| GET | /v1/projects/{id} | Get a specific project |
| GET | /v1/queries | List saved queries |
| GET | /v1/queries/{id} | Get a saved query |
| POST | /v1/queries | Create a saved query |
| PATCH | /v1/queries/{id} | Update a saved query |
| DELETE | /v1/queries/{id} | Delete a saved query |
| GET | /v1/chats | List chats (paginated) |
| GET | /v1/chats/{id} | Get chat with messages |
| POST | /v1/chats | Send message (SSE stream) |
| PUT | /v1/chats/{id} | Update chat title |
| DELETE | /v1/chats | Delete multiple chats |
| DELETE | /v1/chats/{id} | Delete a chat |
| DELETE | /v1/chats/{id}/messages/{id} | Delete a message and all subsequent messages |
| PATCH | /v1/chats/{id}/messages/{id} | Edit a message and re-stream the response |
| PATCH | /v1/chats/messages/{id}/feedback | Add message feedback |
| POST | /v1/chats/followups | Get follow-up suggestions |
| POST | /v1/voice/sessions | Create a voice chat session |