REST API
Call Chatbot via REST API
Use the REST API to query a Denser chatbot from anywhere--your product, internal tools, or automations. This quick start walks you through making your first request.
To send a request, you need two values: an API key and a chatbot ID. Get both below, then run the test request.
1. Generate an API key
Open the chatbot you want to query, then open Settings.
Select the API Keys tab.
Click Generate API Key to create one, then copy it — the key is shown only once.

Regenerating disables the old key
Regenerating the API key immediately invalidates the previous one. Update every place that uses the old key after rotating.
For more on managing and securing keys, see API Keys.
2. Find your chatbot ID
In the header bar, click the share icon next to the chatbot name to open its menu.
Choose Copy chatbot ID to copy the ID to your clipboard.

3. Send a test request
Test the API with curl. Replace <chatbot-id> and <api-key> with the values from the steps above, and <example-question> with the question you want to ask.
curl https://denser.ai/api/query -X POST -H "Content-Type: application/json" -d \
'{
"chatbotId": "<chatbot-id>",
"question": "<example-question>",
"key": "<api-key>"
}'Run it without writing code
The API is also a channel on the Deploy page, and it can make a real request for you before you write anything.
Open the chatbot dashboard, switch to Deploy, and select the API card.
Pick or create a key there — you do not need to visit Settings separately.
Type a question in the try-it panel and send it. The request runs against this chatbot and shows the real response, including the citations it returned.
This is the fastest way to confirm the key works and the chatbot answers as expected. The curl above is the same call.
Instructions for API answers only
The AI Settings tab on the API card holds instructions that apply to this channel alone — useful when answers consumed by your own product need a different length or format than the ones shown in a chat bubble. Everything else comes from the chatbot's own configuration.
Go further
Explore payload options, streaming responses, and error codes in the API reference.
Zapier Integration
Connect your Denser chatbot to Zapier and automate workflows across 6,000+ apps. Use your chatbot as a trigger or an action.
API Documentation
Use Denser.ai’s API chat integration to exchange messages programmatically. Build custom chat UIs, link external apps, and manage conversations via code.