Delete an organization admin API key

DELETE /organization/admin_api_keys/{key_id}

Delete the specified admin API key.

Path parameters

  • key_id string Required

    The ID of the API key to be deleted.

Responses

  • 200 application/json

    Confirmation that the API key was deleted.

    Hide response attributes Show response attributes object
    • id string
    • object string
    • deleted boolean
DELETE /organization/admin_api_keys/{key_id}
curl \
 --request DELETE 'https://api.openai.com/v1/organization/admin_api_keys/{key_id}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "id": "key_abc",
  "object": "organization.admin_api_key.deleted",
  "deleted": true
}