DELETE
/
organization
/
admin_api_keys
/
{key_id}
curl --request DELETE \
  --url https://api.openai.com/v1/organization/admin_api_keys/{key_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "key_abc",
  "object": "organization.admin_api_key.deleted",
  "deleted": true
}

Authorizations

Authorization
string
header
required

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

Path Parameters

key_id
string
required

The ID of the API key to be deleted.

Response

200 - application/json

Confirmation that the API key was deleted.

The response is of type object.