importWhatsappNumbers
Connects WhatsApp Business numbers to your account using a Meta access token and phone number IDs; add an app secret to enable incoming replies.
Instructions
Connect numbers from your WhatsApp Business Account with your Meta access token.
List the numbers first with Preview numbers, then pass the ids you want.
The token must never expire and must carry both
whatsapp_business_management and whatsapp_business_messaging. A system
user token does. Add app_secret to receive replies. Without it the number
can send but not receive.
Connecting a number again updates it. Send a new access_token or
app_secret to change either. One number failing does not stop the others.
It is listed in failed with the reason.
(Tags: WhatsApp)
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": {
"waba_id": "<waba_id>",
"access_token": "<access_token>",
"phone_number_ids": "<phone_number_ids>"
},
"name": "importWhatsappNumbers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| waba_id | Yes | Your WhatsApp Business Account id, from WhatsApp Manager. | |
| app_secret | No | Your Meta app's secret. Turns on replies. Stored, never returned. | |
| access_token | Yes | A Meta access token that never expires, with both WhatsApp permissions. Stored, never returned. | |
| phone_number_ids | Yes | Meta's ids for the numbers to connect, as Preview numbers lists them. |