API reference · WhatsApp

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

  1. Create a template and wait for APPROVED (usually within 24 hours).
  2. Send it with the templateId — to one person with Send a template message, or up to 100 with Send a campaign.
  3. Track delivery with webhooks (recommended) or Get message status.
  4. 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

IdLooks likeWhere you get itUse it for
templateId9f1c2e7a… (32 chars)Create / List templatesSending
messageId482913 (number)Send responseGet message status
providerMessageIdwamid.HBgM…Send responseMatching delivery.* webhooks (their messageId)
campaignId5be0a3c1… (32 chars)Send a campaignGet campaign status
wabaId104857600123456Check number healthChoosing 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.

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 — so status follows Meta’s review. Other templates are reviewed exactly as before.
  • Card media must be an https link. Customers receive the file you uploaded.
  • 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 price1 or "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 errorMessage naming what to send.

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.

NameSets
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.

POST /v1/whatsapp/messages
{
  "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.

Get a template and List templates return a carousel as a BODY component and a CAROUSEL component with its cards:

json
{
  "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"
            }
          ]
        }
      ]
    }
  ]
}

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?

You don’t call these endpoints — set QuickAuth up as the WhatsApp provider in your campaign tool instead. See CleverTap, WebEngage & MoEngage.

Create a template

POST/v1/whatsapp/templates

Submits 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

  • namestringrequired
    A 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).
  • categoryenumoptionaldefault UTILITY
    Utility messages cost less, but WhatsApp re-categorises promotional content as marketing.
    UTILITY — updates about something the customer did: orders, payments, appointmentsMARKETING — offers, announcements, re-engagement
  • languagestringoptionaldefault en
    Language code: en, en_US, hi, ta…
  • bodystringrequired
    Message text, up to 1,024 characters. Cannot start or end with a placeholder. Example: Hi {{name}}, your order {{order_id}} has shipped.
  • variablesarrayoptional
    Required when the body has placeholders. One entry per placeholder; every name must appear in the body and every placeholder must be declared.
  • headerTypeenumoptional
    Optional header above the body.
    TEXTIMAGEVIDEODOCUMENT
  • headerTextstringoptional
    Required when headerType is TEXT. One line, max 60 characters, no emoji.
  • headerMediaUrlstringoptional
    Required for IMAGE, VIDEO or DOCUMENT headers. A public URL of a sample file. You can send a different file per message.
  • headerMediaFilenamestringoptional
    DOCUMENT headers only. The file name WhatsApp shows the recipient, e.g. Invoice.pdf. Max 255 characters; defaults to a name derived from the template.
  • footerstringoptional
    Small grey text under the body, max 60 characters, e.g. Reply STOP to opt out.
  • tagNamesarrayoptional
    Tags to file the template under in the dashboard, by name: ["festive", "orders"]. A name that does not exist yet is created.
  • tagIdsarrayoptional
    The same, by tag id, for tags you already have. Either field, or both.
  • buttonsarrayoptional
    Up to 3 buttons: at most 2 URL buttons and 1 phone button.
  • carouselCardsarrayoptional
    Makes the template a carousel: 2 to 10 cards. The template is then always MARKETING (category is ignored), body is the text above the cards, and headerType, headerText, headerMediaUrl, footer and buttons must be left out. It goes straight to Meta for review.
  • otpButtonTypeenumoptional
    Authentication 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_TAP
  • androidPackageNamestringoptional
    Authentication templates only. Your Android app id, e.g. com.merchant.app, for one-tap and zero-tap autofill.
  • androidAppHashstringoptional
    Authentication templates only. The 11-character SMS Retriever app hash, e.g. K8a/AINcGX7 — not a certificate fingerprint.
  • autofillButtonTextstringoptional
    Authentication templates only. Label of the autofill button, max 25 characters.
  • addSecurityRecommendationbooleanoptional
    Authentication templates only. Adds WhatsApp’s “do not share this code” line to the body.
  • codeExpirationMinutesintegeroptional
    Authentication templates only. 1 to 90; adds the expiry line to the footer.

Response · 201

  • templateIdstring
    Save it — you send with this id, not the name.
  • namestring
  • categorystring | null
    null for a new utility template until it is categorised.
  • languagestring
  • statusenum
    PENDING — 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.
Request
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"
    }
  ]
}'
Response201
{
  "templateId": "9f1c2e7a4b5d4c3e8a1b2c3d4e5f6a7b",
  "name": "Order Shipped",
  "category": null,
  "language": "en",
  "status": "PENDING"
}

List templates

GET/v1/whatsapp/templates

Returns 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

  • dataarray
    Your templates. Each has the fields shown in Get a template.
  • pagingobject
    Present for compatibility. Always describes the full list.

Errors

Request
curl -X GET "https://api.quickauth.in/v1/whatsapp/templates" \
  -H "X-Client-Id: YOUR_CLIENT_ID" \
  -H "X-Client-Secret: YOUR_CLIENT_SECRET"
Response200
{
  "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

GET/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

  • templateIdstringrequired
    The 32-character id from Create or List.

Response · 200

  • templateIdstring
    Use this id to send. 32 characters.
  • namestring
    The name you gave the template.
  • languagestring
    Language code, e.g. en, hi.
  • categorystring | null
    UTILITY or MARKETING — the category you are billed at. null while a new template is still being categorised. Carousels are always MARKETING.
  • statusenum
    PENDING — 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
  • componentsarray
    The template’s parts, in order. A carousel has a BODY (the text above the cards) and a CAROUSEL component.

Errors

Request
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"
Response200
{
  "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

POST/v1/whatsapp/messages

Sends 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

  • templateIdstringrequired
    An APPROVED template’s id.
  • tostringrequired
    Recipient with country code: 919876543210 or +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.
  • variablesobjectoptional
    Values 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.
  • headerMediaUrlstringoptional
    For image, video or document headers: the file to send this time (a public https URL). Defaults to the template’s sample file.
  • buttonParamsobjectoptional
    Per-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.
  • carouselCardsarrayoptional
    Carousel 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 as null, keeps the template’s own. Ignored for other templates. See Per-recipient card media.
  • wabaIdstringoptional
    Send 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

  • messageIdinteger
    QuickAuth’s id for this message. Use it with Get message status.
  • tostring
    The recipient, as you sent it.
  • statusenum
    SENT — 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 | null
    WhatsApp’s message id (wamid…). Delivery webhooks identify the message by this value. Null if the send failed or was skipped.
  • errorMessagestring | null
    Why the message failed or was skipped.
  • campaignIdnull
    Deprecated. Always null.

Errors

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.

Request
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"
  }
}'
Response200
{
  "messageId": 482913,
  "to": "919876543210",
  "status": "SENT",
  "providerMessageId": "wamid.HBgMOTE5ODc2NTQzMjEwFQIAERgSQzA2RjQ5QTJBRDE0RkE4NjBBAA==",
  "errorMessage": null,
  "campaignId": null
}

Get message status

GET/v1/whatsapp/messages/{messageId}/status

Returns 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

  • messageIdintegerrequired
    The number from the send response, e.g. 482913.

Response · 200

  • messageIdinteger
    QuickAuth’s id for this message. Use it with Get message status.
  • tostring
    The recipient, as you sent it.
  • statusenum
    SENT — 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 | null
    WhatsApp’s message id (wamid…). Delivery webhooks identify the message by this value. Null if the send failed or was skipped.
  • errorMessagestring | null
    Why the message failed or was skipped.
  • campaignIdnull
    Deprecated. Always null.

Errors

Status only moves forward: SENT → DELIVERED → READ. FAILED is final.

Request
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"
Response200
{
  "messageId": 482913,
  "to": "919876543210",
  "status": "DELIVERED",
  "providerMessageId": "wamid.HBgMOTE5ODc2NTQzMjEwFQIAERgSQzA2RjQ5QTJBRDE0RkE4NjBBAA==",
  "errorMessage": null,
  "campaignId": null
}

Reply in a conversation

POST/v1/whatsapp/messages/session

Sends 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

  • tostringrequired
    The customer’s number with country code.
  • textstringrequired
    The message text.

Response · 200

  • idinteger
    Id of the message in your team inbox.
  • directionstring
    Always OUT.
  • typestring
    Always text.
  • bodystring
  • statusstring
    SENT when accepted by WhatsApp.
  • createdAtstring
    India time (IST), no offset.
  • errorMessagestring | null

Errors

Request
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."
}'
Response200
{
  "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

POST/v1/whatsapp/campaigns

Sends 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

  • templateIdstringrequired
    An APPROVED, non-authentication template.
  • campaignNamestringrequired
    Shown in your dashboard reports. Max 100 characters.
  • recipientsarrayrequired
    1 to 100 recipients.
  • wabaIdstringoptional
    Send 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

  • campaignIdstring
    Use with Get campaign status.
  • statusstring
    QUEUED.
  • recipientCountinteger

Errors

Request
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"
      }
    }
  ]
}'
Response200
{
  "campaignId": "5be0a3c1d2e94f7a8b6c1d2e3f4a5b6c",
  "status": "QUEUED",
  "recipientCount": 2
}

Get campaign status

GET/v1/marketing/status/{campaignId}

Progress and counts for a campaign created with Send a campaign.

AuthServer keyX-Client-Id + X-Client-Secret

Path parameters

  • campaignIdstringrequired
    From the Send a campaign response.

Response · 200

  • campaignIdstring
  • templateIdstring
  • statusenum
    QUEUED — 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 sent
  • totalCountinteger
    Recipients in the campaign.
  • sentCountinteger
    Accepted by WhatsApp (sent, delivered or read).
  • failedCountinteger
    Failed. Opted-out recipients are in neither count, so sent + failed can be less than total.
  • createdAtstring
    India time (IST), no offset.

Errors

Request
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"
Response200
{
  "campaignId": "5be0a3c1d2e94f7a8b6c1d2e3f4a5b6c",
  "templateId": "9f1c2e7a4b5d4c3e8a1b2c3d4e5f6a7b",
  "status": "COMPLETED",
  "totalCount": 100,
  "sentCount": 97,
  "failedCount": 2,
  "createdAt": "2026-10-16T14:03:11.482"
}

Check number health

GET/v1/whatsapp/health

Lists 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

  • [ ]array
    One entry per number.

Errors

Request
curl -X GET "https://api.quickauth.in/v1/whatsapp/health" \
  -H "X-Client-Id: YOUR_CLIENT_ID" \
  -H "X-Client-Secret: YOUR_CLIENT_SECRET"
Response200
[
  {
    "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)

GET/v1/templates

Every 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

  • templateIdstring
    Use this id in Send by template id and in campaigns.
  • namestring
  • categoryenum
    UTILITYMARKETINGAUTHENTICATION
  • languagestring
    e.g. en, en_US.
  • approvalStatusenum
    APPROVED — readyIN_REVIEW — with our team or MetaPENDING — received, not yet submittedREJECTED — see rejectionReason
  • sendableboolean
    True when the template can be sent right now — the one field a plugin needs before offering it.
  • autoApprovedboolean
    True only for AUTHENTICATION templates, which Meta approves automatically.
  • variablesarray
    The variable names the template expects, in order: ["name", "order"].
  • headerTypestring | null
    TEXT, IMAGE, VIDEO, DOCUMENT, or null without a header.
  • rejectionReasonstring | null
    Single-template call only, when REJECTED.
  • statusMessagestring | null
    Single-template call only: one sentence explaining where the template stands.

Errors

Request
curl -X GET "https://api.quickauth.in/v1/templates" \
  -H "X-Client-Id: YOUR_CLIENT_ID" \
  -H "X-Client-Secret: YOUR_CLIENT_SECRET"
Response200
[
  {
    "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)

GET/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

  • templateIdstringrequired
    From List templates.

Response · 200

  • templateIdstring
    Use this id in Send by template id and in campaigns.
  • namestring
  • categoryenum
    UTILITYMARKETINGAUTHENTICATION
  • languagestring
    e.g. en, en_US.
  • approvalStatusenum
    APPROVED — readyIN_REVIEW — with our team or MetaPENDING — received, not yet submittedREJECTED — see rejectionReason
  • sendableboolean
    True when the template can be sent right now — the one field a plugin needs before offering it.
  • autoApprovedboolean
    True only for AUTHENTICATION templates, which Meta approves automatically.
  • variablesarray
    The variable names the template expects, in order: ["name", "order"].
  • headerTypestring | null
    TEXT, IMAGE, VIDEO, DOCUMENT, or null without a header.
  • rejectionReasonstring | null
    Single-template call only, when REJECTED.
  • statusMessagestring | null
    Single-template call only: one sentence explaining where the template stands.

Errors

Request
curl -X GET "https://api.quickauth.in/v1/templates/9f1c2e7a4b5d4c3e8a1b2c3d4e5f6a7b" \
  -H "X-Client-Id: YOUR_CLIENT_ID" \
  -H "X-Client-Secret: YOUR_CLIENT_SECRET"
Response200
{
  "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)

POST/v1/messages/send

Sends 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

  • templateIdstringrequired
    From List templates. Must be sendable.
  • phonestringrequired
    Recipient with country code, e.g. 919876543210.
  • variablesobjectoptional
    Values by variable name: {"name": "Riya", "order": "1234"}. Send every name the template lists.
  • channelenumoptional
    Optional 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.
    SMSWHATSAPP
  • referencestringoptional
    Your own id (an order id). Echoed in the response and used as the send label so you can find it in reports.

Response · 200

  • messageIdstring
    QuickAuth’s send reference. Use it with Get campaign status.
  • statusstring
    Always QUEUED here.
  • referencestring | null
    Your reference, echoed.

Errors

Request
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"
}'
Response200
{
  "messageId": "5be0a3c1d2e94f7a8b6c1d2e3f4a5b6c",
  "status": "QUEUED",
  "reference": "order-1234-shipped"
}
Chat with us