WhatsApp (WABA)
Send WhatsApp Template
Send an approved WhatsApp message template to a contact
POST
Sends a pre-approved WhatsApp Business message template to a contact. Templates must be approved by Meta before use. Use Get WhatsApp Templates to list available templates.
WhatsApp requires using templates to initiate conversations that have been inactive for more than 24 hours. Free-form messages can only be sent within an active 24-hour window.
Headers
string
requerido
Your API key for authentication.
Body
string
requerido
UUID of the WABA channel to send from.
string
requerido
UUID of the contact to message.
string
requerido
Name of the approved WhatsApp template (e.g.
primer_contacto_v1).string
predeterminado:"es"
Language code for the template (e.g.
es, en_US). Defaults to es.array
Template variable substitutions. Structure follows the Meta Cloud API format.
string
UUID of an existing thread. If provided,
channel_id and contact_id are inferred automatically.boolean
predeterminado:"true"
Whether to save the message in the conversation thread. Defaults to
true.Response
boolean
true if the template was sent successfully.object
Error Codes
400 Bad Request— Missing fields, invalid channel, or template not found401 Unauthorized— Invalid or missing API key404 Not Found— Contact not found500 Internal Server Error— Meta API error or internal failure
