Skip to content
Primary navigation

Delete admin API key

DELETE/organization/admin_api_keys/{key_id}

Delete an organization admin API key

Path ParametersExpand Collapse
key_id: string

The ID of the API key to be deleted.

ReturnsExpand Collapse
id: optional string
deleted: optional boolean
object: optional string

Delete admin API key

curl -X DELETE https://api.openai.com/v1/organization/admin_api_keys/key_abc \
  -H "Authorization: Bearer $OPENAI_ADMIN_KEY" \
  -H "Content-Type: application/json"
{
  "id": "key_abc",
  "object": "organization.admin_api_key.deleted",
  "deleted": true
}
Returns Examples
{
  "id": "key_abc",
  "object": "organization.admin_api_key.deleted",
  "deleted": true
}