NewDirect Send — reply after WhatsApp's 24-hour window without a template. Free on every plan. See how it works →
Lead Pattern

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.

✨ Ask AI about this page:ChatGPT logoChatGPTClaude logoClaudePerplexity logoPerplexity

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.

View API documentation

Webhook events

45 events your systems can listen to

GroupExamples
MessagesMessage received · message status update · first message · template updated · raw WhatsApp payload
ConversationsChat assigned / unassigned · conversation opened / closed / archived / unarchived
Contacts & notesCustom field updated · tag added · tag removed · note created / updated / deleted
FlowsWhatsApp Flow events (when your plan includes Flows)
CallsCall events, plus call_transcript_ready with each call's transcript (when your plan includes WhatsApp Calling)
WhatsApp groupsGroup created · participant joined · participant left
WooCommerceStore 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.

See AI connectors

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 →

Lead Pattern

Connect Webhooks & API to WhatsApp today.

14-day free trial · Free WhatsApp API setup

Ask AI about this page

Get a quick summary of this page from your favourite AI assistant — based only on leadpattern.com. Be one of the first to try it.