See also: WhatsApp API
Live · Lead Pattern × Webhooks & API
Connect Webhooks & API to WhatsApp
Send WhatsApp messages from your software with the REST API and receive 45 webhook events: messages, chats, contacts, flows, calls, groups and WooCommerce.
What you can do
Send messages programmatically via REST API
Receive real-time events through webhooks
Build fully custom integrations
Usage & logs for every API key
See every request with method, endpoint, status, client IP and latency — filter by success/failure and time range.
IP whitelisting
Restrict a key to your own servers' IP addresses. Regenerate a key instantly if it is ever exposed.
Named keys with built-in limits
One key per integration, shown only once and stored as a secure hash; per-key rate limits (60 requests a minute, 10 concurrent by default).
How to connect
1
Generate API keys
Create a named API key per integration. It's shown once and stored as a secure hash.
2
Configure webhook endpoints
Create a webhook: choose the events, enter your HTTPS endpoint, and verify signatures on delivery.
3
See developer docs for samples
Use the developer docs for request samples and a full example payload for every event.
See developer docs for samples.
Webhook events
45 events your systems can listen to
| Group | Examples |
|---|---|
| Messages | Message received · message status update · first message · template updated · raw WhatsApp payload |
| Conversations | Chat assigned / unassigned · conversation opened / closed / archived / unarchived |
| Contacts & notes | Custom field updated · tag added · tag removed · note created / updated / deleted |
| Flows | WhatsApp Flow events (when your plan includes Flows) |
| Calls | Call events, plus call_transcript_ready with each call's transcript (when your plan includes WhatsApp Calling) |
| WhatsApp groups | Group created · participant joined · participant left |
| WooCommerce | Store events when a store is connected |
Every delivery is a JSON POST with id, event, timestamp and data. The id stays the same across retries, so you can skip duplicates.
New · AI connectors (MCP)
Prefer to ask in plain words? Connect Claude, ChatGPT, Claude Code or Cursor to Lead Pattern through MCP. Copy the connector URL from Developer → AI Connectors, sign in and pick a workspace. The AI can read chats, customers and templates, and send messages, tag customers or build bots after you confirm — with an activity log of every request.
Frequently asked questions
Is there developer documentation?+
Yes — full REST API and webhook docs are available.
Can I see what my API keys are doing?+
Yes. Usage & Logs shows every request a key makes — method, endpoint, status, client IP and latency — filterable by success/failure and time range.
Can I restrict a key to my servers?+
Yes. Add your server addresses to the key's IP Whitelist. If a key is ever exposed, regenerate it and the old key stops working immediately.
How do I know a webhook really came from Lead Pattern?+
Each delivery is signed — verify the signature before trusting the payload. The guide shows how.
What happens if my server is down?+
Deliveries are logged and retried; the event id stays the same across retries so you can ignore duplicates.
Can a chatbot call my API?+
Yes. The bot builder's “Call an API” step sends an HTTP request to your system — for example to look up an order.
Does Lead Pattern have an MCP server for Claude Code or Cursor?+
Yes. AI connectors work over MCP: add the Lead Pattern connector URL to Claude Code with one command or to Cursor with a few lines of config, then sign in and pick a workspace. Each connection can make about 120 requests a minute and every request appears in the activity log. AI connectors →

Connect Webhooks & API to WhatsApp today.
14-day free trial · Free WhatsApp API setup