Skip to main content
POST
Create a message template

Authorizations

Authorization
string
header
required

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

Path Parameters

account_id
string
required

Connected account ID (sapi_acc_...)

Body

application/json

Template definition

category
enum<string>
required

Category is the message category. Marketing intent in a UTILITY template triggers automatic rejection.

Available options:
AUTHENTICATION,
MARKETING,
UTILITY
Example:

"UTILITY"

components
object[]
required

Components define the template body, optional header, optional footer, and optional buttons. At minimum one BODY component is required.

language
string
required

Language is the BCP-47 language code (e.g. en_US, fr_FR, pt_BR).

Example:

"en_US"

name
string
required

Name is the template identifier. Lowercase letters, digits, underscores only; no spaces.

Example:

"order_confirmation"

Response

Created template (initial status)

category
string
required

Category WhatsApp gave the template, for example AUTHENTICATION, MARKETING or UTILITY. Other values can appear.

Example:

"UTILITY"

id
string
required
Example:

"1234567890123456"

status
string
required

Review status of the new template, for example APPROVED, PENDING or REJECTED. Other values can appear.

Example:

"PENDING"