WhatsApp API icon

WhatsApp API

Integração com WhatsApp API para envio de mensagens e gerenciamento

Overview

This node integrates with a WhatsApp API to manage contacts, send messages, handle tickets, sessions, and opportunities. Specifically for the Contact - Show operation, it retrieves information about a WhatsApp contact by their phone number. This is useful when you want to fetch details of a contact stored or recognized by the WhatsApp API system.

Practical examples:

  • Fetching contact details before sending a message.
  • Verifying if a contact exists in the WhatsApp system.
  • Retrieving contact info to update CRM records or trigger workflows based on contact data.

Properties

Name Meaning
Contact Number The WhatsApp phone number of the contact (format example: 5511999999999). This is required to identify which contact to retrieve.

Output

The node outputs JSON data representing the contact information returned by the WhatsApp API. The exact structure depends on the API response but typically includes fields such as contact name, number, email, and other metadata related to the contact.

No binary data output is produced by this operation.

Example output snippet (conceptual):

{
  "name": "John Doe",
  "number": "5511999999999",
  "email": "john.doe@example.com",
  "status": "active"
}

Dependencies

  • Requires an API key credential for authenticating with the WhatsApp API.
  • The node uses a base URL and instance ID configured in the credentials to build API requests.
  • The WhatsApp API service must be accessible and properly configured to respond to contact queries.

Troubleshooting

  • Common issues:

    • Invalid or missing contact number format can cause the API to reject the request.
    • Authentication failures due to incorrect or expired API credentials.
    • Network connectivity problems preventing access to the WhatsApp API endpoint.
    • Contact not found errors if the specified number does not exist in the WhatsApp system.
  • Error messages:

    • "Unknown error occurred": Generic catch-all; check network and API status.
    • Authentication errors: Verify API key and credential setup.
    • Validation errors: Ensure the contact number is provided and correctly formatted.

To resolve these, confirm the contact number format, validate credentials, and ensure the WhatsApp API service is operational.

Links and References

Discussion