Skip to content
View as Markdown

Revoke a key immediately (takes effect within the 30s auth cache).

POST/v1/abilities/key.revoke

Revoke a key immediately (takes effect within the 30s auth cache). Admin, or the key’s own tenant. Revoking the key you are calling with needs confirmSelf:true. Auth-required.

Required
Yes
Content type
  • application/json
  • inputKeyRevokeInputrequired
    Show 3 properties
    • idstringrequired

      Key id (key_…) from key.list.

    • reasonstringoptional

      Why (logged to the key’s event trail).

    • confirmSelfbooleanoptional

      Required to revoke the calling key itself.

  • contextCallContextoptional

    Optional call context. The tenant always comes from the credential: tenantId is honoured only by a credential allowed to address sub-tenants, and then nests under the credential’s own tenant.

    Show 3 properties
    • tenantIdstringoptional

      Sub-tenant to act for (sub-tenant credentials only).

    • runIdstringoptional

      The trust run (from trust.preflight) this call executes under.

    • verticalIdstringoptional

      Vertical to attribute created records to.

Schema shown for 200 · application/json

  • result

    The ability’s return value. Its shape depends on the ability.