Skip to main content

Delete an API Key

Delete a Regular API Key (irreversible).

Request Parameters: None (key_id is in the path)

Response Example

{
"id": "key_01j...",
"deleted": true,
"success": true
}

After deletion, the Regular API Key is invalidated immediately; the detail and usage endpoints return 404 key_not_found, and the key no longer appears in the list.

Deletion Is Irreversible

Deletion is irreversible. After deletion, the Regular API Key is invalidated immediately and the auth cache is cleared immediately; old authorization is not allowed to continue. On a subsequent delete, if the original idempotency key is not reused, 404 key_not_found should be returned.

Related Endpoints

For general request conventions, data structures, and error codes, see the Key Management API overview.

Online Service