Retrieve admin API key

GEThttps:/api.openai.com/v1/organization/admin_api_keys/{key_id}

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

Path parameters

  • key_id
    string
    Required

Response

The requested AdminApiKey object.

Example request
1
curl https://api.openai.com/v1/organization/admin_api_keys/key_abc \
2
-H "Authorization: Bearer $OPENAI_ADMIN_KEY" \
3
-H "Content-Type: application/json"
Example response
1
{
2
"object": "organization.admin_api_key",
3
"id": "key_abc",
4
"name": "Main Admin Key",
5
"redacted_value": "sk-admin...xyz",
6
"created_at": 1711471533,
7
"last_used_at": 1711471534,
8
"owner": {
9
"type": "user",
10
"object": "organization.user",
11
"id": "user_123",
12
"name": "John Doe",
13
"created_at": 1711471533,
14
"role": "owner"
15
}
16
}
Built with