Send WhatsApp template message
Sends a WhatsApp template message to a specified phone number using an agent’s configured WhatsApp Business API. The template must be pre-approved by WhatsApp and the agent must have WhatsApp channel configured.
Documentation Index
Fetch the complete documentation index at: https://developers.mihu.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Use a Bearer token to access these API endpoints. Example: "Bearer {your-token}"
Body
UUID of the Agent. Must exist and have WhatsApp configured.
"32d8fc98-be1e-4d32-a12e-146f397fb1cb"
UUID of the approved WhatsApp template to send. You can get the templateId from the templates section.
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
Phone number of the recipient in E.164 format (e.g., +1234567890).
"+12345678900"
Optional object containing parameters to fill template placeholders. Keys should be field1, field2, etc. corresponding to {{1}}, {{2}}, etc. in the template. Omit this field if template has no placeholders.
{
"field1": "John Doe",
"field2": "Order #12345",
"field3": "2024-01-15"
}Optional header media definition. Supports image, video, or document with a publicly accessible URL.
Response
Success
Indicates whether the request completed successfully. True for successful responses; false for documented error responses.
true
Human-readable response message. Safe to display in logs or simple client notifications; use structured fields for program logic.
"WhatsApp template message sent successfully"