Sample - Twilio API
GET/2010-04-01/Accounts/{AccountSid}/Addresses/{AddressSid}/DependentPhoneNumbers.json

List dependent phone numbers for an address

Lists dependent phone numbers associated with a specific address in an account. Use AccountSid and AddressSid to identify the account and address, and use pagination parameters to control the result page.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

5 parameters
AccountSidstringrequired
The account SID that created the dependent phone number resources. Must be a 34-character SID matching the `AC` account SID format.
AddressSidstringrequired
The address SID associated with the dependent phone numbers. Must be a 34-character SID matching the `AD` address SID format.
PageSizeintegeroptional
The number of resources to return per page. Defaults to 50 when omitted and must be between 1 and 1000.
Pageintegeroptional
The page index used to maintain client-side pagination state. Must be zero or greater.
PageTokenstringoptional
The pagination token provided by the API for retrieving a specific result page.

1 status code
200Returns a paginated response containing dependent phone number resources and page navigation metadata, including the current page, page size, and related page URIs.
endintegeroptional
first_page_uristringoptional
next_page_uristringoptional
pageintegeroptional
page_sizeintegeroptional
previous_page_uristringoptional
startintegeroptional
uristringoptional
dependent_phone_numbersarray<object>optional

Error handling

AccountSid must be a 34-character account SID beginning with AC, and AddressSid must be a 34-character address SID beginning with AD. PageSize must be between 1 and 1000, while Page must be zero or greater.