Create an organization admin API key

Create a new admin-level API key for the organization.

post/organization/admin_api_keys

Request body

namestring required

Example request

{
  "name": "New Admin Key"
}

Response

The newly created admin API key.

objectstring
idstring
namestring
redacted_valuestring
valuestring
created_atinteger

Example response

{
  "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"
  }
}

Changes