Chat icon

Chat

Interact with the Chat API

Actions253

Message Template → Create

AI-generated

Summary

Create a message template

Inputs

  • accountId (required) — Select the WhatsApp account to associate the template with.
  • name (required) — Name of the template (lowercase, underscores only).
  • category (required) — Category of the template (Authentication, Marketing, or Utility).
  • language (required) — Language code for the template (e.g., en_US).
  • content (required) — Template content as a JSON object following WhatsApp template structure.
  • additionalFields — Optional extra fields to attach to the template.
  • parameter_format — Format of template parameters (Named or Positional).
  • status — Status of the template (Approved, Pending, or Rejected).

Output shape

a single object representing the created message template

includes system‑generated identifiers; on error returns an error envelope with a status code

Examples

Example 1: Create a marketing template for order confirmation in English

accountId=123, name='order_confirmation', category='MARKETING', language='en_US', content={...}, status='approved'

Links

Discussion