Back to all guides
Integrations• 7 min read•26 January 2026

How to Integrate the WhatsApp API With Your Website

Chat widgets, wa.me links, form-to-WhatsApp flows, webhooks and REST API calls — every practical way to connect your site to WhatsApp.

Integration Website API

There are four integration depths. Most businesses need the first two on day one and the last two within a month.

1. Click-to-chat links (10 minutes)

https://wa.me/91XXXXXXXXXX?text=Hi%2C%20I%20need%20help%20with — put it on the header, product pages, invoices and email footers. Every click starts a free 24-hour service window.

2. Floating chat widget

A widget with a pre-filled message per page ("I'm looking at the Pro plan") gives your agent instant context. Track clicks as a conversion event so you can attribute revenue to the channel.

3. Form and event triggers (server-side)

When a form submits, an order is placed, or a payment succeeds, call your platform's send endpoint with the template name and variables:

POST /api/v1/messages
{
  "to": "919876543210",
  "template": "order_confirmed",
  "variables": ["Rohit", "TZ-10482"]
}

Do this server-side — never expose an API key in browser JavaScript.

4. Webhooks back into your systems

Subscribe to inbound messages and status updates so your CRM knows when a lead replied, and your support desk can open a ticket automatically. Typical payloads to handle: message.received, message.delivered, message.read, message.failed.

Reliability checklist

  • Idempotency: store the message ID; retry safely if your job runner re-fires.
  • Queue everything: don't send from the request thread of a checkout.
  • Number normalisation: strip spaces, add country code, reject invalid lengths before sending.
  • Opt-in stamp: store when and where consent was captured, alongside the contact.
  • Fallback: if a template fails twice, drop to SMS or email for critical notifications.

What to measure

Delivered rate, read rate, button click rate, reply rate and revenue per 1,000 messages. If read rate drops below the eighties, your list or your frequency is the problem — not the template.

Put this into practice with TIZYY

Official Meta Cloud API, template builder, campaigns, flow automation and a shared team inbox — live in minutes.

Keep reading

Next guide
WhatsApp Message Template Approval: Rules, Rejections and Fixes