WhatsApp Templates

Send WhatsApp Template to Contact

post
/whatsapp-templates/send

Send a WhatsApp template to a contact, even if the chat is closed. The API will also reopen the chat session.

Template Variable Processing: Templates support advanced variable syntax with the following features:

  1. Basic Variables: {{first_name}}, {{email}}, {{company}}

  2. Default Values: {{field|Default Text}} - Shows default if field is empty

  3. Text Transformations:

    • {{field|uppercase}} - Converts to UPPERCASE

    • {{field|lowercase}} - Converts to lowercase

    • {{field|capitalize}} - Capitalizes first letter of each word

  4. Combined Syntax: {{field|Default Value|transformation}} Example: {{company|Your Company|uppercase}}

Note: WhatsApp templates require Meta approval. The system automatically converts named variables to numbered placeholders ({{1}}, {{2}}, etc.) for WhatsApp API compatibility.

Authorizations
apiKeystringRequired

Your DM Champ API key. Obtain from Settings → API Keys.

Query parameters
apiKeystringOptional

API key for authentication. At least one of apiKey or userId is required for protected endpoints.

Example: your_api_key
Body
contactIdstringRequired

ID of the contact to send the template to

whatsappTemplateIdstringRequired

ID of the WhatsApp template to send

Responses
chevron-right
200

Template sent successfully

application/json
successbooleanOptionalExample: true
datastringOptionalExample: WhatsApp template message sent successfully
post
/whatsapp-templates/send

Get WhatsApp Templates

get
/whatsapp-templates

Retrieve all WhatsApp templates for the authenticated user

Authorizations
apiKeystringRequired

Your DM Champ API key. Obtain from Settings → API Keys.

Query parameters
apiKeystringOptional

API key for authentication. At least one of apiKey or userId is required for protected endpoints.

Example: your_api_key
Responses
chevron-right
200

Successfully retrieved WhatsApp templates

application/json
successbooleanOptionalExample: true
get
/whatsapp-templates

Last updated

Was this helpful?