REST Client

Phone Numbers

View as MarkdownOpen in Claude

Search for available phone numbers, purchase them, and manage the numbers in your SignalWire project. This resource extends the standard CRUD pattern with a search() method for discovering available numbers and uses PUT for updates.

Access via client.phone_numbers on a RestClient instance.

1from signalwire.rest import RestClient
2
3client = RestClient(
4 project="your-project-id",
5 token="your-api-token",
6 host="your-space.signalwire.com",
7)
8
9available = client.phone_numbers.search(area_code="512")
10for number in available.get("data", []):
11 print(number["phone_number"])

Methods