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

List API keys

Lists the API Keys created for an account. Use PageSize, Page, and PageToken to control list pagination and retrieve subsequent pages.

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

4 parameters
AccountSidstringrequired
The account SID whose API Keys to list, matching the 34-character `AC` SID format.
PageSizeintegeroptional
The number of API Keys to return per page. Defaults to 50 when omitted and must be between 1 and 1000.
Pageintegeroptional
The zero-based page index used for client-side pagination. Must be zero or greater when supplied.
PageTokenstringoptional
The pagination token provided by the API for retrieving a specific subsequent page.

1 status code
200Returns a paginated object containing API Key resources in `keys`, along with page indexes, resource counts, and navigation URIs.
endintegeroptional
first_page_uristringoptional
next_page_uristringoptional
pageintegeroptional
page_sizeintegeroptional
previous_page_uristringoptional
startintegeroptional
uristringoptional
keysarray<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.