Auth

Revoke a superseded private API key

Requires a stable Idempotency-Key and must be authenticated by a different verified owner key. The server refuses to revoke the current or only surviving key.

post/v1/auth/keys/{key_id}/revoke

Request

  • Base URL: https://api.agentry.sh
  • URL: https://api.agentry.sh/v1/auth/keys/{key_id}/revoke
  • Auth: HTTP bearer

Path parameters

key_idstring required

Headers

Idempotency-Keystring required

Stable 8-500 character command key. Preserve it only when replaying the exact same request; use a new key for a distinct command.

Request body

reasonstring required

Response

OK

key_idstring required
prefixstring required
revoked_atinteger required
idempotent_replayboolean required
next_actionstring required

Changes

No recorded changes to this operation across all 1 revision of this API.