Webhook map
clientscreditsExhausted(clients.creditsExhausted)
escalationscreated(escalations.created)
leadscaptured(leads.captured)
pingreceived(ping.received)
HTTP handler setup
app/api/webhook/route.ts
Events
Clients
Credits Exhausted
clients.creditsExhausted
A client workspace ran out of its own message credits (client.credits_exhausted)
Payload
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Escalations
Created
escalations.created
A visitor asked to talk to a human; carries the last message and inbox URL (escalation.created)
Payload
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Leads
Captured
leads.captured
A visitor left contact details in a client workspace agent for the first time (lead.captured)
Payload
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Ping
Received
ping.received
A test delivery sent from the dashboard or agency.webhooks.test (ping)
Payload
Response data full type
Response data full type
webhookHooks example