API Reference

Integrate ChatSa into your applications with our powerful REST API

Authentication

All API requests require an API key to be included in the header:

Authorization: Bearer YOUR_API_KEY
POST/api/v1/chatbot

Create a new chatbot instance

Parameters

NameTypeRequiredDescription
namestringYesName of the chatbot
modelstringYesAI model to use
training_dataarrayNoInitial training data
GET/api/v1/chatbot/{id}

Retrieve chatbot details

Parameters

NameTypeRequiredDescription
idstringYesChatbot ID
POST/api/v1/chat

Send a message to the chatbot

Parameters

NameTypeRequiredDescription
chatbot_idstringYesChatbot ID
messagestringYesUser message
contextobjectNoAdditional context