WhatsApp Templates

WhatsApp Templates

Get all WhatsApp message templates

get

Retrieve all message templates owned by a WhatsApp Business Account with optional filters.

Authorizations
Path parameters
whatsappBusinessAccountstringRequired

ID of the WhatsApp Business Account

Query parameters
limitintegerOptional

The maximum number of templates to return

Example: 10
statusstringOptional

Filter templates by status

Example: APPROVED
categorystringOptional

Filter templates by category

Example: MARKETING
languagestringOptional

Filter templates by language code

Example: en
Responses
200

Templates retrieved successfully

application/json
get
/api/whatsapp/{whatsappBusinessAccount}/message-templates

Get a specific WhatsApp message template by ID

get
Path parameters
idstringRequired
Responses
200

Template Information retrieved successfully

application/json
Responseobject
get
/api/whatsapp/message-templates/{id}

Create a new template

post
Body
namestring · max: 512RequiredExample: seasonal_promotion
languagestringRequiredExample: en_US
categorystringRequiredExample: MARKETING
Responses
200

Template created successfully

application/json
post
/api/{whatsappBusinessAccount}/message-templates

Update a WhatsApp message template

post

Edit a WhatsApp message template by changing its category or components. Only templates with an APPROVED, REJECTED, or PAUSED status can be edited.

Path parameters
whatsappBusinessAccountstringRequired

WhatsApp Business Account ID

templateIdstringRequired

Template ID

Body
categorystringOptional

New category for the template.

Example: MARKETING
Responses
200

Template updated successfully

application/json
post
/api/{whatsappBusinessAccount}/message-templates/{templateId}

Delete a WhatsApp message template

delete

Delete a WhatsApp message template by specifying its ID.

Path parameters
whatsappBusinessAccountstringRequired

WhatsApp Business Account ID

templatestringRequired

Template ID to be deleted

Query parameters
namestringRequired

Template name to be deleted

Responses
200

Template deleted successfully

application/json
delete
/api/whatsapp/{whatsappBusinessAccount}/message-templates/{templateID}

Last updated