IntegrationsRESTful API
Chatbot API
POST
/api/query
Query chatbot
Send a message to the chatbot to get a response.
Request Body
question
Requiredstring
Question to ask the chatbot.
Example:What are the pricing options for denserbot?
key
Requiredstring
API key for the chatbot.
Example:11111111-1111-1111-1111-111111111111
chatbotId
Requiredstring
Identifier for a chatbot.
Example:00000000-0000-0000-0000-000000000000
context
array
Include previous conversation in the question. Help the chatbot understand the context of the conversation.
Example:[{"role": "user", "content": "last question"}, {"role": "assistant", "content": "last response"}]
prompt
string
Customized prompt for the LLM model.
Example:Please provide your answer in the following format: ...
model
string
Select LLM model to provide a response. Defaults to gpt-4o-mini
.
Available options: gpt-3.5
| gpt-4o-mini
| gpt-4o
| gpt-4
| claude-3-5-sonnet
| claude-3-5-haiku
| claude-3-7-sonnet
citation
boolean
Whether to include citations in the response. Defaults to true
.
Status code | Description |
---|---|
200 | Success |
400 | Bad Request |
401 | Unauthorized |
500 | Internal server error |
A successful response will return the answer from the chatbot, together with the original document passages that the answer is based on.