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
Your API key for authentication.
Body
UUID of the WABA channel to send from.
UUID of the contact to message.
Name of the approved WhatsApp template (e.g.
primer_contacto_v1).Language code for the template (e.g.
es, en_US). Defaults to es.Template variable substitutions. Structure follows the Meta Cloud API format.
UUID of an existing thread. If provided,
channel_id and contact_id are inferred automatically.Whether to save the message in the conversation thread. Defaults to
true.Response
true if the template was sent successfully.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
