Pair a number with WhatsApp
pair_numberStart (or resume) linking a WhatsApp account to one of your numbers. qr returns a QR code to scan from WhatsApp → Linked devices; code returns an 8-character linking code to type there instead, and needs the phone number being linked. Call it again every few seconds while someone scans: WhatsApp swaps the QR every 20 seconds, so show the one from the latest answer, and state turns "connected" when the scan lands. state: "pairing" with no code yet means it is still being made. Each linking session makes codes for expiresIn seconds; once that reaches 0, call again to start a new one. A restricted number needs recoveryConfirmed: true: set it only after checking that WhatsApp works on the phone. Temporary restrictions may clear after about an hour or take up to 24 hours; follow the notice on the phone, not a fixed timer. Free.
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": {
"numberId": "<numberId>"
},
"name": "pair_number"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | `qr` (default) or `code` for the type-in linking code. | |
| phone | No | Required with `mode: "code"`: the phone number being linked. | |
| numberId | Yes | Id of the number to pair, from list_numbers. | |
| recoveryConfirmed | No | Confirm that WhatsApp works on the phone before reconnecting a restricted number. Required only while its status is banned. Never confirm automatically. |