GET/organization/admin_api_keys

List organization and project API keys

Lists organization API keys, including keys associated with projects. Use after to continue from a key ID and order to control creation-time sorting. The response includes pagination metadata to help you determine whether more keys are available.

3 parameters
afterstringoptional
Key ID cursor; returns keys with IDs that follow this value in the pagination order.
orderstringoptional
Sort order by creation time: `asc` or `desc`. Defaults to `asc` when omitted.
Allowed:ascdescDefault:asc
limitintegeroptional
Maximum number of keys to return. Defaults to 20 when omitted.
Default:20

3 status codes
200Returns a list of organization API key objects with pagination metadata, including whether more results are available and the first and last IDs.
objectstringrequired
Allowed:list
dataarray<object>required
has_morebooleanrequired
first_idstringoptional
last_idstringoptional
400Returned when the API key listing parameters are invalid.
errorobjectrequired
403Returned when the caller does not have permission to perform this operation.
errorobjectrequired
Details about the permission error.

Error handling

A 400 is returned when the listing parameters are invalid. A 403 is returned when the caller does not have permission to list API keys. order must be asc or desc.