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
WrapsPOST /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 theX-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):
Read next
- REST reference — every endpoint, field, and response shape
- Mandates — the JWT format and lifecycle
- API Reference — the full HTTP surface