Hanzo
OpenapiLicensing

Revoke turns off tokens that have already been issued.

Revoke turns off tokens that have already been issued.

POST /v1/licensing/revoke

Addresshttps://api.hanzo.ai/v1/licensing/revoke
MethodPOST
Operationpost_licensing_revoke
AuthAuthorization: Bearer $HANZO_API_KEY

Revoke turns off tokens that have already been issued.

A signed token cannot be un-signed, so revocation is the only way to withdraw one: this appends an entry that verify and the license-gated download both consult. It is a POST rather than a DELETE because it APPENDS a durable, attributed record — the entry names the admin who recorded it and when — rather than removing one.

Org-admin only. Scope it as narrowly as the incident allows: "nonce" for one leaked token, "holder" for one compromised account, "fingerprint" for one stolen machine, "release" when a whole build is bad.

Request

3 fields, body application/json (required).

FieldInTypeRequiredDescription
reasonbodystringReason is the operator's note, echoed back by verify so a support agent can explain the refusal.
scopebodystringyesScope is what the revocation matches on: "nonce" kills one token, "holder" every token issued to one bearer, "fingerprint" every token bound to one device, and…
valuebodystringyesValue is the concrete nonce, holder, fingerprint or release id to revoke.

Response

StatusBodyMeaning
200licensing.RevokeResponseok

200 body — 7 fields.

FieldInTypeAlwaysDescription
entrybodylicensing.RevocationEntry
entry.atbodyinteger
entry.bybodystring
entry.reasonbodystring
entry.scopebodystring
entry.valuebodystring
revokedbodybooleanRevoked is always true — a failure is an error status, not a false here.

Failure carries the platform error shape — see Errors.

Examples

hanzo licensing revoke \
  --scope <scope> \
  --value <value>

Licensing API · All Hanzo APIs · Interactive reference

How is this guide?

On this page