Poli icon

Poli

Node principal para interagir com a API da Poli

Template → List Templates

AI-generated

Overview

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

  1. Retrieve all templates for a given account UUID.
  2. Search templates by a specific text string within an account.
  3. 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.

Discussion