POST
Create Whatsapp Template

Authorizations

Authorization
string
header
required

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

Body

application/json
body
string
required

Variables are named: {{first_name}}.

Minimum string length: 1
category
enum<string>
required
Available options:
marketing,
utility
integration_id
string<uuid>
required

A Twilio WhatsApp sender; the template is account-wide.

language
string
required

One of the catalog's whatsapp_template_languages.

name
string
required

Lowercase letters, digits and _.

buttons
(WhatsAppTemplateQuickReplyButtonInput · object | WhatsAppTemplateUrlButtonInput · object | WhatsAppTemplatePhoneButtonInput · object | WhatsAppTemplateVoiceCallButtonInput · object | WhatsAppTemplateCopyCodeButtonInput · object)[]
examples
Examples · object

A realistic sample for every variable; WhatsApp reviews them.

Minimum string length: 1
header
WhatsAppTemplateTextHeaderInput · object

Response

Successful Response

A template and where WhatsApp's review of it stands. Only approved can be sent.

body
string
required
buttons
WhatsAppTemplateButton · object[]
required
category
enum<string>
required
Available options:
marketing,
utility,
authentication
created_at
string<date-time>
required
examples
Examples · object
required
header
WhatsAppTemplateHeader · object | null
required
id
string
required
language
string
required
name
string
required
rejection_reason
string | null
required
status
enum<string>
required
Available options:
pending,
approved,
rejected,
paused,
disabled
unsupported_reason
string | null
required
variables
string[]
required