Provision phone
provision_phoneBuy a number for the identity (202 provisioning; the number is not known yet; follow meta.poll). Needs the phone channel, a card on file, and stays within the hourly provisioning limit. area_code is a preference: with none available there the number comes from elsewhere in the country, and get_phone then shows requested_area_code with area_code_fallback true.
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": {
"identity_id": "<identity_id>",
"idempotency_key": "<idempotency_key>"
},
"name": "provision_phone"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country | No | Default US. | US |
| area_code | No | Three-digit NANP area code: first digit 2-9, middle digit 0-8, not an N11 service code (else validation_failed). | |
| identity_id | Yes | Identity id from list_identities. | |
| idempotency_key | Yes | Stable key you choose (max 64 chars); reuse it on retry. A different payload under the same key is refused with idempotency_conflict. |