purchasePhoneNumber
Buy a phone number from the OmniDimension number shop; the monthly rental is deducted from your wallet and the number is added to your account ready to attach to an agent.
Instructions
Buy a phone number from the OmniDimension number shop.
The monthly rental comes out of your wallet. The number is added to your account, ready to attach to an agent.
(Tags: Phone numbers)
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": {
"region": "<region>",
"carrier": "<carrier>",
"phone_number": "<phone_number>"
},
"name": "purchasePhoneNumber"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| region | Yes | Region the number belongs to. | |
| carrier | Yes | The carrier to buy from: pass the `carrier` the search response named, so you buy from the inventory you searched. Required where the region has more than one carrier; omitting it there returns `409 carrier_required`. | |
| phone_number | Yes | The number to buy, as returned by the search operation. | |
| Idempotency-Key | No | Your own unique key for this purchase, for example a fresh UUID. Strongly recommended: it is what makes a retry safe. |