WhatsApp messaging
Send WhatsApp messages from your own systems: create templates, send them one at a time or as a campaign, reply to customers, and follow every message to delivery. Connect your WhatsApp number in the dashboard first.
How sending works
- Create a template and wait for
APPROVED(usually within 24 hours). - Send it with the
templateId— to one person with Send a template message, or up to 100 with Send a campaign. - Track delivery with webhooks (recommended) or Get message status.
- Reply — when a customer writes back you get a message.received webhook and can answer with Reply in a conversation for 24 hours.
Which id is which
| Id | Looks like | Where you get it | Use it for |
|---|---|---|---|
templateId | 9f1c2e7a… (32 chars) | Create / List templates | Sending |
messageId | 482913 (number) | Send response | Get message status |
providerMessageId | wamid.HBgM… | Send response | Matching delivery.* webhooks (their messageId) |
campaignId | 5be0a3c1… (32 chars) | Send a campaign | Get campaign status |
wabaId | 104857600123456 | Check number health | Choosing which number sends |
Opt-outs
When a customer replies with just STOP (or unsubscribe, opt out, cancel…), later template messages to them are SKIPPED and not charged. You can also opt people in or out in the dashboard under Marketing → Opt-outs. Replies in the 24-hour window are not blocked.
Billing
Each template message is charged at its category’s rate (utility or marketing). The charge is held when you send, confirmed when the message is delivered, and released if it fails — so failed and skipped messages cost nothing. Carousel messages have their own price; see Carousel pricing.
Carousel templates
A carousel template sends a short message followed by 2 to 10 cards the customer swipes through. Each card has its own image or video, up to 160 characters of text, and 1 or 2 buttons — quick reply, URL or call. For when a carousel is worth it and a build checklist, see the carousel template guide.
- Every card uses the same media type (all images or all videos) and the same buttons in the same order.
- A carousel is always a MARKETING template.
- It has no header, footer or buttons of its own: those live on the cards. The template’s message text is the bubble above the cards and takes variables like any other template body.
- Build one in the dashboard, or with Create a template and
carouselCards. It is submitted straight to Meta — there is no QuickAuth review step — sostatusfollows Meta’s review. Other templates are reviewed exactly as before. - Card media must be an https link. Customers receive the file you uploaded.
Card variables
- Card text can use named variables,
{{price1}}, with the same naming rules as the body (letters, digits and_, starting with a letter). Each needs a sample value for Meta’s review, and the card text cannot start or end with one. - A URL button can be dynamic: one
{{name}}at the very end of an https link that includes the website, e.g.https://shop.example.com/p/{{product1}}, with a sample value (no spaces). - Click tracking is optional, per URL button. Turn it on or off for the same button on every card; tracked taps arrive as link.clicked webhooks.
- Values come from the recipient’s variables by name, the same ones that fill the body: a CSV column called
price1or"variables": { "price1": "₹2,499" }in the API fills{{price1}}wherever it appears. - Send a value for every card variable. A missing one is not filled with its sample: that message fails with an
errorMessagenaming what to send.
Per-recipient card media and quick-reply payloads
Each send can change a card’s image or video and a quick reply’s payload (what you receive when the customer taps it — the button text unless you set one). Two reserved names do this, as optional CSV columns in a dashboard campaign or as keys in variables on any API send. Card and button numbers start at 1.
| Name | Sets |
|---|---|
card1_media, card2_media… | That card’s image or video for this recipient. Must be an https link: in a CSV a non-https value fails the row; in API variables it is ignored and the template’s file is sent. |
card1_button1_payload… | The payload of that card’s quick-reply button. Only quick-reply buttons take one; URL and call buttons do not. |
A blank value keeps the template’s own. These names cannot be used as template variables.
Send a template message also takes a carouselCards array, which wins over the reserved names when both are given. It is indexed from 0: carouselCards[0] is card 1, and buttonPayloads keys are button positions from "0". Cards past the last one, non-https media links and payloads for URL or call buttons are dropped, not refused.
{
"templateId": "9f1c2e7a4b5d4c3e8a1b2c3d4e5f6a7b",
"to": "919876543210",
"variables": {
"name": "Asha",
"price1": "₹2,499", "product1": "wool-jacket",
"price2": "₹1,299", "product2": "cashmere-scarf"
},
"carouselCards": [
{ "mediaUrl": "https://cdn.example.com/asha/jacket.jpg",
"buttonPayloads": { "1": "NOT_FOR_ME_JACKET" } },
null
]
}Send a campaign and Send by template id have no carouselCards field; use the reserved names in variables there. The plugin template list’s variables shows only the message-text variables, not card variables.
Reading a carousel template
Get a template and List templates return a carousel as a BODY component and a CAROUSEL component with its cards:
{
"templateId": "9f1c2e7a4b5d4c3e8a1b2c3d4e5f6a7b",
"name": "Winter Picks",
"language": "en",
"category": "MARKETING",
"status": "APPROVED",
"components": [
{
"type": "BODY",
"text": "Hi {{name}}, three picks for this week."
},
{
"type": "CAROUSEL",
"cards": [
{
"index": 0,
"format": "IMAGE",
"mediaUrl": "https://cdn.example.com/jacket.jpg",
"body": "Wool jacket, now {{price1}} only this week.",
"buttons": [
{
"type": "URL",
"text": "Shop now",
"url": "https://shop.example.com/p/{{product1}}"
},
{
"type": "QUICK_REPLY",
"text": "Not for me"
}
]
},
{
"index": 1,
"format": "IMAGE",
"mediaUrl": "https://cdn.example.com/scarf.jpg",
"body": "Cashmere scarf, now {{price2}} only this week.",
"buttons": [
{
"type": "URL",
"text": "Shop now",
"url": "https://shop.example.com/p/{{product2}}"
},
{
"type": "QUICK_REPLY",
"text": "Not for me"
}
]
}
]
}
]
}Carousel pricing
Each carousel message costs Meta’s marketing price for the recipient’s country plus 20%. The rule is the same for every merchant, for recipients in India and abroad. Custom or agreed rates and marketing discounts do not apply to carousels. You can see your carousel price in Dashboard → Billing, where carousel sends also appear on their own line. As with other templates, failed and skipped messages cost nothing, and a message to a country with no price is refused rather than sent.
Ecommerce plugin endpoints
List templates, Get a template’s approval status and Send by template id are the three calls the Shopify and WooCommerce plugins use. They work for any server-to-server caller: the template list says which templates are sendable and which variables they take, and the send is asynchronous, reporting back through your webhooks.
Sending from CleverTap, WebEngage or MoEngage?
Create a template
/v1/whatsapp/templatesSubmits a message template for approval. WhatsApp only lets businesses start a conversation with an approved template, so create one for each kind of message you send (order shipped, payment reminder, offer…).
Write variables as named placeholders — {{name}}, {{order_id}} — and declare each one in variables with a realistic example. Numbered placeholders like {{1}} are not used in the body. Review usually takes up to 24 hours; poll Get a template until status is APPROVED.
AuthServer keyX-Client-Id + X-Client-Secret
Request body
namestringrequiredA name you will recognise, e.g.Order Shipped. For CleverTap/WebEngage the template is referenced by this name lower-cased with spaces as underscores (order_shipped).categoryenumoptionaldefaultUTILITYUtility messages cost less, but WhatsApp re-categorises promotional content as marketing.UTILITY— updates about something the customer did: orders, payments, appointmentsMARKETING— offers, announcements, re-engagementlanguagestringoptionaldefaultenLanguage code:en,en_US,hi,ta…bodystringrequiredMessage text, up to 1,024 characters. Cannot start or end with a placeholder. Example:Hi {{name}}, your order {{order_id}} has shipped.variablesarrayoptionalRequired when the body has placeholders. One entry per placeholder; every name must appear in the body and every placeholder must be declared.headerTypeenumoptionalOptional header above the body.TEXTIMAGEVIDEODOCUMENTheaderTextstringoptionalRequired when headerType is TEXT. One line, max 60 characters, no emoji.headerMediaUrlstringoptionalRequired for IMAGE, VIDEO or DOCUMENT headers. A public URL of a sample file. You can send a different file per message.headerMediaFilenamestringoptionalDOCUMENT headers only. The file name WhatsApp shows the recipient, e.g. Invoice.pdf. Max 255 characters; defaults to a name derived from the template.footerstringoptionalSmall grey text under the body, max 60 characters, e.g.Reply STOP to opt out.tagNamesarrayoptionalTags to file the template under in the dashboard, by name:["festive", "orders"]. A name that does not exist yet is created.tagIdsarrayoptionalThe same, by tag id, for tags you already have. Either field, or both.buttonsarrayoptionalUp to 3 buttons: at most 2 URL buttons and 1 phone button.carouselCardsarrayoptionalMakes the template a carousel: 2 to 10 cards. The template is then always MARKETING (categoryis ignored),bodyis the text above the cards, andheaderType,headerText,headerMediaUrl,footerandbuttonsmust be left out. It goes straight to Meta for review.otpButtonTypeenumoptionalAuthentication templates only. These five fields are accepted on every create call but take effect only when the QuickAuth team files the template as AUTHENTICATION during review; for UTILITY and MARKETING templates they are ignored.COPY_CODEONE_TAPZERO_TAPandroidPackageNamestringoptionalAuthentication templates only. Your Android app id, e.g.com.merchant.app, for one-tap and zero-tap autofill.androidAppHashstringoptionalAuthentication templates only. The 11-character SMS Retriever app hash, e.g.K8a/AINcGX7— not a certificate fingerprint.autofillButtonTextstringoptionalAuthentication templates only. Label of the autofill button, max 25 characters.addSecurityRecommendationbooleanoptionalAuthentication templates only. Adds WhatsApp’s “do not share this code” line to the body.codeExpirationMinutesintegeroptionalAuthentication templates only. 1 to 90; adds the expiry line to the footer.
Response · 201
templateIdstringSave it — you send with this id, not the name.namestringcategorystring | nullnullfor a new utility template until it is categorised.languagestringstatusenumPENDING— received, not yet submitted for reviewIN_REVIEW— being reviewed (usually within 24 hours)APPROVED— ready to sendREJECTED— not approved; edit it in the dashboard and resubmit
Errors
- 400INVALID_REQUESTBody missing, too long, or starts/ends with a placeholder; a placeholder not declared in
variables(or declared but unused); header or button rules broken; a carousel rule broken (card count, mixed media, different buttons per card, a card variable without a sample, a reserved name). The message says which. - 401INVALID_CLIENT_CREDENTIALSX-Client-Id or X-Client-Secret is missing, unknown or wrong.
- 401CLIENT_INACTIVEYour account has been deactivated.
- 409WHATSAPP_CONNECT_FAILEDNo healthy WhatsApp number connected. Reconnect it in the dashboard first.
- 500INTERNAL_ERRORUnexpected server error, including a body that is not valid JSON. Retry; if it persists, send us the requestId.
curl -X POST "https://api.quickauth.in/v1/whatsapp/templates" \
-H "X-Client-Id: YOUR_CLIENT_ID" \
-H "X-Client-Secret: YOUR_CLIENT_SECRET" \
-H "Content-Type: application/json" \
-d '{
"name": "Order Shipped",
"category": "UTILITY",
"language": "en",
"body": "Hi {{name}}, your order {{order_id}} has shipped.",
"variables": [
{
"name": "name",
"example": "Asha"
},
{
"name": "order_id",
"example": "A-1029"
}
],
"footer": "Reply STOP to opt out",
"buttons": [
{
"type": "URL",
"text": "Track order",
"url": "https://shop.example.com/track/{{1}}",
"urlParam": "A-1029"
}
]
}'{
"templateId": "9f1c2e7a4b5d4c3e8a1b2c3d4e5f6a7b",
"name": "Order Shipped",
"category": null,
"language": "en",
"status": "PENDING"
}List templates
/v1/whatsapp/templatesReturns all your WhatsApp templates in every status, newest first, in one response. OTP (authentication) templates are not included. Ignore the paging object — the list is never split into pages.
AuthServer keyX-Client-Id + X-Client-Secret
Response · 200
dataarrayYour templates. Each has the fields shown in Get a template.pagingobjectPresent for compatibility. Always describes the full list.
Errors
- 401INVALID_CLIENT_CREDENTIALSX-Client-Id or X-Client-Secret is missing, unknown or wrong.
- 401CLIENT_INACTIVEYour account has been deactivated.
curl -X GET "https://api.quickauth.in/v1/whatsapp/templates" \
-H "X-Client-Id: YOUR_CLIENT_ID" \
-H "X-Client-Secret: YOUR_CLIENT_SECRET"{
"data": [
{
"templateId": "9f1c2e7a4b5d4c3e8a1b2c3d4e5f6a7b",
"name": "Order Shipped",
"language": "en",
"category": "UTILITY",
"status": "APPROVED",
"components": [
{
"type": "HEADER",
"format": "IMAGE"
},
{
"type": "BODY",
"text": "Hi {{name}}, your order {{order_id}} has shipped."
},
{
"type": "FOOTER",
"text": "Reply STOP to opt out"
},
{
"type": "BUTTONS",
"buttons": [
{
"type": "URL",
"text": "Track order",
"url": "https://shop.example.com/track/{{1}}"
}
]
}
]
}
],
"paging": {
"cursors": {
"before": "MA==",
"after": "MA=="
}
}
}Get a template
/v1/whatsapp/templates/{templateId}Returns one template — use it to check whether a template has been approved.
AuthServer keyX-Client-Id + X-Client-Secret
Path parameters
templateIdstringrequiredThe 32-character id from Create or List.
Response · 200
templateIdstringUse this id to send. 32 characters.namestringThe name you gave the template.languagestringLanguage code, e.g.en,hi.categorystring | nullUTILITYorMARKETING— the category you are billed at.nullwhile a new template is still being categorised. Carousels are alwaysMARKETING.statusenumPENDING— received, not yet submitted for reviewIN_REVIEW— being reviewed (usually within 24 hours)APPROVED— ready to sendREJECTED— not approved; edit it in the dashboard and resubmitcomponentsarrayThe template’s parts, in order. A carousel has a BODY (the text above the cards) and a CAROUSEL component.
Errors
- 404TEMPLATE_NOT_FOUNDNo template with that id on your account.
- 401INVALID_CLIENT_CREDENTIALSX-Client-Id or X-Client-Secret is missing, unknown or wrong.
- 401CLIENT_INACTIVEYour account has been deactivated.
curl -X GET "https://api.quickauth.in/v1/whatsapp/templates/9f1c2e7a4b5d4c3e8a1b2c3d4e5f6a7b" \
-H "X-Client-Id: YOUR_CLIENT_ID" \
-H "X-Client-Secret: YOUR_CLIENT_SECRET"{
"templateId": "9f1c2e7a4b5d4c3e8a1b2c3d4e5f6a7b",
"name": "Order Shipped",
"language": "en",
"category": "UTILITY",
"status": "APPROVED",
"components": [
{
"type": "HEADER",
"format": "IMAGE"
},
{
"type": "BODY",
"text": "Hi {{name}}, your order {{order_id}} has shipped."
},
{
"type": "FOOTER",
"text": "Reply STOP to opt out"
},
{
"type": "BUTTONS",
"buttons": [
{
"type": "URL",
"text": "Track order",
"url": "https://shop.example.com/track/{{1}}"
}
]
}
]
}Send a template message
/v1/whatsapp/messagesSends an approved template to one person and waits for WhatsApp to accept it. Use it for transactional messages triggered by your system — order confirmations, shipping updates, payment reminders.
Check status in the response. When WhatsApp refuses one recipient (invalid number, not on WhatsApp, opted out), the call still returns 200 with status: FAILED or SKIPPED and an errorMessage. HTTP errors are reserved for problems with the request or your account. For login codes use OTP verification instead — authentication templates cannot be sent here.
AuthServer keyX-Client-Id + X-Client-Secret
Request body
templateIdstringrequiredAn APPROVED template’s id.tostringrequiredRecipient with country code:919876543210or+919876543210. Spaces and dashes are fine. Always include the country code — a bare 10-digit number is delivered to India but is not matched against your STOP opt-out list.variablesobjectoptionalValues for the template’s placeholders, by name and without braces:{"name": "Asha", "order_id": "A-1029"}. Send every one — a variable you leave out is filled with the example value from the template review, which the customer will see.headerMediaUrlstringoptionalFor image, video or document headers: the file to send this time (a public https URL). Defaults to the template’s sample file.buttonParamsobjectoptionalPer-message values for URL buttons ending in{{1}}, keyed by the button’s position starting at"0":{"0": "A-1029"}. Buttons ending in{{mobile}}are filled automatically.carouselCardsarrayoptionalCarousel templates only: per-send card media and quick-reply payloads, by card position ([0]is the first card). A card you leave out, or send asnull, keeps the template’s own. Ignored for other templates. See Per-recipient card media.wabaIdstringoptionalSend from a specific WhatsApp Business Account (ids from Check number health). If the template is not approved on that account, QuickAuth sends from another of your numbers that has it. Leave out to let QuickAuth choose — the same customer keeps getting messages from the same number for 30 days.
Response · 200
messageIdintegerQuickAuth’s id for this message. Use it with Get message status.tostringThe recipient, as you sent it.statusenumSENT— accepted by WhatsAppDELIVERED— reached the phoneREAD— opened, or a button/link was tappedFAILED— not delivered — see errorMessage; you are not chargedSKIPPED— not sent because the recipient replied STOP; not chargedPENDING— queued (status lookups only)providerMessageIdstring | nullWhatsApp’s message id (wamid…). Delivery webhooks identify the message by this value. Null if the send failed or was skipped.errorMessagestring | nullWhy the message failed or was skipped.campaignIdnullDeprecated. Always null.
Errors
- 400INVALID_REQUESTtemplateId or to missing; the template has a media header with no file and you sent no headerMediaUrl; a buttonParams value is not allowed for that button.
- 404TEMPLATE_NOT_FOUNDNo template with that id (authentication templates included).
- 409TEMPLATE_NOT_FOUNDThe template is not approved yet.
- 409INVALID_REQUESTWhatsApp has paused or restricted the template (low quality), the template has no sending number, or none of your numbers can send it.
- 401INVALID_CLIENT_CREDENTIALSX-Client-Id or X-Client-Secret is missing, unknown or wrong.
- 401CLIENT_INACTIVEYour account has been deactivated.
- 402INSUFFICIENT_BALANCEWallet empty, not enough for this message, or postpaid credit limit reached.
- 402INSUFFICIENT_WHATSAPP_BALANCENo WhatsApp credits left.
- 402BILLING_NOT_CONFIGUREDBilling is not set up on your account.
- 500INTERNAL_ERRORUnexpected server error, including a body that is not valid JSON. Retry; if it persists, send us the requestId.
Carousel templates: a card variable with no value in variables is not filled with its sample — the message comes back FAILED, and errorMessage names the missing variables.
curl -X POST "https://api.quickauth.in/v1/whatsapp/messages" \
-H "X-Client-Id: YOUR_CLIENT_ID" \
-H "X-Client-Secret: YOUR_CLIENT_SECRET" \
-H "Content-Type: application/json" \
-d '{
"templateId": "9f1c2e7a4b5d4c3e8a1b2c3d4e5f6a7b",
"to": "919876543210",
"variables": {
"name": "Asha",
"order_id": "A-1029"
},
"buttonParams": {
"0": "A-1029"
}
}'{
"messageId": 482913,
"to": "919876543210",
"status": "SENT",
"providerMessageId": "wamid.HBgMOTE5ODc2NTQzMjEwFQIAERgSQzA2RjQ5QTJBRDE0RkE4NjBBAA==",
"errorMessage": null,
"campaignId": null
}Get message status
/v1/whatsapp/messages/{messageId}/statusReturns the latest status of a message you sent with Send a template message.
Use the numeric messageId from the send response — not the wamid… id that appears in webhooks. Sending a wamid here returns 400. Webhooks tell you about changes as they happen; use this endpoint to catch up after an outage, not to poll every message.
AuthServer keyX-Client-Id + X-Client-Secret
Path parameters
messageIdintegerrequiredThe number from the send response, e.g.482913.
Response · 200
messageIdintegerQuickAuth’s id for this message. Use it with Get message status.tostringThe recipient, as you sent it.statusenumSENT— accepted by WhatsAppDELIVERED— reached the phoneREAD— opened, or a button/link was tappedFAILED— not delivered — see errorMessage; you are not chargedSKIPPED— not sent because the recipient replied STOP; not chargedPENDING— queued (status lookups only)providerMessageIdstring | nullWhatsApp’s message id (wamid…). Delivery webhooks identify the message by this value. Null if the send failed or was skipped.errorMessagestring | nullWhy the message failed or was skipped.campaignIdnullDeprecated. Always null.
Errors
- 400INVALID_REQUESTmessageId is not a number — usually a
wamid…was sent by mistake. - 404INVALID_REQUESTNo message with that id on your account.
- 401INVALID_CLIENT_CREDENTIALSX-Client-Id or X-Client-Secret is missing, unknown or wrong.
- 401CLIENT_INACTIVEYour account has been deactivated.
Status only moves forward: SENT → DELIVERED → READ. FAILED is final.
curl -X GET "https://api.quickauth.in/v1/whatsapp/messages/482913/status" \
-H "X-Client-Id: YOUR_CLIENT_ID" \
-H "X-Client-Secret: YOUR_CLIENT_SECRET"{
"messageId": 482913,
"to": "919876543210",
"status": "DELIVERED",
"providerMessageId": "wamid.HBgMOTE5ODc2NTQzMjEwFQIAERgSQzA2RjQ5QTJBRDE0RkE4NjBBAA==",
"errorMessage": null,
"campaignId": null
}Reply in a conversation
/v1/whatsapp/messages/sessionSends a free-text reply (no template) to a customer who messaged you in the last 24 hours — WhatsApp’s customer-service window. After 24 hours without a message from the customer, send a template instead.
Text only. Session replies are not tracked by Get message status and do not produce delivery webhooks.
AuthServer keyX-Client-Id + X-Client-Secret
Request body
tostringrequiredThe customer’s number with country code.textstringrequiredThe message text.
Response · 200
idintegerId of the message in your team inbox.directionstringAlwaysOUT.typestringAlwaystext.bodystringstatusstringSENTwhen accepted by WhatsApp.createdAtstringIndia time (IST), no offset.errorMessagestring | null
Errors
- 400INVALID_REQUESTto or text missing, or no WhatsApp number connected.
- 409INVALID_REQUESTThe customer has never messaged you, or their last message was more than 24 hours ago. Send a template.
- 401INVALID_CLIENT_CREDENTIALSX-Client-Id or X-Client-Secret is missing, unknown or wrong.
- 401CLIENT_INACTIVEYour account has been deactivated.
- 402INSUFFICIENT_BALANCEWallet or WhatsApp credits empty.
- 422INTERNATIONAL_PRICE_UNAVAILABLENo WhatsApp price for the customer’s country.
- 429PROVIDER_ERRORWhatsApp rate-limited the number. Retry later.
- 502PROVIDER_ERRORWhatsApp failed to send. Retry.
curl -X POST "https://api.quickauth.in/v1/whatsapp/messages/session" \
-H "X-Client-Id: YOUR_CLIENT_ID" \
-H "X-Client-Secret: YOUR_CLIENT_SECRET" \
-H "Content-Type: application/json" \
-d '{
"to": "919876543210",
"text": "Your refund of ₹1,499 has been processed."
}'{
"id": 77120,
"direction": "OUT",
"type": "text",
"body": "Your refund of ₹1,499 has been processed.",
"status": "SENT",
"createdAt": "2026-10-16T14:05:42.118",
"mediaMime": null,
"mediaUrl": null,
"errorMessage": null,
"template": null
}Send a campaign
/v1/whatsapp/campaignsSends one template to up to 100 people in a single call, each with their own variables. The campaign is queued and sent in the background; track it with Get campaign status. For more than 100 people, make several calls or upload a list in the dashboard.
Campaigns use the template’s stored header file and button values; per-recipient header media is not available here. For a carousel, put card values and the reserved card1_media-style names in each recipient’s variables (see Carousel templates).
AuthServer keyX-Client-Id + X-Client-Secret
Request body
templateIdstringrequiredAn APPROVED, non-authentication template.campaignNamestringrequiredShown in your dashboard reports. Max 100 characters.recipientsarrayrequired1 to 100 recipients.wabaIdstringoptionalSend the whole campaign from one WhatsApp Business Account. If that account cannot send the template when the campaign runs, the campaign stops (no fallback). Leave out to let QuickAuth spread it across your numbers.
Response · 200
campaignIdstringUse with Get campaign status.statusstringQUEUED.recipientCountinteger
Errors
- 400INVALID_REQUESTMissing fields, more than 100 recipients, an authentication template, a media header with no stored file, or a tracked button that needs a per-message value.
- 404TEMPLATE_NOT_FOUNDUnknown template, or not approved yet.
- 401INVALID_CLIENT_CREDENTIALSX-Client-Id or X-Client-Secret is missing, unknown or wrong.
- 401CLIENT_INACTIVEYour account has been deactivated.
- 402INSUFFICIENT_BALANCENot enough wallet balance for the whole campaign, or postpaid credit limit reached.
- 402INSUFFICIENT_WHATSAPP_BALANCENot enough WhatsApp credits for every recipient.
- 402BILLING_NOT_CONFIGUREDBilling is not set up on your account.
- 422INTERNATIONAL_PRICE_UNAVAILABLEA recipient is in a country with no WhatsApp price on your account.
- 500INTERNAL_ERRORUnexpected server error, including a body that is not valid JSON. Retry; if it persists, send us the requestId.
curl -X POST "https://api.quickauth.in/v1/whatsapp/campaigns" \
-H "X-Client-Id: YOUR_CLIENT_ID" \
-H "X-Client-Secret: YOUR_CLIENT_SECRET" \
-H "Content-Type: application/json" \
-d '{
"templateId": "9f1c2e7a4b5d4c3e8a1b2c3d4e5f6a7b",
"campaignName": "Diwali sale — VIP list",
"recipients": [
{
"phoneNumber": "919876543210",
"variables": {
"name": "Asha",
"order_id": "A-1029"
}
},
{
"phoneNumber": "919812345678",
"variables": {
"name": "Ravi",
"order_id": "A-1030"
}
}
]
}'{
"campaignId": "5be0a3c1d2e94f7a8b6c1d2e3f4a5b6c",
"status": "QUEUED",
"recipientCount": 2
}Get campaign status
/v1/marketing/status/{campaignId}Progress and counts for a campaign created with Send a campaign.
AuthServer keyX-Client-Id + X-Client-Secret
Path parameters
campaignIdstringrequiredFrom the Send a campaign response.
Response · 200
campaignIdstringtemplateIdstringstatusenumQUEUED— accepted, not startedPROCESSING— sendingCOMPLETED— finishedSTOPPED— paused — e.g. the template was restricted or the chosen number could not send. QuickAuth retries automatically for up to 24 hours; see the dashboard for the reasonFAILED— nothing could be senttotalCountintegerRecipients in the campaign.sentCountintegerAccepted by WhatsApp (sent, delivered or read).failedCountintegerFailed. Opted-out recipients are in neither count, so sent + failed can be less than total.createdAtstringIndia time (IST), no offset.
Errors
- 404INVALID_REQUESTNo campaign with that id on your account.
- 401INVALID_CLIENT_CREDENTIALSX-Client-Id or X-Client-Secret is missing, unknown or wrong.
- 401CLIENT_INACTIVEYour account has been deactivated.
curl -X GET "https://api.quickauth.in/v1/marketing/status/5be0a3c1d2e94f7a8b6c1d2e3f4a5b6c" \
-H "X-Client-Id: YOUR_CLIENT_ID" \
-H "X-Client-Secret: YOUR_CLIENT_SECRET"{
"campaignId": "5be0a3c1d2e94f7a8b6c1d2e3f4a5b6c",
"templateId": "9f1c2e7a4b5d4c3e8a1b2c3d4e5f6a7b",
"status": "COMPLETED",
"totalCount": 100,
"sentCount": 97,
"failedCount": 2,
"createdAt": "2026-10-16T14:03:11.482"
}Check number health
/v1/whatsapp/healthLists your connected WhatsApp numbers with WhatsApp’s quality rating and daily sending limit. Check it before a big send, and alert your team if a number turns RED or needs reconnecting.
AuthServer keyX-Client-Id + X-Client-Secret
Response · 200
[ ]arrayOne entry per number.
Errors
- 401INVALID_CLIENT_CREDENTIALSX-Client-Id or X-Client-Secret is missing, unknown or wrong.
- 401CLIENT_INACTIVEYour account has been deactivated.
curl -X GET "https://api.quickauth.in/v1/whatsapp/health" \
-H "X-Client-Id: YOUR_CLIENT_ID" \
-H "X-Client-Secret: YOUR_CLIENT_SECRET"[
{
"clientProviderConfigId": 41,
"wabaId": "104857600123456",
"phoneNumberId": "112233445566778",
"displayPhoneNumber": "+91 98765 43210",
"verifiedName": "Acme Store",
"active": true,
"qualityRating": "GREEN",
"messagingTier": "TIER_1K",
"dailyLimit": 1000,
"dailyUsed": 213,
"snapshotAt": "2026-10-16T13:55:00.120",
"connectionStatus": "CONNECTED",
"connectionError": null,
"maxDailyConversationPerPhone": null,
"maxPhoneNumbersPerBusiness": null
}
]List templates (plugin API)
/v1/templatesEvery template on the account with its approval state and the variables it takes. Built for ecommerce plugins (Shopify, WooCommerce) that let a merchant pick a template per event; sendable is the field to filter on. The same templates are returned by List templates in a richer shape.
AuthServer keyX-Client-Id + X-Client-Secret
Response · 200
templateIdstringUse this id in Send by template id and in campaigns.namestringcategoryenumUTILITYMARKETINGAUTHENTICATIONlanguagestringe.g.en,en_US.approvalStatusenumAPPROVED— readyIN_REVIEW— with our team or MetaPENDING— received, not yet submittedREJECTED— see rejectionReasonsendablebooleanTrue when the template can be sent right now — the one field a plugin needs before offering it.autoApprovedbooleanTrue only for AUTHENTICATION templates, which Meta approves automatically.variablesarrayThe variable names the template expects, in order:["name", "order"].headerTypestring | nullTEXT,IMAGE,VIDEO,DOCUMENT, ornullwithout a header.rejectionReasonstring | nullSingle-template call only, when REJECTED.statusMessagestring | nullSingle-template call only: one sentence explaining where the template stands.
Errors
- 401INVALID_CLIENT_CREDENTIALSX-Client-Id or X-Client-Secret is missing, unknown or wrong.
- 401CLIENT_INACTIVEYour account has been deactivated.
- 500INTERNAL_ERRORUnexpected server error, including a body that is not valid JSON. Retry; if it persists, send us the requestId.
curl -X GET "https://api.quickauth.in/v1/templates" \
-H "X-Client-Id: YOUR_CLIENT_ID" \
-H "X-Client-Secret: YOUR_CLIENT_SECRET"[
{
"templateId": "9f1c2e7a4b5d4c3e8a1b2c3d4e5f6a7b",
"name": "Order Shipped",
"category": "UTILITY",
"language": "en",
"approvalStatus": "APPROVED",
"sendable": true,
"autoApproved": false,
"variables": [
"name",
"order_id"
],
"headerType": null
}
]Get a template’s approval status (plugin API)
/v1/templates/{templateId}One template, with rejectionReason and statusMessage filled in so a plugin can tell the merchant whether it is ready and, if not, why.
AuthServer keyX-Client-Id + X-Client-Secret
Path parameters
templateIdstringrequiredFrom List templates.
Response · 200
templateIdstringUse this id in Send by template id and in campaigns.namestringcategoryenumUTILITYMARKETINGAUTHENTICATIONlanguagestringe.g.en,en_US.approvalStatusenumAPPROVED— readyIN_REVIEW— with our team or MetaPENDING— received, not yet submittedREJECTED— see rejectionReasonsendablebooleanTrue when the template can be sent right now — the one field a plugin needs before offering it.autoApprovedbooleanTrue only for AUTHENTICATION templates, which Meta approves automatically.variablesarrayThe variable names the template expects, in order:["name", "order"].headerTypestring | nullTEXT,IMAGE,VIDEO,DOCUMENT, ornullwithout a header.rejectionReasonstring | nullSingle-template call only, when REJECTED.statusMessagestring | nullSingle-template call only: one sentence explaining where the template stands.
Errors
- 404TEMPLATE_NOT_FOUNDNo template with that id on your account.
- 401INVALID_CLIENT_CREDENTIALSX-Client-Id or X-Client-Secret is missing, unknown or wrong.
- 401CLIENT_INACTIVEYour account has been deactivated.
- 500INTERNAL_ERRORUnexpected server error, including a body that is not valid JSON. Retry; if it persists, send us the requestId.
curl -X GET "https://api.quickauth.in/v1/templates/9f1c2e7a4b5d4c3e8a1b2c3d4e5f6a7b" \
-H "X-Client-Id: YOUR_CLIENT_ID" \
-H "X-Client-Secret: YOUR_CLIENT_SECRET"{
"templateId": "9f1c2e7a4b5d4c3e8a1b2c3d4e5f6a7b",
"name": "Order Shipped",
"category": "UTILITY",
"language": "en",
"approvalStatus": "APPROVED",
"sendable": true,
"autoApproved": false,
"variables": [
"name",
"order_id"
],
"headerType": null,
"rejectionReason": null,
"statusMessage": "Approved and ready to send."
}Send by template id (plugin API, asynchronous)
/v1/messages/sendSends one approved template to one number through the campaign pipeline, so billing, number routing, delivery logging, click tracking and your webhooks all apply exactly as for a campaign. Used by the ecommerce plugins for order-lifecycle messages (confirmed, shipped, delivered, COD confirmation).
Unlike Send a template message, this call is asynchronous: it answers QUEUED at once, and the outcome arrives on your delivery webhooks or from Get campaign status with the returned messageId.
AuthServer keyX-Client-Id + X-Client-Secret
Request body
templateIdstringrequiredFrom List templates. Must besendable.phonestringrequiredRecipient with country code, e.g.919876543210.variablesobjectoptionalValues by variable name:{"name": "Riya", "order": "1234"}. Send every name the template lists.channelenumoptionalOptional assertion of the channel you expect. The template decides the channel; if the two disagree the call fails now instead of sending on the wrong channel at the wrong rate.SMSWHATSAPPreferencestringoptionalYour own id (an order id). Echoed in the response and used as the send label so you can find it in reports.
Response · 200
messageIdstringQuickAuth’s send reference. Use it with Get campaign status.statusstringAlwaysQUEUEDhere.referencestring | nullYour reference, echoed.
Errors
- 400INVALID_REQUESTtemplateId or phone missing; the template is not sendable; channel does not match the template’s channel; a variable the template lists was not supplied.
- 404TEMPLATE_NOT_FOUNDNo template with that id on your account.
- 401INVALID_CLIENT_CREDENTIALSX-Client-Id or X-Client-Secret is missing, unknown or wrong.
- 401CLIENT_INACTIVEYour account has been deactivated.
- 402INSUFFICIENT_BALANCEWallet empty or postpaid credit limit reached.
- 402INSUFFICIENT_WHATSAPP_BALANCENo WhatsApp credits left.
- 500INTERNAL_ERRORUnexpected server error, including a body that is not valid JSON. Retry; if it persists, send us the requestId.
curl -X POST "https://api.quickauth.in/v1/messages/send" \
-H "X-Client-Id: YOUR_CLIENT_ID" \
-H "X-Client-Secret: YOUR_CLIENT_SECRET" \
-H "Content-Type: application/json" \
-d '{
"templateId": "9f1c2e7a4b5d4c3e8a1b2c3d4e5f6a7b",
"phone": "919876543210",
"variables": {
"name": "Riya",
"order": "1234"
},
"channel": "WHATSAPP",
"reference": "order-1234-shipped"
}'{
"messageId": "5be0a3c1d2e94f7a8b6c1d2e3f4a5b6c",
"status": "QUEUED",
"reference": "order-1234-shipped"
}