Fetch an incoming-phone-number belonging to the account used to make the request
Incoming phone numbers on a Twilio account/project
Fetch an incoming-phone-number belonging to the account used to make the request.
Path parameters
-
The SID of the Account that created the IncomingPhoneNumber resource to fetch.
-
The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to fetch.
GET /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json
curl \
-X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json \
--user "username:password"
Response examples (200)
{
"account_sid": "string",
"address_requirements": "none",
"address_sid": "string",
"api_version": "string",
"beta": true,
"bundle_sid": "string",
"capabilities": {
"fax": true,
"mms": true,
"sms": true,
"voice": true
},
"date_created": "string",
"date_updated": "string",
"emergency_address_sid": "string",
"emergency_address_status": "registered",
"emergency_status": "Active",
"friendly_name": "string",
"identity_sid": "string",
"origin": "string",
"phone_number": "string",
"sid": "string",
"sms_application_sid": "string",
"sms_fallback_method": "HEAD",
"sms_fallback_url": "https://example.com",
"sms_method": "HEAD",
"sms_url": "https://example.com",
"status": "string",
"status_callback": "https://example.com",
"status_callback_method": "HEAD",
"trunk_sid": "string",
"uri": "https://example.com",
"voice_application_sid": "string",
"voice_caller_id_lookup": true,
"voice_fallback_method": "HEAD",
"voice_fallback_url": "https://example.com",
"voice_method": "HEAD",
"voice_receive_mode": "voice",
"voice_url": "https://example.com"
}
Response examples (200)
{
"account_sid": "string",
"address_requirements": "none",
"address_sid": "string",
"api_version": "string",
"beta": true,
"bundle_sid": "string",
"capabilities": {
"fax": true,
"mms": true,
"sms": true,
"voice": true
},
"date_created": "string",
"date_updated": "string",
"emergency_address_sid": "string",
"emergency_address_status": "registered",
"emergency_status": "Active",
"friendly_name": "string",
"identity_sid": "string",
"origin": "string",
"phone_number": "string",
"sid": "string",
"sms_application_sid": "string",
"sms_fallback_method": "HEAD",
"sms_fallback_url": "https://example.com",
"sms_method": "HEAD",
"sms_url": "https://example.com",
"status": "string",
"status_callback": "https://example.com",
"status_callback_method": "HEAD",
"trunk_sid": "string",
"uri": "https://example.com",
"voice_application_sid": "string",
"voice_caller_id_lookup": true,
"voice_fallback_method": "HEAD",
"voice_fallback_url": "https://example.com",
"voice_method": "HEAD",
"voice_receive_mode": "voice",
"voice_url": "https://example.com"
}