Retrieve a single organization API key

GET /organization/admin_api_keys/{key_id}

Get details for a specific organization API key by its ID.

Path parameters

  • key_id string Required

    The ID of the API key.

Responses

  • 200 application/json

    Details of the requested API key.

    Hide response attributes Show response attributes object
    • object string
    • id string
    • name string
    • redacted_value string
    • value string
    • created_at integer(int64)
    • owner object
      Hide owner attributes Show owner attributes object
      • type string
      • id string
      • name string
      • created_at integer(int64)
      • role string
GET /organization/admin_api_keys/{key_id}
curl \
 --request GET 'https://api.openai.com/v1/organization/admin_api_keys/{key_id}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "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"
  }
}