string
required
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Send non-template (session/interactive) WhatsApp messages — text, media, address, contact, URL button, list, media carousel, and reply — via the OneXtel send_sms API.
POST /send_sms
wa array. Each object in the array shares these
top-level fields regardless of message type:
"whatsapp"."individual".text, document / image / video / audio / sticker,
interactive, or contacts. See the tabs below for the value per message type.+91), set at the root of the request body alongside wa.true to render a link preview for URLs in the body text.{
"wa": [
{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"recipient": "919999999999",
"sender": "919888888888",
"type": "text",
"text": {
"body": "xx",
"preview_url": true
}
}
]
}
curl --location 'https://api.onexaura.com/send_sms' \
--header 'apikey: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"wa": [
{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"recipient": "919999999999",
"sender": "919888888888",
"type": "text",
"text": {
"body": "xx",
"preview_url": true
}
}
]
}'
type can be image, video, document, audio,
or sticker — pass the media object under the matching key name.image, video, and document types.document type.audio type — set true to send as a voice message.{
"wa": [
{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"recipient": "919999999999",
"sender": "919888888888",
"type": "document",
"document": {
"link": "xx",
"caption": "xx"
}
}
]
}
curl --location 'https://api.onexaura.com/send_sms' \
--header 'apikey: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"wa": [
{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"recipient": "919999999999",
"sender": "919888888888",
"type": "document",
"document": {
"link": "xx",
"caption": "xx"
}
}
]
}'
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" })."address_message"."address_message"."IN".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."India"). Same field set
as saved_addresses.value, all optional.values, all optional.{
"wa": [
{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"recipient": "919999999999",
"sender": "919888888888",
"type": "interactive",
"interactive": {
"type": "address_message",
"body": {
"text": "xx"
},
"action": {
"name": "address_message",
"parameters": {
"country": "IN"
}
}
}
}
]
}
curl --location 'https://api.onexaura.com/send_sms' \
--header 'apikey: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"wa": [
{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"recipient": "919999999999",
"sender": "919888888888",
"type": "interactive",
"interactive": {
"type": "address_message",
"body": {
"text": "xx"
},
"action": {
"name": "address_message",
"parameters": {
"country": "IN"
}
}
}
}
]
}'
street, city, state, zip, country, country_code, type.email, type.formatted_name, first_name, last_name, middle_name, suffix, prefix.company, department, title.phone, type, wa_id.url, type.{
"wa": [
{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"recipient": "919999999999",
"sender": "919888888888",
"type": "contacts",
"contacts": [
{
"addresses": [
{
"street": "xx",
"city": "xx",
"state": "xx",
"zip": "xx",
"country": "xx",
"country_code": "xx",
"type": "xx"
}
],
"birthday": "xx",
"emails": [
{
"email": "xx",
"type": "xx"
}
],
"name": {
"formatted_name": "xx",
"first_name": "xx",
"last_name": "xx",
"middle_name": "xx",
"suffix": "xx",
"prefix": "xx"
},
"org": {
"company": "xx",
"department": "xx",
"title": "xx"
},
"phones": [
{
"phone": "xx",
"type": "xx",
"wa_id": "xx"
}
],
"urls": [
{
"url": "xx",
"type": "xx"
}
]
}
]
}
]
}
curl --location 'https://api.onexaura.com/send_sms' \
--header 'apikey: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"wa": [
{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"recipient": "919999999999",
"sender": "919888888888",
"type": "contacts",
"contacts": [
{
"name": {
"formatted_name": "xx",
"first_name": "xx"
},
"phones": [
{
"phone": "xx",
"type": "xx",
"wa_id": "xx"
}
]
}
]
}
]
}'
cta_url)."cta_url".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."cta_url".{
"wa": [
{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"recipient": "919999999999",
"sender": "919888888888",
"type": "interactive",
"interactive": {
"type": "cta_url",
"header": {
"type": "image",
"image": {
"link": "xx"
}
}
},
"body": {
"text": "xx"
},
"footer": {
"text": "xx"
},
"action": {
"name": "cta_url",
"parameters": {
"display_text": "xx",
"url": "xx"
}
}
}
]
}
curl --location 'https://api.onexaura.com/send_sms' \
--header 'apikey: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"wa": [
{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"recipient": "919999999999",
"sender": "919888888888",
"type": "interactive",
"interactive": {
"type": "cta_url",
"header": {
"type": "image",
"image": {
"link": "xx"
}
}
},
"body": {
"text": "xx"
},
"footer": {
"text": "xx"
},
"action": {
"name": "cta_url",
"parameters": {
"display_text": "xx",
"url": "xx"
}
}
}
]
}'
"list"."text" with a text string field.title and rows.id, title, and description.{
"wa": [
{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"recipient": "919999999999",
"sender": "919888888888",
"type": "interactive",
"interactive": {
"type": "list",
"header": {
"type": "text",
"text": "xx"
},
"body": {
"text": "xx"
},
"footer": {
"text": "xx"
},
"action": {
"button": "xx",
"sections": [
{
"title": "xx",
"rows": [
{
"id": "xx",
"title": "xx",
"description": "xx"
}
]
}
]
}
}
}
]
}
curl --location 'https://api.onexaura.com/send_sms' \
--header 'apikey: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"wa": [
{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"recipient": "919999999999",
"sender": "919888888888",
"type": "interactive",
"interactive": {
"type": "list",
"header": {
"type": "text",
"text": "xx"
},
"body": {
"text": "xx"
},
"footer": {
"text": "xx"
},
"action": {
"button": "xx",
"sections": [
{
"title": "xx",
"rows": [
{
"id": "xx",
"title": "xx",
"description": "xx"
}
]
}
]
}
}
}
]
}'
"carousel"."cta_url" when the card uses a URL button.image or video header — no other header types are supported.
Pass the media object under the matching key name."cta_url" — only when using a URL button.display_text and url — only when using a URL button.type: "quick_reply", quick_reply: { id, title }.{
"wa": [
{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"recipient": "919999999999",
"sender": "919888888888",
"type": "interactive",
"interactive": {
"type": "carousel",
"body": {
"text": "xx"
},
"action": {
"cards": [
{
"card_index": "0",
"type": "cta_url",
"header": {
"type": "image",
"image": {
"link": "xx"
}
},
"body": {
"text": "xx"
},
"action": {
"name": "cta_url",
"parameters": {
"display_text": "xx",
"url": "xx"
}
}
}
]
}
}
}
]
}
curl --location 'https://api.onexaura.com/send_sms' \
--header 'apikey: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"wa": [
{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"recipient": "919999999999",
"sender": "919888888888",
"type": "interactive",
"interactive": {
"type": "carousel",
"body": {
"text": "xx"
},
"action": {
"cards": [
{
"card_index": "0",
"type": "cta_url",
"header": {
"type": "image",
"image": {
"link": "xx"
}
},
"body": {
"text": "xx"
},
"action": {
"name": "cta_url",
"parameters": {
"display_text": "xx",
"url": "xx"
}
}
}
]
}
}
}
]
}'
"button".text, image, video, or document. Pass the media object under the
matching key name, or a text string for a text header.type: "reply", reply: { id, title }.{
"wa": [
{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"recipient": "919999999999",
"sender": "919888888888",
"type": "interactive",
"interactive": {
"type": "button",
"header": {
"type": "image",
"image": {
"link": "xx"
}
},
"body": {
"text": "xx"
},
"footer": {
"text": "xx"
},
"action": {
"buttons": [
{
"type": "reply",
"reply": {
"id": "xx",
"title": "xx"
}
}
]
}
}
}
]
}
curl --location 'https://api.onexaura.com/send_sms' \
--header 'apikey: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"wa": [
{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"recipient": "919999999999",
"sender": "919888888888",
"type": "interactive",
"interactive": {
"type": "button",
"header": {
"type": "image",
"image": {
"link": "xx"
}
},
"body": {
"text": "xx"
},
"footer": {
"text": "xx"
},
"action": {
"buttons": [
{
"type": "reply",
"reply": {
"id": "xx",
"title": "xx"
}
}
]
}
}
}
]
}'
Was this page helpful?
