Skip to main content
GET
List WhatsApp templates

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"

Query Parameters

channelId
string

Only templates on this channel. A 24-character hexadecimal ID.

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

"6650a1b2c3d4e5f6a7b8c9d0"

status
string

Only templates with these statuses, comma-separated, for example approved,paused. Statuses: created, submitted, pending, approved, rejected, paused, disabled, in_appeal, pending_deletion, limit_exceeded, error.

limit
integer

Items per page.

page
integer
default:1

Page number, starting at 1.

ignoreSampleTemplates
boolean

true leaves out Gallabox's sample templates.

isPresentInWaba
enum<string>

true returns only templates that exist in your WhatsApp Business Account at Meta; false, only those that don't.

Available options:
true,
false
populatePaths
string

Comma-separated names of related records to include in the response, for example contactOwner.

getCount
boolean

true returns { templates, totalCount } instead of a plain list.

Response

The templates. With getCount=true, an object with templates and totalCount.

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>