Skip to main content
POST
Crear Plantilla
Create custom HSM templates with positional parameters, interactive buttons, and media. Optionally, submit the template directly to WhatsApp for approval.
Templates must be approved by the WhatsApp team before they can be used. Follow Meta’s guidelines to avoid rejections.

Path Parameters


Query Parameters


Request Body


Request Examples


Responses

The status field in the response indicates whether your template has been approved by WhatsApp.

Language

The language supported by WhatsApp is detailed on the official page. Please review it carefully at the following link.

Content Restrictions (Authentication Category)

Meta has restricted content for the authentication category. The content will be according to the template language. Meta is restricted to a single parameter.

Language


Parameter Structure

Use the following structure in the params field when creating a template:

Button Structure

Use the following structure in the buttons field when the interactive actions are CALL_TO_ACTION, QUICK_REPLY, or OTP.

QUICK_REPLY

Used to obtain quick replies. It is an array of objects and can have a maximum of 3 buttons.

CALL_TO_ACTION

Used to offer a call to action. Can have a maximum of 2 buttons and a maximum of 1 button of each type.

OTP

Used to obtain a “One Time Password”. Can have a maximum of 1 button.

extraSettings Structure

Authorizations

Authorization
string
header
required

Basic authentication using Base64 encoded clientId:clientSecret

Path Parameters

botId
string
required

Query Parameters

sendToAprove
boolean

Body

application/json
category
enum<string>
required
Available options:
UTILITY,
MARKETING,
AUTHENTICATION
language
string
required
elementName
string
required
Pattern: ^[a-z0-9_]+$
template
string
required
isVisible
boolean
params
object[]
paramsNumber
integer
displayName
string
type
enum<string>
Available options:
HSM,
IMAGE,
VIDEO,
DOCUMENT
mediaUrl
string<uri>
interactiveAction
enum<string>
Available options:
NONE,
CALL_TO_ACTION,
QUICK_REPLY,
OTP
buttons
object[]
header
string
Maximum string length: 60
exampleHeader
string
headerParams
object[]
example
string
extraSettings
object

Response

Plantilla creada exitosamente

message
string[]
status
string
data
object