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.

4 events covered

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

Signature header
X-Tawk-Signature

Format: <lowercase hex>

Scheme
HMAC-SHA1
Signed material
{raw body}

The request body exactly as sent, with no timestamp or event ID.

How events are identified
event field in the body
Body format
JSON
Other headers
x-hook-event-id
Envelope
event, time, property
Agent skill
npx skills add hookdeck/webhook-skills --skill tawk-to-webhooks

Verify Tawk.to webhooks →

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

  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 →
  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 →
  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 →
  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 →

Tawk.to webhook best practices

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

chat:start · :end · :transcript_created

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.

Not affiliated with Tawk.to. Facts are compiled from public sources and linked inline.