cURL
curl --request GET \ --url https://{server-url}/instance/connect/{instance} \ --header 'apikey: <api-key>'
{ "pairingCode": "WZYEH1YY", "code": "2@y8eK+bjtEjUWy9/FOM...", "count": 1 }
Generates and returns the QR code for WhatsApp connection
Your authorization key header
Name of the instance to connect
Phone number (with country code) to be connected
Ok
The unique code used for pairing a device or account.
A specific code associated with the pairing process. This may include tokens or other identifiers.
The count or number of attempts or instances related to the pairing process.