Skip to main content
POST

Description

This endpoint allows you to send a WhatsApp template to an individual recipient. It implements a fire-and-forget pattern: when sending the message, it returns a message_id (Meta’s wamid) that you can use to check the message status. The API validates the template, resolves the variables, and sends the message through the Meta API synchronously.

Authentication header

string
required
Your Mindo API Key. Format: mindo_xxxxxxxxxxxxxxxxxxxxxxxx

Body parameters

string
required
Meta’s WhatsApp phone number ID from which the message will be sent. You can get it from the Get business accounts endpoint.
string
required
Name of the approved template to send. Must have APPROVED status in Meta.
string
Template language. Default: "es". Examples: "es", "en", "pt_BR".
string
required
Recipient’s phone number in international format (e.g.: "+5491112345678"). No spaces.
object
Custom variables for the template. Keys must match the variables defined in the template.
object
Variables for dynamic template buttons. Keys use the format button_0, button_1, etc., where the number corresponds to the button index (starting at 0). Values are the dynamic suffixes or payloads for each button.Important: URL buttons only support 1 variable.

Response (200 OK)

boolean
Whether the message was sent successfully.
string
Message ID assigned by Meta (wamid). Use to check the message status.
string
Name of the template sent.
string
Recipient’s phone number.
string
Initial message status. Always "sent" when sent successfully.
string (ISO 8601)
Date and time when the message was sent.

Message statuses

The message status field can have the following values:
Use the returned message_id to check the message’s delivery status with Message status.

Use cases

Send a personalized welcome message when a new customer registers.
Python
JavaScript
Send a unique verification code to a user.
Python
JavaScript
Notify a customer when their order status changes.
Python
JavaScript