Getting Started
API v1 Overview
The legacy chat endpoint, and where each older endpoint's job lives now
API v1 is QwryAI's earlier API. One endpoint remains, POST /api/v1/chat, kept so integrations written for it keep working. Everything else is done with the current API: the Chat API for conversations and the Tools API for agents, conversations, leads and contacts.
About API v1
API v1 uses the same API keys as the current API, sent as Authorization: Bearer YOUR_API_KEY. The key needs Chat with agents, and API access needs the Starter, Growth or Enterprise plan. Errors come back as { "message": "…" } with no error code. See Authentication to create a key.
Endpoints
Base URL: https://api.qwryai.com/api/v1
| Method | Endpoint | Status |
|---|---|---|
POST | /chat | Available. See Chat with a chatbot. |
Each older endpoint's job, and where to do it now:
| Job | Use now |
|---|---|
| List chatbots | list_agents |
| Replace a chatbot's text | update_source_content |
| Update chatbot settings | update_instructions, update_model and more |
| Get conversations | query_conversations |
| Get leads | Recent form submissions |
| Upload or delete the chat icon | update_styles with launcherIconUrl |
| Upload or delete the profile picture | update_styles with agentPictureUrl |
| Update a contact | update_contact_tags |
| Read contact attributes | get_procedure_context |
Creating and deleting chatbots, and creating, reading or deleting contacts and custom attributes, aren't available through the API. Do them in the dashboard.