Fetch a specific Phone Number.
Fetch a specific Phone Number.
Path parameters
-
The SID of the parent Service of the PhoneNumber resource to fetch.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^KS[0-9a-fA-F]{32}$
. -
The Twilio-provided string that uniquely identifies the PhoneNumber resource to fetch.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^PN[0-9a-fA-F]{32}$
.
GET
/v1/Services/{ServiceSid}/PhoneNumbers/{Sid}
curl \
--request GET 'https://proxy.twilio.com/v1/Services/{ServiceSid}/PhoneNumbers/{Sid}' \
--user "username:password"
Response examples (200)
{
"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": "12345",
"friendly_name": "Friendly Name"
}