Build on tawk.to.
The JavaScript API, Webhooks, and Zapier integration give you everything you need to wire chat into the rest of your stack — with docs in eight languages.
- Chat starts
- Chat ends
- Chat transcripts
- Ticket creation
Hooks for the things you'd otherwise build twice.
Most teams want chat to talk to the rest of their stack — show different widgets to different visitors, push events to a CRM, kick off automations when a chat ends. The developer portal exposes the surfaces to do all of that without forking the widget.
Pick the surface that fits the job.
JavaScript for in-page behaviour. Webhooks for server-side events. Zapier when you'd rather not write code at all.
JavaScript API
Manipulate the chat widget at runtime — show it, hide it, set visitor attributes, listen to events.
- ·Show, hide, maximize, minimize the widget
- ·Set visitor name and email; push custom attributes via setAttributes()
- ·Listen for onChatStarted, onChatEnded, and chat message events
- ·Trigger functions on widget load and status change
Webhooks
Real-time event notifications to any HTTPS endpoint. Connect chat events to your back end the moment they happen.
- ·Chat starts, chat ends, chat transcripts, ticket creation
- ·HMAC-SHA1 signed (X-Tawk-Signature header)
- ·Retried for up to 12 hours on non-2XX responses
- ·30-second request timeout
Zapier
Connect tawk.to to 1,500+ other web services. Set up Zaps in minutes — no coding.
- ·1,500+ connected apps
- ·Set up in minutes, no coding
- ·Setup guide at developer.tawk.to/zapier
Wire it up in five lines.
Identify a logged-in visitor, attach custom attributes, and hide the widget on routes where you don't want it. That's most projects' day-one integration.
- ·Set Tawk_API.visitor before the widget script loads.
- ·Attribute changes mid-session use Tawk_API.setAttributes().
- ·Full reference: developer.tawk.to/jsapi.
1Tawk_API = Tawk_API || {};23Tawk_API.visitor = {4name: user.name,5email: user.email,6};78Tawk_API.onLoad = function() {9if (window.location.pathname === '/admin') {10Tawk_API.hideWidget();11}12};
Read the docs in your language.
The developer portal ships in eight languages so the team that's actually doing the integration doesn't need to translate as they go.
Open the developer portal.
Full reference for the JavaScript API, Webhooks, and Zapier triggers — with quickstart guides and live examples.