Webhooks
We POST a JSON body to a URL you own, whenever something happens on the
account. Five event types are available:
| Event type | Fires when |
|---|---|
AccountSMS | A text message is sent or received |
AccountRealTimeCalls | A call changes state — while it is happening |
AccountEndedCalls | A call finishes, with its full leg breakdown |
UserEndedCalls | A call finishes, from one user's perspective |
AccountAITranscription | A call's transcription and summary are ready |
How it fits together
- Subscribe — create a subscription with your URL and one event type, over the API or in the portal.
- Receive — we POST the event body to that URL.
- Respond
2xxfast, then do your work asynchronously.
Before you build
danger
A minimal receiver
Answer within the 30-second timeout, then work off the request path — a slow handler loses the event, because nothing is retried.
app.post('/telebroad/hook', express.json(), (req, res) => {
res.sendStatus(200);
queue.push(req.body);
});