---
title: "Preview escalation rule"
method: POST
path: "/api/escalation-rules/preview"
tags: ["Escalation Rules"]
---

# Preview escalation rule

`POST /api/escalation-rules/preview`

## Request

- Base URL: `https://dregs.com`
- URL: `https://dregs.com/api/escalation-rules/preview`
- Auth: HTTP bearer

Returns how many identities currently match the given conditions

## Request body

- V1PreviewEscalationRuleRequest
  - `conditions` RuleCondition[]
    - `condition` string
    - `category` string
    - `threshold` integer
    - `badge` string
    - `seconds` integer

## Response `200`

Preview computed

## Other responses

- `400`: Invalid conditions

---

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