Revoke a key immediately (takes effect within the 30s auth cache).
POST
/v1/abilities/key.revokeRevoke 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.
Request body
Section titled “Request body”inputKeyRevokeInputrequiredShow 3 properties
idstringrequiredKey id (key_…) from key.list.
reasonstringoptionalWhy (logged to the key’s event trail).
confirmSelfbooleanoptionalRequired to revoke the calling key itself.
contextCallContextoptionalOptional call context. The tenant always comes from the credential:
tenantIdis honoured only by a credential allowed to address sub-tenants, and then nests under the credential’s own tenant.Show 3 properties
tenantIdstringoptionalSub-tenant to act for (sub-tenant credentials only).
runIdstringoptionalThe trust run (from trust.preflight) this call executes under.
verticalIdstringoptionalVertical to attribute created records to.
Returns
Section titled “Returns”Schema shown for 200 · application/json
resultThe ability’s return value. Its shape depends on the ability.