Link a WhatsApp account
link_accountPairs wazap with a user's WhatsApp account when status shows not linked, logged out, corrupt session, or auth failure by returning a pairing code and status polling instructions.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"phone": "<phone>"
},
"name": "link_account"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phone | Yes | e.g. +15550100 | |
| account_id | No |