v32

latestOpenAPI 3.1.0MITraw.githubusercontent.com2026-07-312881,4162.7 MB

List all organization and project API keys.

List organization API keys

get/organization/admin_api_keys

Query parameters

afterstring nullable

Return keys with IDs that come after this ID in the pagination order.

order'asc' | 'desc'

Order results by creation time, ascending or descending.

limitinteger

Maximum number of keys to return.

Response

A list of organization API keys.

object'list' required
has_moreboolean required
first_idstring nullable
last_idstring nullable

Example response

{
  "object": "list",
  "data": [
    {
      "id": "key_abc",
      "name": "Administration Key",
      "redacted_value": "sk-admin...def",
      "created_at": 1711471533,
      "expires_at": 1714063533,
      "last_used_at": 1711471534,
      "owner": {
        "type": "user",
        "object": "organization.user",
        "id": "sa_456",
        "name": "My Service Account",
        "created_at": 1711471533,
        "role": "owner"
      }
    }
  ],
  "first_id": "key_abc",
  "last_id": "key_xyz"
}