Create an organization admin API key
Create a new admin-level API key for the organization.
post/organization/admin_api_keys
Request body
Example request
{
"name": "New Admin Key"
}Response
The newly created admin API key.
Example response
{
"id": "key_abc",
"name": "Administration Key",
"redacted_value": "sk-admin...def",
"created_at": 1711471533,
"last_used_at": 1711471534,
"owner": {
"type": "user",
"object": "organization.user",
"id": "sa_456",
"name": "My Service Account",
"created_at": 1711471533,
"role": "owner"
},
"value": "sk-admin-1234abcd"
}