Retrieve a list of all Phone Numbers in the Proxy Number Pool for a Service. A maximum of 100 records will be returned per page.
Retrieve a list of all Phone Numbers in the Proxy Number Pool for a Service. A maximum of 100 records will be returned per page.
Path parameters
-
The SID of the parent Service of the PhoneNumber resources to read.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^KS[0-9a-fA-F]{32}$
.
GET
/v1/Services/{ServiceSid}/PhoneNumbers
curl \
--request GET 'https://proxy.twilio.com/v1/Services/{ServiceSid}/PhoneNumbers' \
--user "username:password"
Response examples (200)
{
"meta": {
"key": "phone_numbers",
"url": "https://proxy.twilio.com/v1/Services/KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PhoneNumbers?PageSize=50&Page=0",
"page": 0,
"page_size": 50,
"next_page_url": null,
"first_page_url": "https://proxy.twilio.com/v1/Services/KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PhoneNumbers?PageSize=50&Page=0",
"previous_page_url": null
},
"phone_numbers": [
{
"sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://proxy.twilio.com/v1/Services/KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PhoneNumbers/PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"in_use": 0,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"is_reserved": false,
"iso_country": "US",
"service_sid": "KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"capabilities": {
"sms_outbound": true,
"voice_inbound": false
},
"date_created": "2015-07-30T20:00:00Z",
"date_updated": "2015-07-30T20:00:00Z",
"phone_number": "+1987654321",
"friendly_name": "Friendly Name"
}
]
}