Pair Account
wa_pair_accountBegin linking a new WhatsApp account. Returns a QR code as a PNG image for the user to scan with their phone. The code expires every ~20 seconds — poll wa_pair_status with the returned pair_id to get the current code and to find out when the account is linked.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | starting, qr, paired or failed | |
| pair_id | No | pass this to wa_pair_status to follow the pairing | |
| refusal | No | present only when pairing could not be started | |
| instructions | No | what to tell the user to do | |
| qr_png_base64 | No | a PNG image of the QR code, base64 encoded — display this to the user |