Connect instance (QR or pairing code)
connect_instanceStarts a WhatsApp instance connection by generating a QR code or, when given a phone number, a pairing code for the user to enter in Linked devices.
Instructions
Starts the WhatsApp connection of an instance. Without phone it generates a QR code; with phone (international format, digits only) it generates a pairing code the user types in WhatsApp > Linked devices > Link with phone number. Use when get_instance_status shows disconnected. The user must complete the step on their phone.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phone | No | Phone of the WhatsApp account to link, digits with country code. Omit to get a QR code instead. | |
| instance_id | No | ZapZap instance id (a connected WhatsApp number). Optional when ZAPZAP_INSTANCE_ID is configured; otherwise call list_instances first. |