Skip to main content
POST

Create template

POST /api/templates Submit a new WhatsApp message template for approval.

Headers

Session cookie (login via POST /api/auth/login)

Body parameters

string
required
WhatsApp channel ID.
string
required
Template name (snake_case, unique per channel).
string
required
MARKETING, UTILITY, or AUTHENTICATION.
string
required
Language code (e.g., en, es, hi).
object
Header config with type and content.
string
required
Template body text with {{N}} placeholders.
Footer text.
array
Button definitions.

Text template

Template with image header

Templates must be approved by WhatsApp before they can be used. Approval typically takes 24-48 hours.