Skip to main content
POST
Evaluate policies (dry-run)

Authorizations

Authorization
string
header
required

MeshQu API key passed as a bearer token: Authorization: Bearer mqu_…. Mint one in the console (Settings → API keys).

X-MeshQu-Tenant-Id
string
header
required

Tenant UUID for multi-tenant isolation. Required on authenticated routes. A missing or non-UUID value returns 400 MISSING_TENANT_ID or INVALID_TENANT_ID before API-key authentication.

Body

application/json

Request to evaluate policies against a decision context

Request to evaluate policies against a decision context

context
object
required

Canonical DecisionContext for policy evaluation

options
object
action
object

Action bound to this decision receipt

source
any

Accepted and not read.

Response

Response from policy evaluation endpoint

Response from policy evaluation endpoint

result
object
required

Result of a dry-run policy evaluation — a preview, never a receipt

snapshot
object
required
duration_ms
number
required

Total request duration in milliseconds

shadow_mode
object
required
governance_source
object
required

Attribution of which tenant policies governed this decision

timing
object

Per-phase timing breakdown for the evaluation

governance_coverage
object

UNSIGNED response-envelope advisory, not a receipt field. Present only when no applicable rule was evaluated. Stripping it does not change the signed payload; treating its absence as permission is a client error.

rule_sources
object

Rule code to the source reference its author recorded. Present only when at least one rule in the governing snapshot carries one. Not part of the signed result: join it to violations[].rule_code or na_rules[].rule_code.