---
title: "Test-evaluate policy rules"
method: POST
path: "/api/v1/policy/automation/evaluate"
tags: ["Policy Rules"]
---

# Test-evaluate policy rules

`POST /api/v1/policy/automation/evaluate`

## Request

- Base URL: `https://api.tuteliq.ai`
- URL: `https://api.tuteliq.ai/api/v1/policy/automation/evaluate`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

Evaluate your policy rules against a mock detection result. Useful for testing rules before going live.

## Request body

- object
  - `endpoint` string, required
  - `risk_score` number, required
  - `severity` 'low' | 'medium' | 'high' | 'critical', required
  - `categories` string[], required
  - `age_group` string

## Response `200`

Default Response

- object
  - `success` boolean
  - `evaluation` object
    - `rules_evaluated` integer
    - `rules_matched` object[]
      - `rule_id` string
      - `rule_name` string
      - `action` string
      - `priority` integer
    - `policy_action` string
    - `policy_message` string
    - `applied_rule` string

---

[API](https://skmtc.dev/tuteliq/apis/tuteliq-api.md) · [All operations](https://skmtc.dev/tuteliq/apis/tuteliq-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tuteliq/apis/tuteliq-api/revisions/8490332e0031?raw)
