Skip to main content
POST
Create a WhatsApp template

Authorizations

apiKey
string
header
required

API key from Settings → API keys.

apiSecret
string
header
required

Secret shown once when the API key is created.

Path Parameters

accountId
string
required

Your Gallabox account ID. Must be the API key's own account. A 24-character hexadecimal ID.

Pattern: ^[a-fA-F0-9]{24}$
Example:

"6650a1b2c3d4e5f6a7b8c9d0"

Body

application/json
channelId
string
required

A 24-character hexadecimal ID.

Pattern: ^[a-fA-F0-9]{24}$
Example:

"6650a1b2c3d4e5f6a7b8c9d0"

name
string
required

Lowercase letters, numbers and underscores.

language
string
required

Language code, for example en or en_US.

Examples:

"en"

"en_US"

"hi"

category
enum<string>
required

The template's category.

Available options:
MARKETING,
UTILITY,
AUTHENTICATION
allow_category_change
boolean
required

Let Meta change the category if it disagrees.

components
object[]
required

The template's parts: header, body, footer, buttons, or carousel cards.

parameter_format
enum<string>

positional variables ({{1}}) or named ones ({{first_name}}).

Available options:
positional,
named

Response

The template, submitted for approval.

A WhatsApp message template. Main fields only.

id
string

A 24-character hexadecimal ID.

Pattern: ^[a-fA-F0-9]{24}$
Example:

"6650a1b2c3d4e5f6a7b8c9d0"

accountId
string

A 24-character hexadecimal ID.

Pattern: ^[a-fA-F0-9]{24}$
Example:

"6650a1b2c3d4e5f6a7b8c9d0"

channelId
string

A 24-character hexadecimal ID.

Pattern: ^[a-fA-F0-9]{24}$
Example:

"6650a1b2c3d4e5f6a7b8c9d0"

name
string
language
string
category
string
status
enum<string>
Available options:
created,
approved,
rejected,
pending,
submitted,
error,
in_appeal,
pending_deletion,
paused,
disabled,
limit_exceeded
rejected_reason
string
quality_score
object
parameter_format
enum<string>
Available options:
positional,
named
components
object[]
whatsappTemplateId
string

Meta's template ID.

maxPrice
object

Maximum price per message for marketing templates, when set.

createdAt
string<date-time>
updatedAt
string<date-time>