List dependent phone number
Phone numbers dependent on an Address resource
Path parameters
-
The SID of the Account that created the DependentPhoneNumber resources to read.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^AC[0-9a-fA-F]{32}$
. -
The SID of the Address resource associated with the phone number.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^AD[0-9a-fA-F]{32}$
.
GET
/2010-04-01/Accounts/{AccountSid}/Addresses/{AddressSid}/DependentPhoneNumbers.json
curl \
--request GET 'https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Addresses/{AddressSid}/DependentPhoneNumbers.json' \
--user "username:password"
Response examples (200)
Read full
{
"end": 0,
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Addresses/ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/DependentPhoneNumbers.json?PageSize=50&Page=0",
"page": 0,
"start": 0,
"page_size": 50,
"next_page_uri": null,
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Addresses/ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/DependentPhoneNumbers.json?PageSize=50&Page=0",
"previous_page_uri": null,
"dependent_phone_numbers": [
{
"sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
"sms_url": "https://demo.twilio.com/welcome/sms/reply",
"trunk_sid": "APaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa5",
"voice_url": "https://hurl.twilio.com/welcome/voice/",
"sms_method": "POST",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"api_version": "2010-04-01",
"capabilities": {
"MMS": false,
"SMS": true,
"Voice": false
},
"date_created": "Thu, 23 Feb 2017 18:26:31 +0000",
"date_updated": "Thu, 23 Feb 2017 18:26:31 +0000",
"phone_number": "+1111111111",
"voice_method": "POST",
"friendly_name": "3197004499318",
"status_callback": "https://status.twilio.com/welcome/sms/reply",
"emergency_status": "Inactive",
"sms_fallback_url": "https://sms-fallback.twilio.com/welcome/sms/reply",
"voice_fallback_url": "https://voice-fallback.twilio.com/welcome/sms/reply",
"sms_application_sid": "APaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa2",
"sms_fallback_method": "POST",
"address_requirements": "any",
"emergency_address_sid": "ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"voice_application_sid": "APaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1",
"voice_fallback_method": "POST",
"status_callback_method": "POST",
"voice_caller_id_lookup": false
}
]
}
{
"end": 0,
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Addresses/ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/DependentPhoneNumbers.json?PageSize=50&Page=0",
"page": 0,
"start": 0,
"page_size": 50,
"next_page_uri": null,
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Addresses/ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/DependentPhoneNumbers.json?PageSize=50&Page=0",
"previous_page_uri": null,
"dependent_phone_numbers": []
}