Link a WhatsApp account
link_accountInitiate WhatsApp pairing by phone number to connect an unlinked or logged-out account. Returns a code to enter under WhatsApp Settings > Linked devices.
Instructions
Pair wazap with the user's WhatsApp when get_status says not_linked, logged_out, session_corrupt or auth_failure. Show the user the code it returns: WhatsApp → Settings → Linked devices → Link a device → Link with phone number instead. Then poll get_status every 10 s until connected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phone | Yes | e.g. +15550100 | |
| account_id | No | Account id |