Introduction
This is documentation for version 2.0 of the LiveChatAI REST API.- All changes to version 2.0 can be viewed in the Changelog.
- To change your version, see our versioning page.
API Overview
The LiveChatAI API is organized around REST. Our API has predictable resource-oriented URLs, accepts form-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.Base URL
All API requests should be made to:Authentication
The LiveChatAI API uses API keys to authenticate requests. You can view and manage your API keys in the LiveChatAI Dashboard. Your API keys carry many privileges, so be sure to keep them secure! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so on. Authentication to the API is performed via HTTP Bearer Authentication. Provide your API key as the bearer token value:Response Format
All responses are returned in JSON format with the following structure:HTTP Status Codes
LiveChatAI uses conventional HTTP response codes to indicate the success or failure of an API request:200
- OK: Everything worked as expected400
- Bad Request: The request was unacceptable401
- Unauthorized: No valid API key provided403
- Forbidden: The API key doesn’t have the required permissions404
- Not Found: The requested resource doesn’t exist429
- Too Many Requests: Too many requests hit the API too quickly500
- Server Error: Something went wrong on our end
API Reference
- Chatbots - Create and manage AI chatbots
- Conversations - Handle chat conversations and messages
- Contacts - Manage visitor contacts and their data
- Data Sources - Train your chatbot with knowledge base content
- Messages - Send and receive messages
Support
If you need help with the API or have questions:- Email: support@livechatai.com
- Discord: Join our community
- Documentation: help.livechatai.com
Ready to get started?
Start by creating your first chatbot: Create a Chatbot