Policy Editor

The Policy Editor is where you define the verification rules that the Autheona Intelligence API applies to each request. Unlike traditional APIs with fixed endpoints, Autheona uses a policy-based approach where you explicitly specify which checks to perform.

What Is a Policy?

A policy is a configuration that defines:

  • Which verification rules the API applies
  • How rules are combined (e.g., "all must pass" vs "any must pass")
  • Parameters and thresholds for each rule
  • References to custom data lists

When you make a verification request, you reference a policy by name. The API evaluates the input against the policy rules and returns results based on your configuration.

Editor Interface

The Policy Editor consists of two panels:

PanelPurpose
EditorA code editor where you define policy rules using JSON or JSON5 format
PreviewA tree view showing the parsed policy structure in a readable format

Both panels update in real time as you type, allowing you to see the policy structure immediately.

Editor Panel

Supported Formats

The editor accepts policies in both JSON and JSON5 formats:

  • JSON - Standard JSON syntax with strict quoting and comma rules
  • JSON5 - Extended JSON with relaxed syntax

Inline Linting

The editor provides real-time validation:

  • Syntax errors - Invalid JSON/JSON5 syntax is highlighted immediately
  • Linting errors - Policy structure violations and invalid rule configurations are flagged

Hover over errors to see detailed error messages. This real-time validation helps you catch issues before attempting to save the policy.

Policy Naming and Structure Rules

For details on policy naming conventions, structure, and available rule types, see the Policy Structure documentation.

Rule Limits

The number of rules you can define in a policy depends on your subscription plan. For specific rule limits by plan, see the Pricing page.

Preview Panel

The Preview panel renders your policy as an interactive tree view:

  • Root nodes show top-level policy configuration
  • Child nodes show individual rules and their parameters
  • Expandable sections let you navigate complex policy structures

The preview helps you verify that your policy is structured correctly before saving.

Policy Changes Take Effect Immediately

Important

When you save a policy, changes are applied instantly with no delay or deployment process. New verification requests immediately use the updated policy.

Workflow

A typical policy editing workflow:

  1. Open the Policy Editor
  2. Define rules in the Editor panel
  3. Check the Preview panel to verify structure
  4. Address any syntax or linting errors displayed in the editor
  5. Save the policy
  6. Changes take effect immediately. New API requests will use the updated policy.