Press Ticket icon

Press Ticket

Interage com a API do Press Ticket®

Overview

This node integrates with the Press Ticket® API to manage various communication-related resources such as messages, contacts, tickets, queues, tags, WhatsApp connections, and sessions. Specifically, for the Contato (Contact) resource with the Consultar (Query) operation, it allows querying contacts by their name, email, or phone number.

Typical use cases include:

  • Searching for a contact in the Press Ticket system by providing one or more identifiers (name, email, or phone number).
  • Automating workflows that require retrieving contact details based on partial or full information.
  • Integrating contact lookup into customer support or CRM automation pipelines.

For example, you can input a phone number in international format to find matching contacts, or query by email or name to retrieve contact records.

Properties

Name Meaning
Nome Contact's name to search for (optional).
Email Contact's email address to search for (optional).
Número Contact's phone number in international format (DDI+DDD+NUMBER, e.g., 5522999999999) (optional).

At least one of these properties must be provided to perform a query.

Output

The output is a JSON array containing the contact(s) matching the query criteria. The structure depends on the API response but typically includes contact details such as:

  • Contact ID
  • Name
  • Number
  • Email
  • Address (if available)
  • Additional info fields (if any)

If multiple contacts match the query, all are returned as separate items in the output array.

No binary data is output for this operation.

Dependencies

  • Requires an API key credential for authenticating with the Press Ticket® API.
  • The node uses the base URL and token from the configured credentials to make HTTP requests.
  • No additional external dependencies beyond the Press Ticket API and n8n's HTTP request helper.

Troubleshooting

  • Error: "É necessário fornecer pelo menos um dos campos: número, email ou nome"
    This error occurs if none of the three query parameters (number, email, name) are provided. To fix, supply at least one of these fields.

  • Invalid response format errors
    If the API returns unexpected data, ensure the API token and URL are correct and the Press Ticket service is operational.

  • Authentication errors
    Verify that the API key credential is valid and has sufficient permissions.

  • Empty results
    If no contacts are found, check that the query parameters are accurate and formatted correctly (e.g., phone number in international format).

Links and References

Discussion