curl --request GET \
--url https://api.openai.com/v1/organization/admin_api_keys/{key_id} \
--header 'Authorization: Bearer <token>'
{
"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"
}
}
Get details for a specific organization API key by its ID.
curl --request GET \
--url https://api.openai.com/v1/organization/admin_api_keys/{key_id} \
--header 'Authorization: Bearer <token>'
{
"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"
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The ID of the API key.
Details of the requested API key.
The response is of type object
.
Was this page helpful?