




3366 Members
OpenID Foundation approved Authorization API 1.0 as a Final Specification on January 12, 2026 with 81 approve, 1 object, and 25 abstain votes. The short name is AuthZEN. It standardizes how a Policy Enforcement Point (PEP) asks a Policy Decision Point (PDP) whether a subject may perform an action on a resource, and how the PEP discovers who or what else would be allowed.
This guide is for architects and developers who want the wire format, the five HTTPS endpoints, and working evaluation calls. Most of the post stays on the standard (policy languages and other vendors are out of scope). A short section at the end shows how to call a Permit PDP over AuthZEN, as shared in our docs.
AuthZEN defines the message exchange between PEP and PDP. The information model is small on purpose:
type, id, optional properties)name, optional properties)type, id, optional properties){ "decision": true | false } plus optional response contextIt deliberately does not standardize:
AuthZEN fixes the PEP-to-PDP request and response contract. The policy model, data model, and decision engine stay implementation choices. For the broader PEP/PDP split, see PEP, PDP, and decision logs. For how engines differ underneath, see OPA vs OpenFGA vs Cedar.
The HTTPS JSON binding maps to these default paths (PDPs may advertise different URLs in metadata):
| API | Default path | Purpose |
|---|---|---|
| Access Evaluation | POST /access/v1/evaluation |
One allow/deny decision |
| Access Evaluations | POST /access/v1/evaluations |
Batch (boxcar) many decisions |
| Subject Search | POST /access/v1/search/subject |
Who can do this on that resource? |
| Resource Search | POST /access/v1/search/resource |
Which resources can this subject act on? |
| Action Search | POST /access/v1/search/action |
Which actions can this subject take on that resource? |
PDP metadata is published at /.well-known/authzen-configuration. The required metadata fields are policy_decision_point and access_evaluation_endpoint. The evaluations and search endpoint fields are optional and appear when the PDP supports those APIs.
The spec keeps transport errors apart from decisions. A denied authorization request is still HTTP 200 with "decision": false, while HTTP 401 means the PEP failed to authenticate to the PDP, so your PEP should handle the two in different code paths.
Example evaluation request body, based on the spec example (context is optional):
{
"subject": { "type": "user", "id": "alice@example.com" },
"resource": { "type": "account", "id": "123" },
"action": { "name": "can_read" },
"context": { "time": "2026-11-23T09:00:00Z" }
}
Node example against a PDP base URL:
import { randomUUID } from "node:crypto";
type AuthZenDecision = { decision: boolean; context?: Record<string, unknown> };
async function evaluateAccess(input: {
pdpBaseUrl: string;
token: string;
subject: { type: string; id: string };
action: { name: string };
resource: { type: string; id: string };
context?: Record<string, unknown>;
}): Promise<AuthZenDecision> {
const pdpBaseUrl = input.pdpBaseUrl.replace(/\/+$/, "");
const res = await fetch(`${pdpBaseUrl}/access/v1/evaluation`, {
method: "POST",
headers: {
"content-type": "application/json",
authorization: `Bearer ${input.token}`,
"x-request-id": randomUUID(),
},
body: JSON.stringify({
subject: input.subject,
action: input.action,
resource: input.resource,
context: input.context,
}),
});
if (!res.ok) {
throw new Error(`AuthZEN transport error: ${res.status}`);
}
return (await res.json()) as AuthZenDecision;
}
// Usage in a route handler (PEP)
const decision = await evaluateAccess({
pdpBaseUrl: process.env.PDP_URL!,
token: process.env.PDP_TOKEN!,
subject: { type: "user", id: req.user.id },
action: { name: "can_read" },
resource: { type: "account", id: req.params.accountId },
});
if (!decision.decision) {
return new Response("Forbidden", { status: 403 });
}
package authzen
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
"strings"
)
type Subject struct {
Type string `json:"type"`
ID string `json:"id"`
}
type Action struct {
Name string `json:"name"`
}
type Resource struct {
Type string `json:"type"`
ID string `json:"id"`
}
type EvaluationRequest struct {
Subject Subject `json:"subject"`
Action Action `json:"action"`
Resource Resource `json:"resource"`
Context map[string]any `json:"context,omitempty"`
}
type Decision struct {
Decision bool `json:"decision"`
Context map[string]any `json:"context,omitempty"`
}
func Evaluate(client *http.Client, pdpBase, bearer, requestID string, req EvaluationRequest) (*Decision, error) {
body, err := json.Marshal(req)
if err != nil {
return nil, err
}
httpReq, err := http.NewRequest(http.MethodPost, strings.TrimRight(pdpBase, "/")+"/access/v1/evaluation", bytes.NewReader(body))
if err != nil {
return nil, err
}
httpReq.Header.Set("Content-Type", "application/json")
httpReq.Header.Set("Authorization", "Bearer "+bearer)
if requestID != "" {
httpReq.Header.Set("X-Request-ID", requestID)
}
res, err := client.Do(httpReq)
if err != nil {
return nil, err
}
defer res.Body.Close()
if res.StatusCode != http.StatusOK {
return nil, fmt.Errorf("authzen transport status %d", res.StatusCode)
}
var decision Decision
if err := json.NewDecoder(res.Body).Decode(&decision); err != nil {
return nil, err
}
return &decision, nil
}
Community libraries such as go-authzen wrap the same shapes. At the wire level, a PEP can point at another AuthZEN-compatible PDP without rewriting the HTTP ask. You still need the subject, action, and resource model (and policy semantics) to line up on both sides.
Evaluations (/access/v1/evaluations) let the PEP send many checks in one payload. Top-level subject, action, resource, and context act as defaults. Each item in evaluations can override them. Options include evaluations_semantic:
execute_all (default): return every decisiondeny_on_first_deny: stop early like &&permit_on_first_permit: stop early like ||Search requests leave out the part of the question you are asking about. Resource search answers "which accounts can Alice read?" and sends a resource with a type but no id. Subject search answers "who can read account 123?" and the spec says subject.id SHOULD be omitted. Action search answers "what can Alice do on account 123?" and leaves the action key out entirely. Results are meant to match later evaluation calls, though time-based policies can change between search and enforce. Pagination uses opaque page.next_token values, and the last page returns next_token as an empty string.
Decision logs still matter after the wire call succeeds. AuthZEN carries the question and the boolean. Your evidence trail should record subject, action, resource, context, decision, request ID, and whatever explanation or response context the PDP returns. See Why was this allowed?.
AuthZEN sits above the engine, so each engine keeps its own model:
| Engine style | What the PDP still owns | What AuthZEN standardizes |
|---|---|---|
| OPA / Rego | Policy bundles, input document mapping | Request/response JSON over HTTPS |
| Cedar | Policy set, entity store | Same wire ask/answer |
| Zanzibar / OpenFGA-style | Tuple store, rewrite rules | Same wire ask/answer, often with search mapped to list APIs |
A PEP written to AuthZEN can target any PDP that implements the binding. The hard work remains modeling subjects, resources, and actions so the PDP's native policy can answer them.
Start with /access/v1/evaluation. Add search when your UI needs "what can this user see?" Use batch evaluations when a screen needs many decisions at once. Profiles that build on the 1.0 decision model (for example richer decision context such as step-up hints) should be read from the AuthZEN specifications page as they advance. Do not treat drafts as part of the Final 1.0 API.
/.well-known/authzen-configuration when available.subject, action, and resource on every evaluation. When an AI agent acts for a user, make the agent its own subject with delegated, narrower scope. Letting agents inherit the user's full permissions is an anti-pattern.decision: false as deny in the application.As shared in our PDP overview, Permit PDPs (Cloud PDP, Edge PDP, and Nexus PDP) implement the OpenID AuthZEN Authorization API 1.0. Any AuthZEN client can send authorization requests to a Permit PDP. The Edge PDP runs in your own network with OPAL keeping its policy and data current, so AuthZEN checks can be answered next to the workload. The examples below match that page.
Point the request at your PDP URL. For a local Edge PDP mapped the usual way, that is http://localhost:7766. Send Authorization: Bearer YOUR_API_KEY, where YOUR_API_KEY is your environment API key (on Nexus PDP, use the Nexus PDP API key instead). The container PDP requires that bearer header on every AuthZEN endpoint. Discovery at GET /.well-known/authzen-configuration is the exception on Nexus PDP and the Cloud PDP: it answers without a token.
Access evaluation:
curl -X POST http://localhost:7766/access/v1/evaluation \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"subject": { "type": "user", "id": "alice@example.com" },
"action": { "name": "read" },
"resource": {
"type": "document",
"id": "doc123",
"properties": { "tenant": "default", "is_public": true }
}
}'
Response:
{"decision": true}
As shared in our docs, the PDP reads the tenant key from resource.properties as the tenant of the check, and passes the other keys in properties to the policy as resource attributes for ABAC. AuthZEN endpoints evaluate the same policies as the other PDP endpoints. A policy change in the Permit dashboard or API applies to AuthZEN requests after the change reaches the PDP.
To try AuthZEN against a Permit PDP, talk to our team or start with a free account.
AuthZEN standardizes the question a PEP asks and leaves policy modeling and deployment to you. If your PEPs and PDPs already agree on subject, action, resource, and context, most of the work for an interoperable Authorization API 1.0 client is done, and with Permit the same calls work against Cloud, Edge, and Nexus PDPs.

Co-Founder / CEO at Permit.io