Sample - Twilio API
GET/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json

List outgoing caller IDs

Lists outgoing caller IDs belonging to an account. Use PhoneNumber or FriendlyName to filter the collection, and use PageSize, Page, and PageToken to navigate the results.

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

6 parameters
AccountSidstringrequired
The account SID whose outgoing caller IDs to list. Must be a 34-character SID matching the `AC` prefix format.
PhoneNumberstringoptional
Filter results by the outgoing caller ID phone number in phone-number format.
FriendlyNamestringoptional
Filter results by the string assigned as the outgoing caller ID name.
PageSizeintegeroptional
The number of resources to return per page. Must be between 1 and 1000, and defaults to 50 when omitted.
Pageintegeroptional
The page index used for client-side pagination state. Must be zero or greater when supplied.
PageTokenstringoptional
The pagination token provided by the API for retrieving another page.

1 status code
200Returns a paginated collection of outgoing caller IDs with page links, page indexes, page size, result bounds, and an `outgoing_caller_ids` array.
endintegeroptional
first_page_uristringoptional
next_page_uristringoptional
pageintegeroptional
page_sizeintegeroptional
previous_page_uristringoptional
startintegeroptional
uristringoptional
outgoing_caller_idsarray<object>optional

Error handling

AccountSid must be a 34-character account SID beginning with AC. PageSize must be between 1 and 1000, and Page must be zero or greater when supplied.