Send non-template (session/interactive) WhatsApp messages — text, media, address, contact, URL button, list, media carousel, and reply — through the OneXtel /oapi/send_sms API.
Session messages are non-template WhatsApp messages. Unlike template messages, they do
not require prior Meta approval, but they can only be sent within an open 24-hour
customer service window (i.e., in reply to an inbound message from the recipient).
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.
string
required
API key generated for the TUC (tenant under customer) associated with the sending
WhatsApp number.
Common request structure
Every message is wrapped in a wa array. Each object in the array shares these
top-level fields regardless of message type:
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’s WhatsApp phone number, or an array of up to 500 numbers.
string
required
Sender’s registered WhatsApp number.
string
required
Message type — one of text, document / image / video / audio / sticker,
interactive, or contacts. See the tabs below for the value per message type.
string
Optional country prefix (e.g. +91), set at the root of the request body alongside wa.
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.
type can also be image, video, audio, or sticker — replace the document key
with the matching type name (e.g. "type": "image", "image": { "link": "xx" }).
Sends an interactive address-collection message (India-specific address form).
string
required
Always "address_message".
string
required
Body text shown above the address form.
string
required
Always "address_message".
string
required
Country code, e.g. "IN".
array
Optional. Previously saved addresses associated with the user. Each entry has an id
and a value object (name, phone_number, in_pin_code, house_number,
floor_number, tower_number, building_name, address, landmark_area, city,
state) — all fields optional.
object
Optional. Prefills address fields (e.g. prefilling city with "India"). Same field set
as saved_addresses.value, all optional.
object
Optional. Raises validation errors on specific address fields; WhatsApp blocks submission
until resolved. Same field set as values, all optional.
Sends an interactive message with a single call-to-action URL button (cta_url).
string
required
Always "cta_url".
string
Optional. image, video, or document. Pass the media object under the matching key
name. For a text header, pass a text parameter with a string value instead.
Sends an interactive carousel of 2–10 cards, each with a media header and either a URL
button or quick-reply buttons.
string
required
Always "carousel".
string
required
Body text shown above the carousel.
array
required
Array of 2–10 card objects.
string
required
Zero-based card position.
string
required
"cta_url" when the card uses a URL button.
string
required
Cards must use an image or video header — no other header types are supported.
Pass the media object under the matching key name.
string
required
Card body text.
string
"cta_url" — only when using a URL button.
object
display_text and url — only when using a URL button.
array
One or more quick-reply buttons — only when not using a URL button. Each entry:
type: "quick_reply", quick_reply: { id, title }.
All cards in a carousel must use the same button configuration: either every card has
one URL button, or every card has the same number of quick-reply buttons.