Send a WhatsApp code
whatsapp_number_request_codeAsks WhatsApp to text or call a number this account owns with a registration code. method is sms or voice. forward_to is optional and only for a voice call: a phone already verified on this account. When the person reads the digits, pass them to whatsapp_number_verify_code.
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": {
"did_id": "<did_id>"
},
"name": "whatsapp_number_request_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| did_id | Yes | ||
| method | No | sms texts the code. voice calls with the code. | |
| forward_to | No | A verified phone on this account. Used only when method is voice. |