Send messages
POST https://api.itechintl.com/v1/messages
One endpoint sends every WhatsApp message type. Choose the type with type and put its content in the field of the
same name.
Plan: LUMA Elevate or Enterprise. Credits: 12 per template message; any other type, sent inside the 24-hour customer service window, is free.
Common fields
| Field | Type | Required | Description |
|---|---|---|---|
from | string | yes | Your connected WhatsApp number, digits only |
to | string | yes | The customer's number, digits only |
type | string | yes | text, template, image, video, audio, document, sticker, location, contacts, interactive, reaction |
context.message_id | string | no | Reply to a specific message (shown as a quoted reply). Not allowed for template and reaction. |
callback_data | string | no | Your own reference, kept with the message |
is_inbox | boolean | no | true also shows the message in the LUMA Inbox, in the conversation with this customer, so your team sees it. Default false: API messages are not shown in the Inbox (keeps it clean for high-volume sends such as notifications and codes). |
Example: a template that your team should see in the Inbox.
{
"from": "971500000000",
"to": "971500000001",
"type": "template",
"is_inbox": true,
"template": { "name": "order_update", "lang_code": "en_US" }
}
Customer replies always appear in the Inbox, whatever you send.
Response
202 Accepted: LUMA validated the message and queued it.
{
"message": "Message queued successfully.",
"data": [ { "message_id": "MESSAGE_ID", "status": "queued", "to": "971500000001", "timestamp": "1764064800" } ]
}
The final result (sent, delivered, read or failed) arrives on your
webhook.
Text
{
"from": "971500000000",
"to": "971500000001",
"type": "text",
"text": { "body": "Your order 1001 is on its way. Track it here: https://example.com/t/1001", "preview_url": true }
}
| Field | Description |
|---|---|
text.body | Up to 4,096 characters |
text.preview_url | true shows a link preview for the first URL |
Free text is allowed only inside the 24-hour customer service window.
Template
Use a template to start a conversation or to send outside the 24-hour window.
{
"from": "971500000000",
"to": "971500000001",
"type": "template",
"template": {
"name": "order_update",
"lang_code": "en_US",
"components": [
{
"type": "header",
"parameters": [ { "type": "image", "image": { "link": "https://example.com/banner.jpg" } } ]
},
{
"type": "body",
"parameters": [
{ "type": "text", "text": "Customer 1" },
{ "type": "text", "text": "1001" }
]
},
{
"type": "button",
"sub_type": "url",
"index": 0,
"parameters": [ { "type": "text", "text": "1001" } ]
}
]
}
}
| Field | Description |
|---|---|
template.name | Template name, exactly as approved |
template.lang_code | Template language, for example en_US, ar |
template.components | Values for the template's variables. Leave out for a template without variables. |
components[].type | header, body, button, carousel. One header and one body at most. |
components[].sub_type | For buttons: quick_reply, url, copy_code, flow, catalog |
components[].index | For buttons: button position, starting at 0, unique |
parameters[].type | text, currency, date_time, image, video, document, payload, coupon_code, action, product, limited_time_offer |
parameters[].parameter_name | For templates with named variables ({{customer_name}}): the variable name |
| Text limits | Header text value up to 60 characters, body text value up to 1,024, URL button value up to 2,000 |
Named variables:
{ "type": "body", "parameters": [ { "type": "text", "parameter_name": "customer_name", "text": "Customer 1" } ] }
Quick reply button payload (returned to you when the customer taps it):
{ "type": "button", "sub_type": "quick_reply", "index": 0, "parameters": [ { "type": "payload", "payload": "CONFIRM_1001" } ] }
Coupon code button:
{ "type": "button", "sub_type": "copy_code", "index": 1, "parameters": [ { "type": "coupon_code", "coupon_code": "WELCOME10" } ] }
Currency and date (with the fallback text WhatsApp shows):
{ "type": "currency", "currency": { "fallback_value": "AED 150.00", "code": "AED", "amount_1000": 150000 } }
{ "type": "date_time", "date_time": { "fallback_value": "25 November 2026" } }
Carousel templates: a carousel component with cards, each card with a unique card_index and its own
components (card headers accept image, video or product).
Image, video, audio, document, sticker
Send a public HTTPS link, or the id of a file you uploaded.
{
"from": "971500000000",
"to": "971500000001",
"type": "image",
"image": { "link": "https://example.com/products/1001.jpg", "caption": "Your new sofa" }
}
{
"from": "971500000000",
"to": "971500000001",
"type": "document",
"document": { "id": "MEDIA_ID", "filename": "Invoice-1001.pdf", "caption": "Invoice 1001" }
}
| Type | Fields | Notes |
|---|---|---|
image | link or id, caption | JPEG or PNG, up to 5 MB |
video | link or id, caption | MP4 or 3GP, up to 16 MB |
audio | link or id | AAC, MP3, MP4 audio, AMR or OGG (Opus), up to 16 MB |
document | link or id, filename, caption | PDF, Office files, text, up to 100 MB |
sticker | link or id | WebP |
Either id or link is required. Links must be http or https and publicly reachable. Size and format limits are
WhatsApp's.
Location
{
"from": "971500000000",
"to": "971500000001",
"type": "location",
"location": { "latitude": 25.1185, "longitude": 55.3820, "name": "Dubai Silicon Oasis", "address": "Dubai, United Arab Emirates" }
}
Contacts (contact card)
{
"from": "971500000000",
"to": "971500000001",
"type": "contacts",
"contacts": [
{
"name": { "formatted_name": "Customer Support", "first_name": "Customer", "last_name": "Support" },
"phones": [ { "phone": "+971500000002", "type": "WORK", "wa_id": "971500000002" } ],
"emails": [ { "email": "support@example.com", "type": "WORK" } ],
"org": { "company": "Example Company", "title": "Support" },
"urls": [ { "url": "https://example.com", "type": "WORK" } ]
}
]
}
Interactive: reply buttons
Up to 3 buttons. When the customer taps one, your webhook receives its id.
{
"from": "971500000000",
"to": "971500000001",
"type": "interactive",
"interactive": {
"type": "button",
"header": { "type": "text", "text": "Delivery 1001" },
"body": { "text": "When should we deliver your order?" },
"footer": { "text": "Reply within 24 hours" },
"action": {
"buttons": [
{ "type": "reply", "reply": { "id": "slot_morning", "title": "Morning" } },
{ "type": "reply", "reply": { "id": "slot_evening", "title": "Evening" } }
]
}
}
}
Rules: type of each button is reply; title up to 20 characters and unique; id up to 256 characters, unique,
no leading or trailing spaces. The header can also be an image, video or document.
Interactive: list
A button that opens a list of up to 10 sections and 10 rows in total.
{
"from": "971500000000",
"to": "971500000001",
"type": "interactive",
"interactive": {
"type": "list",
"body": { "text": "Which service do you need?" },
"action": {
"button": "Choose a service",
"sections": [
{
"title": "Repairs",
"rows": [
{ "id": "repair_ac", "title": "Air conditioning", "description": "Cooling and maintenance" },
{ "id": "repair_plumbing", "title": "Plumbing" }
]
}
]
}
}
}
Rules: action.button up to 20 characters; section title up to 24; row title up to 24, description up to 72,
id up to 200 and unique across all sections.
Interactive: products and flows
interactive.type | Use | Key fields |
|---|---|---|
product | One product from your Meta catalog | action.catalog_id, action.product_retailer_id |
product_list | Several products in sections | action.catalog_id, action.sections[].product_items[].product_retailer_id (section title up to 24) |
flow | Open a WhatsApp Flow | Flow settings in action, as defined in your flow |
Reaction
{
"from": "971500000000",
"to": "971500000001",
"type": "reaction",
"reaction": { "message_id": "MESSAGE_ID", "emoji": "👍" }
}
Send an empty emoji to remove your reaction.
Errors
| Status | When |
|---|---|
| 400 | Validation failed (the reasons are in data[].error_detail), body missing, or from is not a number connected to your project |
| 401 | Missing or invalid API key |
| 402 | Not enough credits |
| 403 | Plan without API access |
| 500 | The message could not be queued; retry with back-off |
WhatsApp can still refuse a queued message (for example a template that is not approved, or a number not on
WhatsApp). That arrives as a failed status with Meta's error on your webhook.