💳 Buying a Phone Number

If you'd like to test API requests to the phone numbers resource without provisioning a number for your account, you can use your test credentials.

You can use the magic numbers provided in the Test credentials in the exercise.

💡Tip: You can either provide the PhoneNumber to purchase or the AreaCode of a location and Twilio will provision you a number in that location.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Test account SID

Form Data
string

The test phone number to be tested

string

Area code of phone number to be provisioned

Responses

Language
Credentials
Basic
base64
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json