List Message Templates
List Message Templates lists a WhatsApp Business Account's message templates, one page
at a time. Pass the previous page's paging.cursors.after as After (cursor) to get the
next page.
It calls GET https://graph.facebook.com/v23.0/{wabaId}/message_templates.
The activity has four tabs: Configuration, Auth, Input and Output.
Configuration
| Field | Required | Description |
|---|---|---|
| Name | Optional | Name of the step, should be unique within this workflow. |
| Description | Optional | Describe the purpose or function of this step. |
| WABA ID | Optional | WhatsApp Business Account id. Not the app id or phone number id. Sent as the wabaId path parameter; Meta needs it. |
| Fields | Optional | Comma-separated template fields. Keep id and rejected_reason. Defaults to id,name,status,language,category,parameter_format,components,rejected_reason,quality_score. Sent as the fields query parameter. |
| Page Size | Optional | Templates per page. Defaults to 100. Sent as limit. |
| After (cursor) | Optional | Cursor from the previous page; empty for the first page. Sent as after. |
| Status Filter | Optional | Returns only templates in this status: APPROVED, PENDING, REJECTED, PAUSED, DISABLED, …. Sent as status. |
| Name Filter | Optional | Returns only the template with this exact name. Sent as name. |
Leave After (cursor), Status Filter and Name Filter empty to list every template from the first page.
Auth
| Field | Required | Description |
|---|---|---|
| Auth Type | Optional | OAuth 2, the only option. WhatsApp uses the Meta OAuth connection. |
| WhatsApp Connection | Optional | The WhatsApp resource, which needs the whatsapp_business_management scope. |
Input
This activity is built on the REST Client. It sends no request
body; the values above go in the URL. You can also map pathParams.wabaId and the
queryParams values from an earlier step here.
| Field | Required | Data Type | Description |
|---|---|---|---|
| Target | Required | Object | The HTTP request. |
Output
The activity returns an httpResponse object (status.code, status.message, headers,
body). The response body carries:
| Field | Data Type | Description |
|---|---|---|
| data[].id | String | Template id. Use it with Get and Edit Message Template. |
| data[].name | String | Template name. |
| data[].status | String | APPROVED, IN_APPEAL, PENDING, REJECTED, PENDING_DELETION, DELETED, DISABLED, PAUSED, LIMIT_EXCEEDED or ARCHIVED. |
| data[].language | String | Language code, for example en_US. |
| data[].category | String | UTILITY, MARKETING or AUTHENTICATION. |
| data[].parameter_format | String | NAMED or POSITIONAL. |
| data[].components | Array | Header, body, footer and buttons. |
| data[].rejected_reason | String | NONE, ABUSIVE_CONTENT, CATEGORY_NOT_AVAILABLE, INCORRECT_CATEGORY, INVALID_FORMAT, PROMOTIONAL, SCAM or TAG_CONTENT_MISMATCH. |
| data[].quality_score | Object | score and date. |
| paging.cursors.before / after | String | Cursors for the previous and next page. |
| paging.next | String | Present when there's another page. |