Live chat API
Deacon’s live chat API lets your own code read your chats, reply to customers and keep what Deacon knows up to date. Deacon is the AI support chat on your site. When a fix ships, your release script can reply in every chat where someone reported the bug.
On every plan, including the free one.

In Acme’s chat this weekAcme’s chatTopic t4kqz8mw · 3 people
My weekly report came an hour early.
Maya from Acme
Fixed, thanks for telling us!
Reports send at 8 now, not 9?
Maya from Acme
Fixed, thanks for telling us!
Reports have been early since Sunday.
Maya from Acme
Fixed, thanks for telling us!
$ ./release.sh --fixes t4kqz8mw
✓ Shipped: reports go out on time
GET/conversations?topic=t4kqz8mw200
POST/conversations/rw3nb7kd/replies201
POST/conversations/c8vtq2xz/replies201
POST/conversations/m5dgk9pw/replies201
POST/topics/t4kqz8mw/mark-done200
Maya from Acmea minute later
Your conversation with Acme
There’s been a reply from Acme.
They hear it’s fixed
Sped up. Acme, Maya and these customers are made up for this example.
What changes when your code talks to Deacon
Nobody who reported a bug is left wondering
Writing to every one of them by hand is a chore, so it rarely happens. Your code does it every time, under your name.
Deacon stops falling behind your product
It keeps up without anyone remembering to update it, so a customer asking about this morning’s release gets a real answer.
You stay in your own tools
Your admin page or your own bot can look a customer up, reply to them and mark a topic done, so you needn’t open another dashboard.
At a glance
| What it reads | Your chats, what Deacon knows, the questions waiting for you, topics, your site’s JavaScript errors and the last 30 days of events. |
|---|---|
| What it changes | Add text or a page, re-fetch a page, change your help document, reply to a customer, hand a chat back and mark a topic done. |
| What it won’t do | Take a question and give you Deacon’s answer, change your Instructions, or read visits, goals and funnels. |
| Where you start | Make a key on Integrations. Only an owner can. |
What your code can take off you
Each one is your own code calling Deacon, with a key you make on Integrations.
When you ship a fix
Tell everyone who reported a bug that it’s fixed
Your script looks up the bug’s topic, answers each chat in it under your name and marks the topic done. Anyone who left an email gets your answer in their inbox too.
GET /conversationsPOST /conversations/{id}/repliesPOST /topics/{id}/mark-done
When you ship a feature
Tell everyone who asked for a feature that it’s live
Your script finds the chats where people asked for it and replies in each one.
GET /conversationsPOST /conversations/{id}/repliesTwo weeks ago
Can the weekly report go to my whole team?
Maya from Acme
It’s live now. Add them under Recipients, and thanks for asking!
Help1Waiting on the chat button for their next visit
Answer from your own tools
See what a customer asked before you answer them
Your admin panel looks up their chats by email, so you know what they asked Deacon before you answer their invoice query.
GET /conversationsCustomers
sam@lumen.dev
Pro plan · 3 seats
Their chats with Deacon
Why was I charged twice this month?
UnansweredToday
How do I add a seat?
AnsweredLast week
Reply to customers from Slack or Telegram
When someone asks for a person, a webhook tells your bot and it posts their words in your channel. Reply in the thread, and your bot sends it to their chat. It hands the chat back to Deacon when you’re done.
visitor.asked_for_personPOST /conversations/{id}/repliesPOST /conversations/{id}/hand-backKnow who’s still waiting before you log off
Each evening, a script reads What needs you and tells you how many people are waiting for a reply, what’s broken and what Deacon couldn’t answer.
GET /needs-you
Catch problems early
Check today’s release didn’t break anything
Half an hour after you deploy, your script looks for new bug reports and new errors on your site, and messages you if it finds any.
GET /conversationsGET /site-errorsHear when three people report the same bug
One report could be a fluke. Your script checks your topics every few minutes and messages you once a third person reports the same thing.
GET /topics
Keep Deacon up to date
Ship a feature, and Deacon knows about it
Your release script adds the release note to your help document and re-fetches the docs pages you changed. Deacon answers from the new text once it’s read, with no retraining. A re-fetch never uses the month’s pages.
POST /help-document/sectionsPOST /knowledge/{id}/refetchKeep your refund policy in your repo
When your refund policy changes in code, your build updates the section Deacon answers from.
PUT /help-document/sections/{id}
Your first call in three steps
Make a key
On Integrations, press Make a key and choose what it can do.
Read the docs
The API docs have every route, with examples.
Call it
Here’s your newest chat. What the customer wrote comes under
untrusted, so your code knows to treat it as data.
curl "https://heydeacon.com/api/v1/conversations?limit=1" \
-H "Authorization: Bearer $DEACON_API_KEY"Pair it with webhooks, your agent or a CSV
Webhooks
Hear the moment someone reports a bug or asks for a person, instead of asking every few minutes.
visitor.reported_bugMCP server
Your coding agent reads the same chats from your terminal.
search_conversationsChat transcripts
Need a copy without writing code? Export a CSV from Conversations.
Chat ID, Time, From, Message, Page
Make a key and try it
Add Deacon to your site, make a key on Integrations and call the API from your terminal. You get 50 answers a month on the free plan, and it needs no card.
What to look for in a live chat API
Check these in any chat tool’s API. Here’s what Deacon’s does for each.
Reading is the easy part
Most APIs let you list chats. Check whether yours can also add to what the bot knows, since that’s what keeps its answers right. Deacon’s can add a page, re-fetch one and change your help document.
A reply should do what your own reply does
If a reply from your code doesn’t take the chat over or reach the customer the same way, you’ve got two kinds of reply to explain. A reply through Deacon’s API does both.
Failed calls should say why
A refusal you can read and branch on saves you an afternoon. Try one with a bad id before you commit. Every refusal from Deacon’s API has a code to branch on.
FAQ
Questions about the live chat API
Yes, as whoever made the key, under their first name and your company’s. It takes the chat over, as a reply from the dashboard does, until you hand it back.
If they left an email in that chat, or your app proved who they are, it’s emailed to them a minute later unless they’ve read it in the chat. If not, a red count on the chat button tells them a reply is waiting the next time they’re on your site in that browser, within 30 days.
You choose when you make it. Read reads your chats and what Deacon knows, and can add its own webhooks. Read and write can also reply to customers, change what Deacon knows and mark topics done. No key can change your Instructions.
Your team’s keys can make 300 calls a minute between them, and a key made for a coding agent up to 60. They can send 50 replies an hour that go out by email, and you can re-fetch each page once a day. We add new things as we go. If anything ever has to be renamed or removed, the old version keeps working for at least six months, and every owner gets an email first.
Yes. A change made through the API does what the dashboard does, with the same plan limits.
Revoke it on Integrations and make another. Deacon keeps only a hash of each key, and a key sent in a URL is revoked at once, with every owner emailed.
A Read key can see the email they left and look chats up by email. So keep that key out of anything public.
Yes, and it needs no key. Call Deacon.open() from your own Help button. Your page can also pass the name and email of whoever’s logged in, with window.deaconUser, so you see who’s asking, and their plan, with Deacon.setContext(), for Deacon to take into account.
No. The API works with your chats and what Deacon knows, and Deacon only answers in the chat on your site. If you’re building your own chatbot, this isn’t the tool for that.
Tell people it’s fixed the day you ship it
It takes about five minutes to install. The free plan is 50 answers a month, for as long as you like.