Get a pairing code
request_pairing_codeLink a WhatsApp number by phone instead of QR code: request an 8-character pairing code the owner types in WhatsApp. The code lasts about 160 seconds and fails if the account is already linked.
Instructions
Link by phone number instead of QR code: returns an 8-character code the owner types in WhatsApp. It lives about 160 seconds. Fails with already_linked when the account is ready.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phone | Yes | The number to link, E.164 (`+584121234567`) or digits. | |
| accountId | Yes | The wuapi account id of the linked number to act as (from list_accounts). |