Check Pairing Status
wa_pair_statusCheck a pairing started with wa_pair_account. While state is "qr" a new image is returned each time — show the latest to the user. While state is "code", show pair_code. A Telegram pairing may report "password_needed": the user enters their cloud password on the console's pairing page, never here. When state becomes "paired" the account is ready and appears in wa_list_accounts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pair_id | Yes | the pair_id returned by wa_pair_account |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | starting, qr, code, password_needed (a Telegram account with two-step verification: the user must enter their cloud password on the console's pairing page — never ask for it here), paired or failed | |
| network | No | the messaging network the pairing links on: whatsapp or telegram | |
| pair_id | No | pass this to wa_pair_status to follow the pairing | |
| refusal | No | present only when pairing could not be started | |
| pair_code | No | the 8-character code the user types on their phone (phone-number pairing only) | |
| expires_at | No | when pair_code stops working, RFC 3339 (phone-number pairing only) | |
| needs_plan | No | true when the linked number has no plan yet and will not run until the user buys one in the console | |
| 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 |