List Templates
AI-generatedSummary
List WhatsApp message templates from the WaswuzPlatform service, optionally filtered by WhatsApp phone number, approval status, category, and limited in number.
Inputs
- WhatsApp Phone Number — Optionally filter templates by a specific WhatsApp phone number ID, which associates templates to a particular WhatsApp Business Account (WABA).
- Filter by Status — Optionally filter templates by their approval status: all, approved, pending, or rejected.
- Filter by Category — Optionally filter templates by category such as marketing, utility, or authentication.
- Limit — Specify the maximum number of templates to return, with a default of 100 and a maximum of 500.
Output shape
a JSON array of template objects returned from the API, each including template details such as name and language, subject to the applied filters and limit
Returns templates matching the applied filter criteria. The result is paginated by the 'Limit' parameter with a maximum limit of 500. If no templates match the filters, the response array may be empty.
Examples
Example 1: List all approved WhatsApp templates for a specific WhatsApp phone number
Set 'WhatsApp Phone Number' to the desired phone number ID, 'Filter by Status' to 'Approved', leave other filters blank or at defaults, and optionally adjust 'Limit' to control the number of returned templates.