Listar plantillas
Lista las plantillas del número conectado. Son del WABA: todos los números del mismo WABA ven las mismas. Se sincronizan al listar.
GEThttps://api.octuvia.com/v1/accounts/{account_id}/templates
Path:
account_id del número (acc_…). La API key identifica el workspace. Filtros opcionales por query.Path
Campo
Descripción
account_idstringrequerido
Id del número (
acc_…).Ej: acc_01J8Z3K4M5N6P7Q8R9S0T1U2V3Query (opcional)
| Param | Uso |
|---|---|
status | PENDING | APPROVED | REJECTED | PAUSED | DISABLED |
name | Filtra por nombre exacto de plantilla. |
limit | Tamaño de página. |
cursor | Paginación (next_cursor de la respuesta anterior). |
Campos de cada plantilla
| Campo | Uso |
|---|---|
id | Id Octuvia (tpl_…). |
name + language | Los usas al enviar (POST /messages type template). |
category | MARKETING | UTILITY | AUTHENTICATION |
status | Solo APPROVED se puede enviar en producción. |
rejection_reason | Si Meta la rechazó. |
components | Estructura (HEADER / BODY / FOOTER / BUTTONS). |
Estado en vivo
Cuando Meta aprueba o rechaza, llega el webhookwhatsapp.template.status_changed. No hace falta solo hacer poll.Language
Credentials
Header
Authorization
Token de la empresa · HTTP directo
Fetch Request
$ # Node 18+ fetch
const response = await fetch("https://api.octuvia.com/v1/accounts/acc_01J8Z3K4M5N6P7Q8R9S0T1U2V3/templates?status=APPROVED&limit=50", {
method: "GET",
headers: {
"Authorization": "Bearer octuvia_live_…"
}
});
const data = await response.json();
console.log(data);HTTP directo · funciona con cualquier cliente HTTP
Response
Elige un ejemplo de respuesta:
application/json
200OK
{
"object": "list",
"data": [
{
"object": "template",
"id": "tpl_01J8Z3K4M5N6P7Q8R9S0T1U2V3",
"account_id": "acc_01J8Z3K4M5N6P7Q8R9S0T1U2V3",
"name": "pedido_enviado",
"language": "es",
"category": "UTILITY",
"status": "APPROVED",
"rejection_reason": null,
"quality_score": "GREEN",
"components": [
{
"type": "BODY",
"text": "Hola {{1}}, tu pedido {{2}} ha salido."
}
],
"created_at": "2026-03-26T12:00:00Z",
"updated_at": "2026-03-26T12:10:00Z"
}
],
"has_more": false,
"next_cursor": null
}