Skip to main content
PATCH
Edit 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"

templateId
string
required

ID of the template.

Body

application/json

For an approved or paused template only components (and enableURLTracking) are used. For a rejected template, or one that never reached Meta, the fields you send replace the stored ones and the template is submitted again.

channelId
string
required

The channel the template belongs to.

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

"6650a1b2c3d4e5f6a7b8c9d0"

name
string
required

The template's current name. It can't be changed.

language
string

Language code, for example en or en_US.

Examples:

"en"

"en_US"

"hi"

category
enum<string>

The template's category.

Available options:
MARKETING,
UTILITY,
AUTHENTICATION
allow_category_change
boolean

Let Meta change the category if it disagrees.

components
object[]

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 with the pending edit.

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>