List phone numbers
list_phone_numbersList phone numbers
Returns the phone numbers the account rents, newest purchase first. Wholesale costs, carrier identifiers and SIP credentials are never included, only the columns of the PhoneNumber schema. A reseller key sees every number belonging to its own customers and can narrow the result to one customer with userId; a direct account key ignores userId and always sees only its own numbers. pagination.total is a real count of every number matching the request, not the length of the page, so a page count can be computed from it.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_phone_numbers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page to return. Starts at 1; values below 1 are clamped to 1. | |
| userId | No | Reseller keys only: restrict the result to one customer account. The customer must belong to the calling reseller, otherwise the request is rejected with 403. Ignored for direct account keys. | |
| perPage | No | Items per page. Clamped to the range 1 to 100; larger values are reduced to 100. |