Skip to main content
Inviolet does not ship a first-party Python package. From Python you call the gateway’s REST API directly — the same endpoints the Node client wraps. The examples below use httpx, but any HTTP client works.

Setup

Mint a mandate

Wraps POST /v1/mandate/dispense. The requested scope must be a subset of the intent card’s allowed scope.

Guard a tool call

Attach the mandate JWT as the X-Inviolet-Mandate header and post the action to the decision engine.

Verifying mandates yourself

The gateway publishes its public keys at /v1/mandate/jwks. Verify the RS256 signature locally with any JWT library (e.g. pyjwt + PyJWKClient):