DELETE/api/v1/admin/keys/{key_id}
Admin keys only%!(EXTRA string=)MCP tool: revoke_admin_key
operationId revoke_admin_key
Revoke an admin key
Revokes the admin key for good, the caller’s own included. Records
key.revoked. Revoking a revoked key changes nothing. The last usable
admin key is not revoked: create another first. Admin keys only.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
key_idrequired |
path | string · uuid | The key’s id |
Request body
None.
Responses
204
The key is revoked
No content.
429
The key is over its rate limit, api.rate_limit_per_minute requests a minute on this node (rate_limited)
| Header | Type | Description |
|---|---|---|
Retry-After | integer | Seconds until the key’s next request passes; rounded up. |
504
Postwind’s storage did not answer within its time limit (storage_timeout). A change the request makes may still take effect: check before repeating it. A repeat with the same Idempotency-Key never runs it twice: it is 409 idempotency_key_in_progress until the key’s 24 h end