Passer au contenu principal
POST
Create a WhatsApp template

Autorisations

Authorization
string
header
requis

Company API key, sent as Authorization: Bearer <key>. Create it in the dashboard (Developer > API Keys) with the permissions the integration needs.

Corps

application/json
channel_id
string

Creation: a WhatsApp number of the company; the template belongs to its WhatsApp Business Account and every number of that account can send it

name
string

Creation: normalized for Meta (Order update becomes order_update)

language
string

Creation

Exemple:

"fr"

category
enum<string>

Creation. A utility body has at least one variable; an authentication template only takes authentication

Options disponibles:
MARKETING,
UTILITY,
AUTHENTICATION
header
object
body
object

60 characters, no variable

buttons
object[]

Up to 10: quick replies grouped together, 2 links, 1 call, 1 copy code (marketing). A link with {{1}} at the end of the URL needs an example

authentication
object

Réponse

200 - application/json

Always HTTP 200: the outcome is in success and code (absolute value of the response code).

success
boolean
Exemple:

true

code
integer
Exemple:

1000

message
string
Exemple:

"Request success."

body
object

Endpoint payload, null when there is none

token
string | null

Present only on authentication routes

trace_id
string | null

Present only when success is false