## List library templates

`GET https://whatsapp.paaltech.org/api/v1/template-library`

Starter templates by sector - school (fee reminder, results, PTA meeting, absence,
admission offer) and retail (order confirmed, receipt, delivery update) - with named
variables and Meta's required example values. Copy one for a business with
[Create template from library](/docs/api/create-template-from-library).

Ability: `templates.read`

### Query parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `sector` | string | no | One of: `school`, `retail` |

### Request

```bash
curl --request GET \
  --url 'https://whatsapp.paaltech.org/api/v1/template-library' \
  --header "Authorization: Bearer $PAALCHAT_TOKEN" \
  --header 'Accept: application/json'
```

### Responses

- **200** - The library.
- **401** - unauthenticated - missing, invalid, revoked or expired token

```json
{
  "error": {"code": "unauthenticated", "message": "A valid product token is required."}
}
```

- **403** - missing_ability, product_suspended or product_token_required

```json
{
  "error": {
    "code": "missing_ability",
    "message": "This token does not have the ability this request needs."
  }
}
```

- **429** - rate_limited - over 300 requests/minute for this product

```json
{
  "error": {
    "code": "rate_limited",
    "message": "Too many requests. Slow down and retry after the Retry-After header."
  }
}
```

