Create a WhatsApp template

Create a WhatsApp template and submit it to Meta for review.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Trengo saves the template with status PENDING and submits it to Meta in the same request. When Meta refuses the template, the request fails with a 422 and Trengo saves nothing. Meta reviews the template within minutes to 24 hours. Then the status changes to ACCEPTED or DECLINED. To check the status, list the WhatsApp templates.

You cannot change the content of a template after you create it. To change it, delete the template and create a new one. For a media header, first upload the file with Upload a file, and use its id as the header value.

Body Params
string
required

The name of the template in Trengo.

string
required

The name of the template at Meta. Lowercase letters, digits and underscores only, for example order_shipped. Meta refuses a name that already exists in the same language for the same WhatsApp Business Account.

integer
required

The ID of the WhatsApp Business channel. Required, also when you send channel_ids.

string
required

The language code, for example en, nl, en_US or pt_BR.

string
enum
required

UTILITY for a message about an order or an account, MARKETING for promotions, AUTHENTICATION for one-time codes. Meta can change the category during review.

Allowed:
string

The body text, up to 1024 characters. Required, except for AUTHENTICATION. Use numbered placeholders {{1}}, {{2}} and so on: start at {{1}}, do not skip a number, and do not start or end the text with a placeholder. Formatting: bold, italic, strikethrough.

variable_examples
array of strings

One example value for each placeholder in message, in order: the first item is the example for {{1}}. Meta uses the examples to review the template. Do not use real customer data.

variable_examples
button_url_examples
array of strings

One example for each URL button that ends in {{1}}, in the order of those buttons. The example replaces {{1}}, up to 200 characters.

button_url_examples
components
array of objects

The header, the footer and the buttons. At most 1 HEADER, 1 FOOTER, 3 QUICK_REPLY buttons, 2 URL buttons and 1 PHONE_NUMBER button. Send the URL and PHONE_NUMBER buttons before the QUICK_REPLY buttons.

components
Response
200
Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here!