Sample - Twilio API
GET/2010-04-01/Accounts.json

List accounts

Lists the Accounts available to the account used to make the request. Use FriendlyName and Status to filter results, and use Page, PageSize, and PageToken to control pagination.

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

5 parameters
FriendlyNamestringoptional
Filters accounts to those whose friendly names exactly match the supplied value.
Statusstringoptional
Filters accounts by status: active, suspended, or closed.
Allowed:activesuspendedclosed
PageSizeintegeroptional
Number of resources to return on each page. Must be between 1 and 1000 and defaults to 50 when omitted.
Pageintegeroptional
Page index used to maintain client-side pagination state. Must be zero or greater.
PageTokenstringoptional
Pagination token provided by the API for retrieving a specific page.

1 status code
200Returns a paginated response containing an `accounts` array and pagination metadata, including page links, page boundaries, and page size.
endintegeroptional
first_page_uristringoptional
next_page_uristringoptional
pageintegeroptional
page_sizeintegeroptional
previous_page_uristringoptional
startintegeroptional
uristringoptional
accountsarray<object>optional

Error handling

Status must be one of active, suspended, or closed. PageSize must be between 1 and 1000, and Page must be zero or greater; PageSize defaults to 50 when omitted.