Reference

HTTP API

The API is served under /api/v1. Public endpoints need no credentials; everything else takes a bearer token.

Public endpoints

MethodPathPurpose
GET/healthLiveness check
POST/public/chatbot/:publicId/chatAsk a chatbot a question
GET/admin/pricing/publicActive pricing plans

Authenticated endpoints

Send the token from sign-in as a bearer header:

curl https://your-domain.com/api/v1/chatbots \
  -H "Authorization: Bearer YOUR_TOKEN"
MethodPathPurpose
GET/chatbotsList your chatbots
POST/chatbotsCreate a chatbot
GET/chatbots/:idOne chatbot, with its sources
POST/chatbots/:id/sources/urlAdd a website source
POST/chatbots/:id/sources/fileUpload a document
POST/chatbots/:id/chat/streamAsk, with streamed tokens