POST
/
organization
/
admin_api_keys
Create an organization admin API key
curl --request POST \
  --url https://api.openai.com/v1/organization/admin_api_keys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "New Admin Key"
}'
{
  "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"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200 - application/json

The newly created admin API key.

The response is of type object.