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
ID of the instance to connect
Phone number (with country code) to be connected
Ok
The response is of type object.
object