Tawk.to webhooks
tawk.to webhooks are HTTP POST requests that tell your server when a live chat starts or ends, when a chat transcript is ready, or when a new ticket is created.
How Tawk.to webhooks work
Webhooks push chat and ticket activity to you as it happens, so your CRM, help desk or alerting hears about a conversation without anyone copying it across. Each webhook belongs to a tawk.to property and has a URL, one or more events and a secret key. When a chosen event happens, tawk.to sends a POST with a JSON payload to that URL.
The top-level event field names the event, such as chat:start, next to time and a property object. chat:start and chat:end add chatId, domain, referrer and visitor, chat:transcript_created nests the visitor and the full messages list under chat, and ticket:create adds requester and ticket. Payloads carry no version, and the X-Hook-Event-Id header stays the same across retries of an event.
Key facts
{raw body} The request body exactly as sent, with no timestamp or event ID.
Setting up Tawk.to webhooks
- Select the property in the dashboard, go to **Administration > Settings > Webhooks** and click **Create Webhook**. Enter a name and an HTTPS endpoint URL, select the events and save. A property can have up to 10 webhooks.
- tawk.to documents no test button, so test with a real chat or ticket. To reach your machine,
hookdeck listen 3000 tawk-to --path /webhooks/tawk-togives you a public URL. - A transcript is sent after 3 minutes of inactivity, so allow for that when you test
chat:transcript_created. - tawk.to retries failed deliveries by itself and documents no way to resend an event by hand.
Delivery behaviour
30 seconds no response in that time counts as a failure and is retried Retries up to 12 hours after any non-2xx response or a timeout; the spacing between attempts isn't published After retries run out no resend documented the docs describe no attempts after 12 hours Duplicates same ID on retries deduplicate on the X-Hook-Event-Id header Known failure modes
From Hookdeck's Tawk.to guide →-
Duplicate deliveries
tawk.to retries a failed delivery for up to 12 hours, and a handler that takes longer than 30 seconds counts as failed, so one event can reach you twice. Deduplicate on the
Handle duplicates →X-Hook-Event-Idheader, which stays the same across retries. -
Events lost after a long outage
tawk.to retries for up to 12 hours and documents no way to resend an event after that. Fix outages well inside that window, or put a durable queue in front of your endpoint.
Retries and recovery → -
Slow handlers trigger retries
tawk.to treats no response within 30 seconds as a failure and sends the event again. Store the event, return a 2xx and process it in a background job.
Respond in time → -
The chat end event has no messages
Choosing events →chat:endcarries the visitor but not the conversation. Subscribe tochat:transcript_createdfor the messages, which tawk.to sends after 3 minutes of inactivity.
Tawk.to webhook best practices
- Acknowledge fast and process asynchronously. No response within 30 seconds counts as a failure. Verify, store the event, return a 2xx and do the real work afterwards.
- Deduplicate on the event ID.
X-Hook-Event-Idstays the same across retries, so store it before you process the event and skip any you've seen. - Don't rely on arrival order.
Delivery order isn't documented. Tie events together with the chat ID and compare their
timevalues. - Route on the event field.
No header names the event. Switch on the body's
eventfield, and acknowledge anything you don't recognise. - Expect missing visitor details.
The visitor's
emailis optional, so match against your CRM by email only when one is present. - Treat transcripts as personal data. tawk.to warns that transcripts can contain personal information, and they can link to files. Decide what you store and who can read it.
Common Tawk.to webhook events
Chats
chat:start | Visitor or agent sends the first message in a chat |
chat:end | Chat session ends |
chat:transcript_created | Full transcript is ready after a chat session ends |
Tickets
ticket:create | Support ticket is created |
Events by resource
| Resource | Events | Payloads |
|---|---|---|
chat | 3 | 3 |
1 more resource, including Other Tawk.to events. All 4 events →
In this hub
| Webhook events → | Every covered Tawk.to event, with payloads where the registry has them. |
| MCP events → | How an agent subscribes to Tawk.to events as MCP events. |
| Verify signatures → | Signature facts, verification code and common failures. |
| Production guide → | Production problems, such as timeouts and retries, and how to handle them. |
| Agent skill → | Install the webhook skill in your coding agent. npx skills add hookdeck/webhook-skills --skill tawk-to-webhooks |
Keep a long outage from losing your tawk.to events.
tawk.to retries for up to 12 hours and documents no way to resend. Hookdeck Event Gateway accepts each delivery, verifies its signature, queues it and retries to your service on your schedule, so you can replay anything that failed.