WhatsApp API and webhooks for developers

The Autochatix API lets your own system send WhatsApp templates, texts, media and OTPs through one REST API at https://api.autochatix.com/api/v1, with a scoped key in the X-API-Key header. Signed webhooks tell your system about six events: new orders, abandoned carts, new contacts, deal stage changes, bookings and missed SLAs. It is part of the Pro plan.

REST API keys, signed outbound webhooks and a failure log — for connecting your own systems to WhatsApp.

Start free trial Ask us on WhatsApp

See this part of the workflow

api webhooks — local product interface with sample data
A quick tour of the Autochatix workspace, recorded locally with sample data. Outbound-webhook configuration entry; no delivery, retry or replay is demonstrated.

Follow the product task

How to Connect an API or Webhook to WhatsApp: prerequisites, exact controls, result checks and recovery.

More operational help · See local product walkthroughs

What the API gives you

Send messages

Send an approved template, a text, a media file or an OTP from your own system — an ERP, a booking engine, a hospital information system. For one-time codes, see WhatsApp OTP messages.

List numbers and templates

Read which WhatsApp numbers and approved templates the account has, so your code sends from the right number with a template that exists.

Scoped keys

Give each key only what it needs: sending, reading templates, reading numbers, or managing webhook subscriptions. Messages sent to a new number create the contact automatically.

API keys, stored as hashes

Keys are stored as hashes. The profile interface exposes a one-time secret on creation or rotation. Copy it to your integration’s secret store before dismissing the dialog; reloading or dismissing clears it, and lists show only the prefix. Rotation immediately invalidates the old key. Keep keys out of URLs, screenshots and browser tools.

Outbound webhooks

Your endpoint called when an order is created, a cart is abandoned, a contact is created, a deal changes stage, a booking is made or a ticket breaches its SLA.

Inspect failed outbound delivery

The dispatcher makes one delivery attempt with an eight-second timeout and records failures. After 15 failures in a row the endpoint is switched off. Arrange your own recovery process; automatic general outbound retries are not implemented.

Endpoints and scopes

Every path below sits under https://api.autochatix.com/api/v1. Send the key in the X-API-Key header; a key only reaches the endpoints its scopes allow. This list is from the current release, checked 28 November 2026.

Autochatix public API endpoints
MethodPathWhat it doesScope
GET/channelsList the WhatsApp numbers on the account, to pick which one sendschannels.read
GET/templatesList approved templatestemplates.read
POST/messages/textSend a text (inside the 24-hour window)messages.send
POST/messages/mediaSend an image, video or documentmessages.send
POST/messages/templateSend an approved templatemessages.send
POST/messages/auth-otpSend a one-time code with an authentication templatemessages.send
GET/sms/channelsList SMS senderschannels.read
POST/sms/sendSend an SMS (outgoing only)sms.send
GET/sms/status/:idCheck whether an SMS was sent or failedsms.send
GET/hooks/eventsList the webhook events you can subscribe tohooks.manage
GET/hooks/sample/:eventGet a sample payload for an eventhooks.manage
GET/hooks/subscriptionsList your webhook subscriptionshooks.manage
POST/hooks/subscribeSubscribe a URL to one or more eventshooks.manage
DELETE/hooks/subscribe/:idRemove a subscriptionhooks.manage

There is no endpoint to read or edit contacts: a message to a new number creates the contact, and the contact.created webhook tells your system about new ones. Code examples, and how this compares with calling Meta’s Cloud API yourself, are in WhatsApp API for developers.

The six webhook events, and how to check they are real

Outbound webhook events
EventWhen it is sent
order.createdA customer placed a WhatsApp catalog order
cart.abandonedAn order was started but payment was not completed
contact.createdA new contact was added on a channel
deal.stage_changedA contact moved to a new CRM lifecycle stage
booking.createdA calendar appointment was booked
ticket.sla_breachedA support ticket missed its first-response or resolution target

Each request carries three headers: X-AutoChatix-Event (the event name), X-AutoChatix-Timestamp (Unix time in milliseconds) and X-AutoChatix-Signature, which is sha256= followed by an HMAC-SHA256 of the timestamp, a dot and the raw body, keyed with your signing secret. Check it before you trust the payload:

const crypto = require("crypto");

// rawBody: the exact request bytes. secret: the signing secret shown when you created the hook.
function isFromAutochatix(rawBody, headers, secret) {
  const timestamp = headers["x-autochatix-timestamp"];
  const sent = (headers["x-autochatix-signature"] || "").replace(/^sha256=/, "");
  if (!timestamp || Math.abs(Date.now() - Number(timestamp)) > 5 * 60 * 1000) return false; // stale
  const expected = crypto.createHmac("sha256", secret).update(`${timestamp}.${rawBody}`).digest("hex");
  return sent.length === expected.length &&
    crypto.timingSafeEqual(Buffer.from(sent), Buffer.from(expected));
}

Delivery is one attempt with an eight-second timeout. A failed delivery is logged with its error, so you can see what went wrong; it is not retried automatically, and after 15 failures in a row the endpoint is switched off. Answer with a 2xx quickly and do slow work afterwards. Zapier and Make connect the same way: their triggers subscribe through the /hooks endpoints above, so there is no second delivery system to learn. Options and costs for connecting your systems: WhatsApp API integration guide.

When to use the API instead of a flow

Most things do not need the API, and reaching for it first is a common mistake. Background on Meta's side of this: the WhatsApp Cloud API.

Use a flow when the logic is about the conversation — asking, branching, collecting, confirming. The builder handles that without code, and it is faster to change. For a system built around your process, see custom software development.

Use the API Request block when a flow needs something only your system knows — current stock, a customer’s balance, whether a slot is free. That is still a flow; it just calls out mid-conversation.

Use the REST API when the trigger lives entirely outside WhatsApp. Your ERP decides to notify a customer; your CRM wants to start a conversation; a nightly job needs to send reminders from your own database. Code examples for Meta’s Cloud API and the Autochatix API: WhatsApp API for developers. For apps that use these webhooks, see mobile app development.

Use webhooks when your system needs to know what happened in Autochatix — an order came in from the WhatsApp catalogue, a cart was abandoned, a booking was made, a deal moved stage. Replies themselves are handled in the inbox and by your flows.

If you are not sure, start with a flow. Dropping to the API later is easy; rebuilding conversation logic in code because you started there is not.

Things worth knowing before you build

The practical details that are not in a feature list.

Rate limits apply to sending. Send endpoints are rate limited, which contains the damage if a credential leaks or your job misfires in a loop. Build for it rather than against it.

Meta’s messaging limit tier still governs volume. The API does not bypass it. A job that tries to send 10,000 messages on a new number will be throttled by Meta, not by us.

Webhook signatures are verified. Incoming webhooks from Meta are checked against an HMAC-SHA256 signature with a timing-safe comparison, so nobody can inject fake messages into your inbox. For Autochatix outbound webhooks, verify HMAC-SHA256 over timestamp + "." + rawBody using the X-AutoChatix-Timestamp header and signing secret; compare with X-AutoChatix-Signature using a timing-safe check. Reject stale timestamps. This signed input differs from Meta’s incoming webhook format.

Templates still apply. Starting a conversation through the API still requires an approved template — the API changes who triggers the send, not the platform rules.

Failures are visible. Failed webhook deliveries are logged with the response, so a broken endpoint is diagnosable rather than mysterious.

Which plan includes it

API access and outbound webhooks are part of Pro: ₹2,499 a month plus GST during the launch offer (regular ₹3,999), as listed on pricing. Starter and Growth cover the dashboard and flows, and Growth adds Google Sheets, which is enough for most businesses that are not integrating their own systems.

Enterprise adds custom integration work and higher limits. If you need something specific, say so before signing up rather than after — see pricing and development services.

A worked example

A diagnostic lab runs its own patient management system. Reports are generated there, not in WhatsApp.

1. The lab system calls the API. When a report is ready, their system posts to our send endpoint with the patient’s number and the report template.

2. The template carries the document. Approved in advance as a utility template, because it is a notice about a transaction the patient is already part of.

3. The patient replies with a question. The reply arrives in Autochatix like any other incoming message, so the lab’s code does not have to receive it. If the patient books a visit, the booking.created webhook tells the lab’s system.

4. The right place handles it. A scheduling question goes to a flow; a clinical one is assigned to a person in the shared inbox.

The lab did not rebuild WhatsApp conversation handling in their own code, and we did not need access to their patient database. Each system does the part it is good at.

Frequently asked questions

Tell us what you want to connect

Start free trial See pricing

Related: Free chat button · Integrations · Flow builder · Security · Custom development

Last updated: 2 November 2026

Related reading for this workflow

Autochatix

Let’s talk about your business

Leave your number and the Autochatix team will call you to discuss your requirements.

Choose your country and enter your number, or include + and your country code.

By requesting a callback, you ask Autochatix to call this number about your enquiry. Privacy Policy.