Listar templates aprobados de la company
Templates
GET /v1/templates
Lists your tenant’s approved WhatsApp templates with their expected variables, paginated.
GET
Listar templates aprobados de la company
Returns the WhatsApp templates for your tenant. By default only
APPROVED ones, but you can filter by status. Each item includes the expected variables extracted from the template body, so you can build the right variables payload for POST /v1/messages/template without keeping that list on your side.
Endpoint
Required scope
templates:read
Headers
| Header | Required | Value |
|---|---|---|
Authorization | Yes | Bearer kbai_pk_<token> |
Query params
| Param | Type | Default | Description |
|---|---|---|---|
page | number | 0 | Page number, 0-indexed. |
limit | number | 50 | Items per page, up to 100. |
status | string | APPROVED | PENDING, IN_REVIEW, APPROVED, REJECTED, PAUSED, DISABLED, IN_APPEAL. |
channel_id | string | — | ObjectId to filter by a specific channel. If omitted, returns templates across all channels in the tenant. |
Example request
Response
200 OK
| Field | Type | Description |
|---|---|---|
items[].id | string | Internal ObjectId of the template. |
items[].name | string | Template name exactly as registered in Meta. This is what you pass as template_name when sending. |
items[].language | string | Language code. |
items[].status | string | Template status in Meta. |
items[].category | string | MARKETING, UTILITY, AUTHENTICATION. |
items[].parameter_format | string | NAMED or POSITIONAL. We recommend new integrations stick to NAMED. |
items[].variables | string[] | Named variables detected in the template body. The keys of the variables object you send in POST /v1/messages/template must match this list. |
page | number | Returned page. |
limit | number | Items per page. |
total | number | Total templates matching the filter. |
401 / 403 / 429
Standard auth, scope, and rate limit errors.How to use it in your integration
Authorizations
Personal Access Token con prefijo kbai_pk_. Generar desde el portal con permiso developer.manage_tokens.
Query Parameters
Required range:
x <= 100Available options:
PENDING, IN_REVIEW, REJECTED, APPROVED, PAUSED, DISABLED, IN_APPEAL