POST
/
whatsapp
/
templates

Creates a new message template in the associated WhatsApp Business Account (WABA).

Request Body

  • agentId: The ID of the agent.
  • name: Name of the template (lowercase, underscores only).
  • category: MARKETING, UTILITY, or AUTHENTICATION.
  • language: Language code (e.g., en_US).
  • components: Array of template components.

Example

{
  "agentId": "agent-123",
  "name": "welcome_message",
  "category": "MARKETING",
  "language": "en_US",
  "components": [
    {
      "type": "HEADER",
      "format": "TEXT",
      "text": "Welcome!"
    },
    {
      "type": "BODY",
      "text": "Hi {{1}}, thanks for joining us!"
    },
    {
      "type": "FOOTER",
      "text": "ChatVolt Team"
    }
  ]
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
agentId
string
required

ID of the agent.

name
string
required

Name of the template.

category
enum<string>
required

Category of the template.

Available options:
MARKETING,
UTILITY,
AUTHENTICATION
language
string
required

Language code (e.g., "en_US").

components
object[]
required

Template components (header, body, footer, buttons).