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 all authenticated routes — validated before authentication (middleware/tenant.ts), so a missing or non-UUID header returns 400 (MISSING_TENANT_ID / INVALID_TENANT_ID) before the API key is checked.

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

Response

Response from policy evaluation endpoint

Response from policy evaluation endpoint

result
object
required

Result of a policy evaluation

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