Poli icon

Poli

Node principal para interagir com a API da Poli

Contact → List Messages from Contact ID

AI-generated

Overview

This node operation lists messages associated with a specific contact identified by their UUID. It is useful for retrieving communication history or message logs for a particular contact within a system. For example, a user can fetch all messages sent or received by a contact to analyze interaction history or for customer support purposes.

Use Case Examples

  1. Retrieve all messages from a contact to review past communications.
  2. Fetch messages with additional components included for detailed message data.
  3. Paginate through messages by specifying page number and items per page.

Properties

Name Meaning
Contact UUID The unique identifier (UUID) of the contact whose messages are to be listed.
Options Additional parameters to customize the message listing, such as including extra fields, sorting order, pagination page number, and items per page.

Output

JSON

  • messages - Array of message objects associated with the specified contact.
  • pagination
    • page - Current page number of the results.
    • perPage - Number of items per page in the results.
    • total - Total number of messages available.

Dependencies

  • Requires an API key credential to authenticate requests to the Poli API.

Troubleshooting

  • Ensure the Contact UUID is provided and valid; missing or incorrect UUID will cause errors.
  • Verify API credentials are correctly configured to avoid authentication failures.
  • Check that the specified page and perPage values are within allowed ranges to prevent pagination errors.
  • Common error messages include resource or operation not found, which indicate misconfiguration of resource or operation parameters.

Discussion