Testing

Test input against all active policies (legacy)

Legacy endpoint. Evaluates the supplied input against all active dynamic policies and returns the raw policy evaluation result. Prefer POST /api/v1/policies/simulate (dry-run semantics, tier-aware) or POST /api/v1/dynamic-policies/{id}/test (single-policy testing).

post/api/v1/policies/test

Request

Request body

querystring

Sample query to test against

request_typestring

Type of request being simulated

Example request

{
  "user": {
    "email": "analyst@company.com",
    "role": "analyst"
  }
}

Response

Policy evaluation result

allowedboolean
applied_policiesstring[]
risk_scorenumber float
severitystring

Highest severity of matched policies: critical, high, medium, low

required_actionsstring[]
processing_time_msinteger

Changes

No recorded changes to this operation across all 1 revision of this API.