Issue and verify offline cryptographic enterprise licenses
Issue cryptographically signed software and model licenses via POST /v1/licensing/issue and verify them offline against GET /v1/licensing/pubkey.
Monetize air-gapped and on-premise deployments without phone-home telemetry. /v1/licensing issues asymmetric signed license tokens your binary can verify completely offline against your public key or JWKS.
Architecture & contract
Issue signed entitlements containing org, seat/GPU caps, and expiry via POST /v1/licensing/issue. Ship the matching public key (GET /v1/licensing/pubkey or /v1/licensing/jwks) inside your self-hosted binary for zero-egress verification.
Primary endpoint: POST /v1/licensing/issue · Status: shipped · Level: architect
Run it across all four surfaces
CLI
SDK
HTTP
MCP
hanzo licensing pubkey
hanzo licensing releases listTypeScript
Python
import { Configuration, LicensingApi } from 'hanzoai';
const lic = new LicensingApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const [pubkey, releases] = await Promise.all([
lic.getLicensingPubkey(),
lic.getLicensingReleases(),
]);
console.log({ pubkey: pubkey.data, releases: releases.data });import os
from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import LicensingApi
api = LicensingApi(ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"])))
print(api.get_licensing_pubkey())
print(api.get_licensing_releases())# Retrieve public verification key & JWKS
curl -s https://api.hanzo.ai/v1/licensing/pubkey \
-H "Authorization: Bearer $HANZO_API_KEY" | jq '.'
# Verify a presented license token
curl -s -X POST https://api.hanzo.ai/v1/licensing/verify \
-H "Authorization: Bearer $HANZO_API_KEY" -H "Content-Type: application/json" \
-d '{"license":"<signed-license-token>"}' | jq '.'curl -s -X POST https://api.hanzo.ai/v1/mcp \
-H "Authorization: Bearer $HANZO_API_KEY" -H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "licensing",
"arguments": {"op": "get_licensing_releases", "input": {}}
}
}'Verify the outcome
- Verify a newly issued license validates cleanly both via
POST /v1/licensing/verifyand offline againstGET /v1/licensing/pubkey.
Production guardrails
- Rotate signing keys cleanly through
/v1/licensing/jwkswith overlapping validity windows so air-gapped customers never face sudden lockouts.
Next steps & Hanzo University
Was this page useful?
Broken link or missing step? Drop it in #docs on Discord or open a PR.