Connect WhatsApp by code
dosai_get_whatsapp_pairing_codeConnect the business's WhatsApp number without a QR: returns an 8-character code. Tell the owner, on the phone with that WhatsApp: Settings → Linked devices → Link a device → Link with phone number instead, and type the code (it lives about a minute; if it expired, call again). If the answer says the code is being prepared, call again in 10 seconds. Then check dosai_get_whatsapp_status. Admin or owner.
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": {
"project_id": "<project_id>",
"phone": "<phone>"
},
"name": "dosai_get_whatsapp_pairing_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phone | Yes | The WhatsApp number with country code, e.g. 77071234567. | |
| project_id | Yes | From dosai_list_projects. |