Documentation
Authorization infrastructure for AI agents. Lock down what your agents can do before they do it — with cryptographic audit trails and real-time policy enforcement.
Quickstart
Install the SDK, get an API key, and authorize your first AI agent action in under 5 minutes.
Core Concepts
Understand agents, actions, resources, policies, decisions, permits, and the audit log.
SDK Reference
TypeScript, Python, Rust, and Go SDK docs with full type signatures and method reference.
Policy Language
JSON-based policy syntax: rules, conditions, effects, rate limits, budget constraints.
API Reference
Full REST API: decisions, policies, audit log, Merkle proofs. Every endpoint documented.
Webhooks
Subscribe to real-time events: decisions, budget thresholds, policy changes, security alerts.
Error Codes
Complete error code reference with causes, HTTP status codes, and resolution steps.
Migration Guide
Coming from OPA, Auth0 FGA, Permit.io, or homegrown auth? Step-by-step migration paths.
Quick Install
npm install @permitnetworks/sdkpip install permitnetworkscargo add permitnetworksWhat's New
- +Rust SDK reaches 0.3.0 — zero-allocation, WASM-compatible
- +Audit log Merkle proofs via GET /v1/audit/:id/proof
- +Budget webhooks: budget.threshold and budget.exceeded events
- +Policy conflict detection on create/update
- +Decision confirm/reject lifecycle (POST /v1/decisions/:id/confirm)
- +Python SDK async support with httpx transport
- +Rate limit conditions in policy rules
- +Webhook signature verification (HMAC-SHA256)