---
title: "GET /orgs/{orgId}/anomaly-rules"
method: GET
path: "/orgs/{orgId}/anomaly-rules"
---

# GET /orgs/{orgId}/anomaly-rules

`GET /orgs/{orgId}/anomaly-rules`

## Request

- Base URL: `https://api.useanima.sh/v1`
- URL: `https://api.useanima.sh/v1/orgs/{orgId}/anomaly-rules`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

## Path parameters

- `orgId` string, required: Organization identifier

## Query parameters

- `metric` 'email_send_rate' | 'sms_send_rate' | 'vault_access_rate' | 'api_call_rate' | 'unique_recipients': Filter by metric
- `enabled` boolean: Filter by enabled status
- `cursor` string: Pagination cursor
- `limit` integer: Maximum number of rules to return

## Response `200`

OK

- object: Paginated list of anomaly rules
  - `items` object[], required: List of anomaly rules
    - `id` string, required: Unique rule identifier
    - `orgId` string, required: Organization identifier
    - `name` string, required: Human-readable rule name
    - `metric` 'email_send_rate' | 'sms_send_rate' | 'vault_access_rate' | 'api_call_rate' | 'unique_recipients', required: Type of metric being tracked
    - `condition` 'zscore_gt' | 'rate_multiplier_gt' | 'absolute_gt' | 'time_violation', required: Detection condition type
    - `threshold` number, required: Threshold value for the condition
    - `severity` 'INFO' | 'WARNING' | 'CRITICAL', required: Severity level of the anomaly alert
    - `quarantineAction` 'NONE' | 'SOFT' | 'HARD', required: Quarantine action to take when rule triggers
    - `cooldownMinutes` integer, required: Minutes to wait between alerts for this rule
    - `enabled` boolean, required: Whether the rule is active
    - `createdAt` string, required: ISO 8601 creation timestamp
    - `updatedAt` string, required: ISO 8601 last update timestamp
  - `nextCursor` string, nullable, required: Cursor for the next page, null if no more results

---

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