---
title: "Listar biblioteca de templates"
method: GET
path: "/v1/templates/library"
tags: ["Templates"]
---

# Listar biblioteca de templates

`GET /v1/templates/library`

## Request

- Base URL: `https://api.ararahq.com`
- URL: `https://api.ararahq.com/v1/templates/library`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/ararahq/apis/ararahq-api/docs/v1/templates/library/get.ts> (a function with typed inputs; its response is checked against the schema)

Templates `UTILITY` que a Meta já aprovou. Exige número conectado
(`422 GUPSHUP_APP_NOT_READY` sem ele). Permissão: `READ`.

## Query parameters

- `languageCode` string

## Response `200`

Templates da biblioteca

- LibraryTemplateResponse[]
  - `elementName` string, required
  - `body` string, required
  - `sampleText` string, nullable
  - `header` string, nullable
  - `topic` string, nullable
  - `usecase` string, nullable
  - `languageCode` string, required
  - `buttons` unknown

## Other responses

- `401`: Chave inexistente, revogada, expirada, com prefixo errado (`ara_` sem `ara_live_`) ou vinda de IP fora da allowlist. O corpo é o JSON padrão do Spring, sem `error.code`.
- `403`: Dois casos, com corpos diferentes: - Autenticação: header `Authorization` ausente, Bearer que não começa com `ara_`, chave sem a permissão da rota ou rota que não aceita chave de API. Corpo no formato padrão do Spring, sem `error.code`. - Regra de negócio, no formato `{ "error": { ... } }`: `PLAN_FEATURE_LOCKED`, `PLAN_LIMIT_REACHED`, `ACCOUNT_NOT_ACTIVATED`, `NO_DEDICATED_NUMBER`, `ORGANIZATION_SUSPENDED`, `NUMBER_BLOCKED`, `FRAUD_SUSPECTED`, `RESOURCE_FORBIDDEN`, `VIEWER_READ_ONLY`.
- `422`: `GUPSHUP_APP_NOT_READY`: nenhum número conectado.
- `429`: `RATE_LIMIT_EXCEEDED`: limite geral da API (1.200 leituras ou 3.000 escritas por minuto, por usuário da chave).

## Changes

- **2026-10-12** `d576cd28afc0`: 4 info
  - api tag `Templates` added
  - api tag `templates` removed
  - added the non-success response with the status `422`
  - added the non-success response with the status `429`
- **2026-09-15** `372d8c2e735d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/ararahq/apis/ararahq-api/changes/v1/templates/library/get.md)

---

[API](https://skmtc.dev/ararahq/apis/ararahq-api.md) - [All operations](https://skmtc.dev/ararahq/apis/ararahq-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ararahq/apis/ararahq-api/revisions/d576cd28afc0?raw)
