---
title: "Simulate all active policies (Evaluation+)"
method: POST
path: "/api/v1/policies/simulate"
tags: ["Policy Simulation"]
deprecated: true
---

# Simulate all active policies (Evaluation+)

`POST /api/v1/policies/simulate`

## Request

- Base URL: `https://orchestrator.getaxonflow.com`
- URL: `https://orchestrator.getaxonflow.com/api/v1/policies/simulate`
- Auth: one of:
  - HTTP bearer
  - HTTP basic
- TypeScript: <https://skmtc.dev/getaxonflow/apis/axonflow-orchestrator-api/docs/api/v1/policies/simulate/post.ts> (a function with typed inputs; its response is checked against the schema)

> **Deprecated.**

Runs all active policies against the provided input as a dry run.
No audit writes or action application. Requires Evaluation or Enterprise license.

## Request body

- object
  - `query` string, required: The input text to simulate against all policies
  - `request_type` string: Request type (defaults to "simulation")
  - `user` UserContext
    - `id` integer
    - `email` string
    - `role` string
    - `region` string: User's region, read by geo-based routing policies.
    - `permissions` string[]
    - `tenant_id` string
    - `org_id` string: Organisation for multi-tenant isolation, populated from the X-Org-ID header the agent stamps on the trusted hop.
  - `client` ClientContext
    - `id` string
    - `name` string
    - `org_id` string
    - `tenant_id` string
  - `context` object

## Response `200`

Simulation results

- object
  - `allowed` boolean
  - `applied_policies` string[]
  - `risk_score` number
  - `required_actions` string[]
  - `processing_time_ms` integer
  - `total_policies` integer: Number of active policies visible to the calling tenant — its own plus the shared global/default baseline. CHANGED: this previously counted every active policy in the deployment, across all tenants, which disclosed the deployment-wide policy count to every caller.
  - `dry_run` true
  - `simulated_at` string, date-time
  - `tier` string
  - `daily_usage` object
    - `used` integer
    - `limit` integer

## Other responses

- `403`: Feature requires Evaluation or Enterprise license
- `429`: Daily simulation limit exceeded

---

[API](https://skmtc.dev/getaxonflow/apis/axonflow-orchestrator-api.md) - [All operations](https://skmtc.dev/getaxonflow/apis/axonflow-orchestrator-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getaxonflow/apis/axonflow-orchestrator-api/revisions/f408ef3ec9dd?raw)
