Create Escalation Rule
create_escalation_ruleCreate an escalation rule for the current customer. Describe the rule and confirm with the user before calling; preview_escalation_rule shows how many identities it would open against today. Each condition is an object: {condition, category, threshold, badge, seconds}. condition is one of SCORE_LT, SCORE_LTE, SCORE_GT, SCORE_GTE (with category HUMANITY, AUTHENTICITY, UNIQUENESS, BEHAVIOR, or ANY to match any category, and threshold 0-100), BADGE_EXISTS or BADGE_NOT_EXISTS (with badge = a badge slug), IDENTITY_AGE_LT or IDENTITY_AGE_GT (with seconds since the identity was first seen). All conditions must hold for the rule to match. Channels are channel slugs (see list_channels); escalations always show in the dashboard regardless. Returns the created rule.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human-readable rule name, up to 100 characters; the slug is derived from it. | |
| channels | No | Channel slugs to deliver to; empty for dashboard only. | |
| severity | Yes | INFO, WARNING, or CRITICAL. | |
| conditions | Yes | The conditions that must all hold. | |
| effectiveAt | No | ISO-8601 instant from which the rule applies (default: now). | |
| openAfterSeconds | No | Seconds the conditions must hold before the escalation opens (default 0). | |
| closeAfterSeconds | No | Seconds the conditions must stop holding before the escalation closes automatically (default: never). |