# 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](/docs/api-reference/v2/overview): the Chat API for conversations and the Tools API for agents, conversations, leads and contacts. > [!WARNING] > > **API v1 is legacy.** For new integrations, use the [Chat API](/docs/api-reference/v2/agents/chat-with-an-agent). It has structured error codes, Server-Sent Events streaming, rate-limit headers and saved conversations. > [card] Building a new integration? | /docs/api-reference/v2/overview | Start with the current API: one key for the Chat API and the Tools API. ## 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](/docs/api-reference/v2/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](/docs/api-reference/v1/chat/chat-with-a-chatbot). | Each older endpoint's job, and where to do it now: | Job | Use now | | - | - | | List chatbots | [`list_agents`](/docs/api-reference/v1/chatbots/get-all-chatbots) | | Replace a chatbot's text | [`update_source_content`](/docs/api-reference/v1/chatbots/update-a-chatbot) | | Update chatbot settings | [`update_instructions`, `update_model` and more](/docs/api-reference/v1/chatbots/update-chatbot-settings) | | Get conversations | [`query_conversations`](/docs/api-reference/v1/conversations/get-conversations-for-a-chatbot) | | Get leads | [Recent form submissions](/docs/api-reference/v1/leads/get-leads-for-a-chatbot) | | Upload or delete the chat icon | [`update_styles` with `launcherIconUrl`](/docs/api-reference/v1/assets/upload-chatbot-icon) | | Upload or delete the profile picture | [`update_styles` with `agentPictureUrl`](/docs/api-reference/v1/assets/upload-chatbot-profile-picture) | | Update a contact | [`update_contact_tags`](/docs/api-reference/v1/contacts/update-a-contact) | | Read contact attributes | [`get_procedure_context`](/docs/api-reference/v1/contacts/get-custom-attributes-schema) | Creating and deleting chatbots, and creating, reading or deleting contacts and custom attributes, aren't available through the API. Do them in the dashboard.