tawk.to
Log in
· Developers

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.

· JavaScript API· Webhooks· Zapier · 1,500+ apps
· Why a developer portal

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.

· Quick taste

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.
tawk-init.js
· JS API
1Tawk_API = Tawk_API || {};
2 
3Tawk_API.visitor = {
4 name: user.name,
5 email: user.email,
6};
7 
8Tawk_API.onLoad = function() {
9 if (window.location.pathname === '/admin') {
10 Tawk_API.hideWidget();
11 }
12};
· Docs in

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.

English
Arabic
Spanish
French
Italian
Portuguese
Russian
Turkish
· Start building

Open the developer portal

Full reference for the JavaScript API, Webhooks, and Zapier triggers — with quickstart guides and live examples.

· 8 languages· Status page · live