Sample - OpenAI API
DELETE/organization/admin_api_keys/{key_id}

Delete an organization admin API key

Deletes an organization admin API key identified by its key ID. Supply key_id for the key you want to remove and use the returned confirmation to verify that deletion completed.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

1 parameter
key_idstringrequired
The identifier of the organization API key to delete.

1 status code
200Returns a deletion confirmation containing the API key `id`, the deleted object type, and a boolean `deleted` value.
idstringrequired
objectstringrequired
Allowed:organization.admin_api_key.deleted
deletedbooleanrequired

Error handling

key_id must identify the organization API key you want to delete. The response confirms deletion through the key identifier, deleted object type, and deleted status.