I'm trying to find a way to see every number I've bought on Twilio and still control - either from the console or with an api call.
Asked
Active
Viewed 56 times
1 Answers
0
Twilio developer evangelist here.
You can see all your Twilio numbers in the console here.
You can also get the numbers using the REST API. You'll need the Incoming Phone Numbers list resource. You can do this with Python and the Twilio Python helper library, for example, like this:
from twilio.rest import Client
# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = "your_account_sid"
auth_token = "your_auth_token"
client = Client(account_sid, auth_token)
# A list of number objects with the properties described above
for number in client.incoming_phone_numbers.stream():
print(number.phone_number)
Let me know if this helps at all.

philnash
- 70,667
- 10
- 60
- 88