Avnology ID
API ReferencePolicy

Simulate & Evaluate

Dry-run a policy against a synthetic context, or live-evaluate the active policy stack.

RPCs

MethodPath
SimulatePolicyPOST /v1/policies/{id}:simulate
EvaluatePolicyPOST /v1/policies:evaluate

Base URL: https://<Domain id="api"/>

Authentication: Bearer token with policy:read.

Simulate -- test one policy

Returns whether a given policy would fire for a synthetic context. Use in policy authoring to avoid deploying a rule that silently matches every login.

Evaluate -- run the full stack

POST /v1/policies:evaluate runs every active policy against a live context and returns the first matching effect, or ALLOW if none match. Use in a webhook or your own middleware when you need policy decisions outside the built-in auth flow.

Response:

{
  "matched_policy_id": "pol_01H7X3K9Q1",
  "effect": "REQUIRE_MFA",
  "reasons": [
    "condition user_group matched: admins",
    "condition network matched: not in 10.0.0.0/8"
  ]
}

Policy CRUD

Create, list, update, and delete conditional-access policies.

Feature Flag

Toggle Avnology platform capabilities (early features, experimental flows) on a per-org basis.

On this page