Kanal docs
Talk to us on WhatsAppPlaybooks 📓Book DemoBlogBack to Kanal →
  • Welcome to Kanal
  • Create your Kanal account and link it to Meta
  • Add a payment method on Meta
  • Verify your account on Meta
  • Certify your account on WhatsApp
  • Your first 14 days on WhatsApp
  • Features
    • Templates
    • Campaigns
    • Flows
    • AI agent
  • Integrations
    • Shopify
    • API
      • Authentication
      • Send a WhatsApp Template
    • Klaviyo
      • Send a WhatsApp template from Klaviyo Flows
    • Webhooks
  • HELP
    • FAQ
  • GROWTH TOOLS
    • Add WhatsApp widget
      • Add WhatsApp widget on Shopify
      • How to translate the WhatsApp Widget on Shopify?
      • Add WhatsApp widget on other CMS
    • Customized WhatsApp QR Code
    • ROI WhatsApp simulator
Powered by GitBook
On this page
  1. Integrations
  2. API

Send a WhatsApp Template

You can send a template message to a Phone Number via API using the endpoint below.

Send a WhatsApp Template

POST https://api.getkanal.com/api/v1/templates

Send a predefined template message to a specific phone number

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <YOUR_API_KEY>

Body

Name
Type
Description

template_id

number

ID of the template that you want to send to the Phone Number TODO : WHERE FIND ?

phone_number

string

name

string

The WhatsApp name that you will register for the contact The WhatsApp name of the contact will be replaced by their real WhatsApp name once the contact responds to you

variables

array

Array of values to replace the variables in the template

Response

{
  "message": "Template message sent successfully",
  "success": true
}
{
  "message": "Error sending template message",
  "error": "<DETAILS_OF_ERRORS>"
}
{
  "error": "Invalid API key"
}

{
  "error": "Template not found for this phone number"
}

PreviousAuthenticationNextKlaviyo

Last updated 6 months ago

Phone Number that you want to contact is required

format E.164