Skip to navigation

List API Keys

Lists every credential, newest first. Filter one family with type. Page to token exhaustion: a page can be empty and still carry a next_page_token.

CLI:

agentmail api-keys list

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Query parameters

typeenumOptional
Restrict the list to one credential family. Omit for every family.
Allowed values:
limitintegerOptional
Limit of number of items returned.
page_tokenstringOptional
Page token for pagination.
ascendingbooleanOptional
Sort in ascending temporal order.

Response

This endpoint returns an object.
countinteger
Number of items returned.
api_keyslist of objects

Every credential family, ordered by created_at. type restricts to one family.

next_page_tokenstringOptional
Page token for pagination.