GET
/
organization
/
admin_api_keys
curl --request GET \
  --url https://api.openai.com/v1/organization/admin_api_keys \
  --header 'Authorization: Bearer <token>'
{
  "object": "list",
  "data": [
    {
      "object": "organization.admin_api_key",
      "id": "key_abc",
      "name": "Administration Key",
      "redacted_value": "sk-admin...def",
      "value": "sk-admin-1234abcd",
      "created_at": 1711471533,
      "owner": {
        "type": "service_account",
        "id": "sa_456",
        "name": "My Service Account",
        "created_at": 1711471533,
        "role": "member"
      }
    }
  ],
  "has_more": false,
  "first_id": "key_abc",
  "last_id": "key_xyz"
}

Authorizations

Authorization
string
header
required

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

Query Parameters

after
string | null

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

order
enum<string>
default:asc

Order results by creation time, ascending or descending.

Available options:
asc,
desc
limit
integer
default:20

Maximum number of keys to return.

Response

200 - application/json

A list of organization API keys.

The response is of type object.