# 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.

Agent skill: `npx skills add hookdeck/webhook-skills --skill tawk-to-webhooks` ([details](https://hookdeck.com/webhooks/tawk-to/skill))

> Independent reference generated from hookdeck/webhook-registry (commit ff7f882, 20 Nov 2026). [Tawk.to's official docs](https://developer.tawk.to/webhooks/).

[Overview](https://hookdeck.com/webhooks/tawk-to) · [Webhook events (4)](https://hookdeck.com/webhooks/tawk-to/events) · [MCP events](https://hookdeck.com/webhooks/tawk-to/mcp-events) · [Verify signatures](https://hookdeck.com/webhooks/tawk-to/verify) · [Production guide](https://hookdeck.com/webhooks/tawk-to/guide-duplicates-ordering-retries-timeouts) · [Agent skill](https://hookdeck.com/webhooks/tawk-to/skill)

## Key facts

| Fact | Value | Source |
|---|---|---|
| Signature header | `X-Tawk-Signature` Format: <lowercase hex> | [Tawk.to docs](https://developer.tawk.to/webhooks/) |
| Scheme | `HMAC-SHA1` | [Tawk.to docs](https://developer.tawk.to/webhooks/) |
| Signed material | `{raw body}` The request body exactly as sent, with no timestamp or event ID. | [Tawk.to docs](https://developer.tawk.to/webhooks/) |
| How events are identified | `event field in the body` | [Tawk.to docs](https://developer.tawk.to/webhooks/) |
| Body format | `JSON` | [Tawk.to docs](https://developer.tawk.to/webhooks/) |
| Other headers | `x-hook-event-id` | [Tawk.to docs](https://developer.tawk.to/webhooks/) |
| Envelope | `event, time, property` | [Tawk.to docs](https://developer.tawk.to/webhooks/) |
| Agent skill | `npx skills add hookdeck/webhook-skills --skill tawk-to-webhooks` | [Agent skill →](https://hookdeck.com/webhooks/tawk-to/skill) |

[Verify Tawk.to webhooks](https://hookdeck.com/webhooks/tawk-to/verify)

## 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.

## 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-to` gives 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

- **Timeout:** 30 seconds. no response in that time counts as a failure and is retried. [Guide](https://hookdeck.com/webhooks/tawk-to/guide-duplicates-ordering-retries-timeouts#timeouts)
- **Retries:** up to 12 hours. after any non-2xx response or a timeout; the spacing between attempts isn't published. [Guide](https://hookdeck.com/webhooks/tawk-to/guide-duplicates-ordering-retries-timeouts#retries)
- **After retries run out:** no resend documented. the docs describe no attempts after 12 hours. [Guide](https://hookdeck.com/webhooks/tawk-to/guide-duplicates-ordering-retries-timeouts#retries)
- **Duplicates:** same ID on retries. deduplicate on the `X-Hook-Event-Id` header. [Guide](https://hookdeck.com/webhooks/tawk-to/guide-duplicates-ordering-retries-timeouts#duplicates)

## Known failure modes

1. **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 `X-Hook-Event-Id` header, which stays the same across retries. [Handle duplicates](https://hookdeck.com/webhooks/tawk-to/guide-duplicates-ordering-retries-timeouts#duplicates)
2. **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](https://hookdeck.com/webhooks/tawk-to/guide-duplicates-ordering-retries-timeouts#retries)
3. **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](https://hookdeck.com/webhooks/tawk-to/guide-duplicates-ordering-retries-timeouts#timeouts)
4. **The chat end event has no messages.** `chat:end` carries the visitor but not the conversation. Subscribe to `chat:transcript_created` for the messages, which tawk.to sends after 3 minutes of inactivity. [Choosing events](https://hookdeck.com/webhooks/tawk-to/guide-duplicates-ordering-retries-timeouts#choosing-events)

From [Hookdeck's Tawk.to guide](https://hookdeck.com/webhooks/tawk-to/guide-duplicates-ordering-retries-timeouts).

## Tawk.to webhook best practices

- **[Acknowledge fast and process asynchronously](https://hookdeck.com/webhooks/tawk-to/guide-duplicates-ordering-retries-timeouts#timeouts).** 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](https://hookdeck.com/webhooks/tawk-to/guide-duplicates-ordering-retries-timeouts#duplicates).** `X-Hook-Event-Id` stays the same across retries, so store it before you process the event and skip any you've seen.
- **[Don't rely on arrival order](https://hookdeck.com/webhooks/tawk-to/guide-duplicates-ordering-retries-timeouts#ordering).** Delivery order isn't documented. Tie events together with the chat ID and compare their `time` values.
- **[Route on the event field](https://hookdeck.com/webhooks/tawk-to/guide-duplicates-ordering-retries-timeouts#choosing-events).** No header names the event. Switch on the body's `event` field, and acknowledge anything you don't recognise.
- **[Expect missing visitor details](https://hookdeck.com/webhooks/tawk-to/guide-duplicates-ordering-retries-timeouts#other-limits).** The visitor's `email` is optional, so match against your CRM by email only when one is present.
- **[Treat transcripts as personal data](https://hookdeck.com/webhooks/tawk-to/guide-duplicates-ordering-retries-timeouts#other-limits).** 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](https://hookdeck.com/webhooks/tawk-to/events#chat%3Astart): Visitor or agent sends the first message in a chat
- [chat:end](https://hookdeck.com/webhooks/tawk-to/events#chat%3Aend): Chat session ends
- [chat:transcript_created](https://hookdeck.com/webhooks/tawk-to/events#chat%3Atranscript_created): Full transcript is ready after a chat session ends

### Tickets

- [ticket:create](https://hookdeck.com/webhooks/tawk-to/events#ticket%3Acreate): Support ticket is created

## Events by resource

| Resource | Events | Payloads |
|---|---|---|
| [chat](https://hookdeck.com/webhooks/tawk-to/events#resource-chat) | 3 | 3 |

1 more resource. [All 4 events](https://hookdeck.com/webhooks/tawk-to/events)

## In this hub

- [Webhook events](https://hookdeck.com/webhooks/tawk-to/events): Every covered Tawk.to event, with payloads where the registry has them.
- [MCP events](https://hookdeck.com/webhooks/tawk-to/mcp-events): How an agent subscribes to Tawk.to events as MCP events.
- [Verify signatures](https://hookdeck.com/webhooks/tawk-to/verify): Signature facts, verification code and common failures.
- [Production guide](https://hookdeck.com/webhooks/tawk-to/guide-duplicates-ordering-retries-timeouts): Production problems, such as timeouts and retries, and how to handle them.
- [Agent skill](https://hookdeck.com/webhooks/tawk-to/skill): Install the webhook skill in your coding agent. `npx skills add hookdeck/webhook-skills --skill tawk-to-webhooks`
---

Not affiliated with Tawk.to. Facts are compiled from public sources and linked inline. [View as JSON](https://hookdeck.com/webhooks/tawk-to.json) · [Report a correction](https://hookdeck.com/contact)
