List a WhatsApp number's templates
list_whatsapp_templatesList a WhatsApp number's templates
Every template of one of the agent's WhatsApp numbers, read live from Meta, whatever its
status: one item per language version, sorted by name, then language. Only approved
templates can be sent. Each item says what POST /v1/whatsapp/templates must fill in:
the body and header parameter keys in order, the header's format, and each button's
index and the field that carries its value. It lists up to 100 templates.
Because it calls Meta every time, this endpoint allows 10 requests a minute per key,
counted apart from your other calls: keep the list, and read it again after your
templates change. A connection that isn't a WhatsApp number is 404 not_found; a
disconnected one is 409 connection_inactive, and one whose access Meta withdrew is
409 connection_needs_reconnection (reconnect it in the dashboard; retrying won't
help). When Meta doesn't return the templates (an outage, a timeout or its own rate
limit), the call is 503 meta_unavailable: retry with backoff.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | The agent the resource belongs to. Another company's agent, or the nil UUID, is `404 agent_not_found`; an agent outside the key's agent list is `403 agent_not_authorized`. | |
| connection_id | Yes | A connection of the agent. Another agent's connection is `404 not_found`. |