Skip to main content
POST

Authentication

string
required
Your API key for authentication

Request Body

string
required
Recipient’s phone number in international format (e.g., +1234567890)
string
required
Name of the WhatsApp template to use
string
required
Language code for the template (e.g., en, en_US)
object
Template variable mappings (only required if template has dynamic variables)
string
Optional client reference ID for tracking

Response

number
HTTP status code (200 for success)
string
Success or error message
object
Variable Modes: - custom - Use the provided value directly - contactfield - Look up the value from the contact database using the field name
Templates must be pre-approved by WhatsApp before use. Variable names must match template placeholders exactly. Contact field lookups are case-sensitive.
Use the clientId parameter to track messages in your own system. This ID will be returned in webhooks and status updates.
Media URLs (headerMediaUrl) must be HTTPS and publicly accessible. Templates with media headers require a valid URL to be provided.