Integrate ChatSa into your applications with our powerful REST API
All API requests require an API key to be included in the header:
Authorization: Bearer YOUR_API_KEY
/api/v1/chatbot
Create a new chatbot instance
Name | Type | Required | Description |
---|---|---|---|
name | string | Yes | Name of the chatbot |
model | string | Yes | AI model to use |
training_data | array | No | Initial training data |
/api/v1/chatbot/{id}
Retrieve chatbot details
Name | Type | Required | Description |
---|---|---|---|
id | string | Yes | Chatbot ID |
/api/v1/chat
Send a message to the chatbot
Name | Type | Required | Description |
---|---|---|---|
chatbot_id | string | Yes | Chatbot ID |
message | string | Yes | User message |
context | object | No | Additional context |