API Reference
The PermitNetworks REST API. All endpoints require authentication via API key in the Authorization header.
Base URL: https://api.permitnetworks.com/v1/authorizeSubmit an authorization request for evaluation. Returns an allow or deny decision with the applied policy trace, latency metrics, and a signed decision token.
Parameters
agent_idstringThe agent requesting authorizationactionstringThe action to authorize (e.g., "spend", "read", "execute")resourcestringThe target resource identifiercontextobjectAdditional context for policy evaluation/v1/decisionsQuery historical authorization decisions with filtering by agent, action, outcome, and time range. Supports pagination and full-text search on decision metadata.
Parameters
agent_idstringFilter by agent identifieroutcomestringFilter by "allow" or "deny"fromISO 8601Start of time rangelimitintegerResults per page (default: 50, max: 1000)/v1/policiesCreate or update an authorization policy. Policies are versioned and can be rolled back. Supports allow/deny rules, budget constraints, rate limits, and scope definitions.
Parameters
namestringHuman-readable policy namerulesarrayArray of policy rules with conditions and effectspriorityintegerEvaluation order priority (lower = first)/v1/agentsList all registered agents with their current status, assigned policies, spending totals, and decision statistics. Supports filtering by tag and status.
Parameters
statusstringFilter by "active", "suspended", or "all"tagstringFilter by agent tagAuthentication
All API requests require an API key passed in the Authorization header. API keys are scoped per environment (development, staging, production) and can be created in the dashboard.
Authorization: Bearer pn_live_sk_...