Skip to main content
lc-phoneVersion: v3

List available phone numbers

GET/phone-system/numbers/location/{locationId}/available

Search Twilio inventory for purchasable phone numbers in a country for the given location.

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your access token.

Scope:phonenumbers.read
Auth methods:OAuthPrivate Integration
Token type:Sub-Account Token

Request​

Path Parameters

locationIdstringrequired

Location ID as string

Example:tDtDnQdgm2LXpyiqYvZ6

Query Parameters

firstPartstringrequired

firstPart is the beginning of the phone number

Example:830
lastPartstringrequired

lastPart is the ending of the phone number

Example:825
anywherestringrequired

anywhere are the numbers required anywhere in phone number

Example:825
numberTypesstring[]required

comma separated types of phone number required

Example:tollFree,mobile,local
smsEnabledbooleanrequired

requested phone numbers should have sms functionality

Example:true
mmsEnabledbooleanrequired

requested phone numbers should have mms functionality

Example:true
voiceEnabledbooleanrequired

requested phone numbers should have voice functionality

Example:true
countryCodestringrequired

country for which the phone numbers are being requested

Example:US

Response

Available phone numbers matching the search criteria.