Templates
Templates are the messages you may send at any time, even when the customer has not written in the last 24 hours.
These examples use a placeholder address. Your console shows the exact address of the API for your workspace.
GET /connections/{id}/templates
Lists the message templates of a connection. The list is not paginated.
- A live key reads the templates from WhatsApp, so the call can answer
503 service_unavailablewhen WhatsApp is unavailable. Template reads are limited to 10 per minute per key. - A sandbox key returns the two fixed sandbox templates.
- Required scope
templates.read- HTTP
- Success: HTTP 200
Parameters
| Name | Description |
|---|---|
idstring (UUID) | The id of the connection. |
statusstring (default APPROVED, or all) | APPROVED by default. Use all to list every status. |
Errors
Any authenticated endpoint can also return the authentication, scope and rate limit errors listed on the errors page.