Skip to navigation

Revoke an API key and every key minted from it

Revokes the key at once. Requests that use it afterwards return 401. The key stays in GET /v1/keys with revoked_at set. Safe to call twice.

Every key minted from it is revoked in the same step, at any depth: the keys it minted, the keys those minted, and so on. parent_key_id on a key shows the tree. Before 2026-11-24 the minted keys stayed alive. A minted key that was live under a key revoked before that date is still live: revoke it by its own id.

Returns 409 when the revoke would leave the account with no admin key that is neither revoked nor expired. That counts the admin keys below this one, which would be revoked with it. Mint another admin key from a key that stays first.

Scope: admin.

Authentication

AuthorizationBearer

A Meadow API key, sent as Authorization: Bearer mdw_.... The header x-api-key: mdw_... is accepted in its place.

Path parameters

key_idstringRequired

The key id (key_...). The secret does not work here.

Response

Revoked. No body.

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error