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.
Feature
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 WhatsAppHow to Connect an API or Webhook to WhatsApp: prerequisites, exact controls, result checks and recovery.
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.
Read which WhatsApp numbers and approved templates the account has, so your code sends from the right number with a template that exists.
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.
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.
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.
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.
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.
| Method | Path | What it does | Scope |
|---|---|---|---|
GET | /channels | List the WhatsApp numbers on the account, to pick which one sends | channels.read |
GET | /templates | List approved templates | templates.read |
POST | /messages/text | Send a text (inside the 24-hour window) | messages.send |
POST | /messages/media | Send an image, video or document | messages.send |
POST | /messages/template | Send an approved template | messages.send |
POST | /messages/auth-otp | Send a one-time code with an authentication template | messages.send |
GET | /sms/channels | List SMS senders | channels.read |
POST | /sms/send | Send an SMS (outgoing only) | sms.send |
GET | /sms/status/:id | Check whether an SMS was sent or failed | sms.send |
GET | /hooks/events | List the webhook events you can subscribe to | hooks.manage |
GET | /hooks/sample/:event | Get a sample payload for an event | hooks.manage |
GET | /hooks/subscriptions | List your webhook subscriptions | hooks.manage |
POST | /hooks/subscribe | Subscribe a URL to one or more events | hooks.manage |
DELETE | /hooks/subscribe/:id | Remove a subscription | hooks.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.
| Event | When it is sent |
|---|---|
order.created | A customer placed a WhatsApp catalog order |
cart.abandoned | An order was started but payment was not completed |
contact.created | A new contact was added on a channel |
deal.stage_changed | A contact moved to a new CRM lifecycle stage |
booking.created | A calendar appointment was booked |
ticket.sla_breached | A 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.
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.
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.
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 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.
Yes, provided with your API key. Tell us what you are building on the call and we will point you at the relevant endpoints rather than making you read everything.
You cannot recover it — only a hash is stored. Generate a new one and revoke the old. Rotate keys when a developer leaves, as a matter of routine.
No. Starting a conversation requires an approved template regardless of how the send is triggered. That is a Meta platform rule, not ours.
Each delivery is signed. Verify the signature with a timing-safe comparison before trusting the payload — the same way we verify Meta's webhooks to us.
Yes. If your system needs custom work rather than one of the six implemented connectors, that is a separate engagement — see development services.
Related: Free chat button · Integrations · Flow builder · Security · Custom development
Last updated: 2 November 2026
Create or update HubSpot contacts from a WhatsApp flow. See supported fields, email matching, Private App access and the limits of this connector.