Send an approved WhatsApp template message — media/variable/button payloads, Authentication OTP, Limited Time Offer, and Media Card Carousel sends.
Use this endpoint to send an already-approved WhatsApp template to one or more recipients.
Templates must first be created and approved via the
Create Template API.
Endpoint
POST /oapi/send_sms
/oapi/send_sms sends WhatsApp, RCS and SMS. The bare /send_sms path carries SMS only,
so a WhatsApp message sent to it is not delivered.
Headers
string
required
API key for the sending WhatsApp number’s TUC.
string
required
application/json
Request body
array
required
Wrapper array for one or more WhatsApp message objects, up to 500 per request. See
Send to many recipients.
string
required
Always "whatsapp".
string
required
Always "individual".
string | array
required
Recipient phone number, without country prefix (prefix supplied separately via the
root-level prefix field), or an array of up to 500 numbers.
string
required
Sender’s registered WhatsApp number. A pool ID can also be passed here.
string
required
Always "template".
string
required
Name of the approved WhatsApp template.
string
required
Template language code, e.g. en_US.
array
required
Defines all template components to fill in at send time (header, body, button
parameters). Shape depends on template type — see the tabs below.
string
Optional custom reference field, echoed back in delivery callbacks. custref1–custref5
are all supported.
string
Country prefix applied to all recipients, e.g. +91.
string
Optional campaign label for reporting.
integer
Time-to-live in seconds for the message send. Default 600.
object
Optional URL-shortening configuration for links in the message body.
Show urlShortener
integer
required
Set to 1 to enable URL shortening.
array
required
Array of URLs to shorten.
Show urlDetails[]
string
required
The full URL to shorten. Mandatory when flag is 1.
string
Optional custom short-link domain.
integer
Optional flag (1) to enable per-user click tracking.
Send to many recipients
One request can reach many recipients in two ways:
Pattern
How
Limit per request
One to many: the same message to several numbers
Put the numbers in recipient as an array.
500 numbers in each recipient array
Many to many: different messages in one request
Add one message object per message to the wa array.
500 objects in the wa array
For one recipient, recipient can be a single number or an array with one number.
Header image parameters accept either "link" (remote URL) or "id" (media ID from
Media Upload). The header type can be text, image,
video, document, or location. The button index is the zero-based position of that
button within the template’s BUTTONS array — a quick_reply sub-type must match a
QUICK_REPLY button at that index, and a url sub-type must match a URL button.
Sends a Zero Tap / One Tap / Copy Code authentication template. All three OTP variants
share the same send-time payload shape — only the template’s own button configuration
(set at template-creation time) differs.
string
body component carries the OTP code as a text parameter; button component
(sub_type: "url") carries the same code appended to the button’s OTP URL.
Sends a carousel template. The top-level body component can carry multiple text
parameters; each card in the carousel array is addressed by card_index and carries
its own header, body, and button parameters.
string
required
Top level: body and carousel. Within each card: header, body, button.
integer
required
Zero-based index identifying which carousel card these parameters apply to.