Press Ticket icon

Press Ticket

Interage com a API do Press Ticket®

WhatsApp → Solicitar Código de Pareamento

AI-generated

Overview

This node interacts with the Press Ticket® API to request a pairing code for a WhatsApp connection. It is useful for scenarios where you want to connect a WhatsApp number to the system without using a QR code, by generating a pairing code instead. For example, this can be used to automate the setup of WhatsApp connections in customer support or communication platforms.

Use Case Examples

  1. Request a pairing code for a WhatsApp connection by providing the WhatsApp connection ID and the phone number in international format.
  2. Automate WhatsApp connection setup without scanning QR codes by generating pairing codes programmatically.

Properties

Name Meaning
ID do WhatsApp ID da conexão WhatsApp, used to identify the WhatsApp connection for which the pairing code is requested.
Número de Telefone Número no formato 5511999999999 (com código do país), the phone number for which the pairing code is requested.

Output

JSON

  • phoneNumber - The phone number for which the pairing code was requested.
  • whatsappId - The ID of the WhatsApp connection.
  • success - Indicates if the pairing code request was successful.
  • pairingCode - The generated pairing code to connect WhatsApp without QR code.

Dependencies

  • Press Ticket® API with an API token credential

Troubleshooting

  • Ensure the WhatsApp ID and phone number are correctly provided and formatted.
  • Check API token validity and permissions for the Press Ticket® API.
  • Handle API errors gracefully; the node throws errors if the request fails unless 'Continue On Fail' is enabled.

Discussion