Actions27
- App Actions
- Account Actions
- Channel Actions
- Message Actions
- Template Actions
- Contact Actions
- Chat Actions
- Tag Actions
- User Actions
- Team Actions
- Webhook Actions
Template → List Templates
AI-generatedOverview
This node operation lists templates from the Poli API based on the provided account ID and optional filtering, sorting, and pagination options. It is useful for retrieving a collection of templates associated with a specific account, allowing users to search, order, and include additional fields in the response.
Use Case Examples
- Retrieve all templates for a given account UUID.
- Search templates by a specific text string within an account.
- Paginate through templates with custom page size and order by creation date descending.
Properties
| Name | Meaning |
|---|---|
| Account UUID | The unique identifier of the account to list templates for, required to specify the account context. |
| Options | Additional parameters to refine the list of templates, including search text, order, pagination, included fields, and raw query string. |
Output
JSON
templates- Array of template objects returned from the API, each representing a template with its details.pagination- Pagination information including current page, total pages, and items per page.
Dependencies
- Poli API with authentication via an API key credential
Troubleshooting
- Ensure the 'Account UUID' is provided and valid; missing or incorrect account ID will cause errors.
- Verify that the API credentials are correctly configured and have permissions to access templates.
- Check the format of optional parameters like 'order' and 'query' to avoid malformed requests.
- Common error messages include resource or operation not found if parameters are incorrect, and API errors if the request fails.