# Alert Operations

These instructions apply to the current Admin Console.

{% hint style="info" %}
Alerts are in early access and may not be available in your account. [Contact Contextual support](mailto:help@contextual.io) to request that Alerts be enabled for your tenant.
{% endhint %}

Read alert instances independently of configuration. All reads here require `contextual:alert-instances:read`; terminal dismissal requires `contextual:alert-instances:update`.

| Method and route | Result |
| --- | --- |
| `GET /alerts/active` | Firing instances only. |
| `GET /alerts` | History, including pending, firing, resolved, stale, and event states. |
| `GET /rules/{id}/alerts` | Instances for the specified rule. |
| `GET /alerts/{fingerprint}` | Instance details and its recent delivery records. |
| `DELETE /alerts/{fingerprint}` | Dismiss an eligible resolved or stale instance. |

## Filter and Page Through History

Supported list parameters include `ruleId`, `severity`, `state`, `since`, `limit`, and `pageToken`. `state` is a comma-separated list of supported states; `since` is an ISO timestamp; `limit` is 1–200. A rule-scoped route supplies the rule ID itself. `/alerts/active` rejects a `state` parameter because its state is fixed to firing.

Lists return `{ "items": [...], "nextPageToken": "..." }`, with the token omitted when there is no next page. History is ordered newest first. Keep the same filters while following tokens.

For example, request `/alerts?state=resolved,stale&limit=50` to find terminal threshold instances. Configuration list parameters such as `pageSize` and `includeTotal` do not apply here.

## Inspect Delivery Details

A detail read returns the instance with up to its latest 100 delivery rows. Inspect status, attempts, redacted `lastError`, `subscriptionIds`, recipient, and `suppressedBy`. A suppressed delivery and a failed attempt require different actions; see [Troubleshoot alerts and delivery](https://docs.contextual.io/operate/alerts/troubleshooting.md).

Do not infer recovery from the absence of an active row. Read history to distinguish resolution, stale state, a changed rule, or an unsuccessful evaluation.

## Dismiss an Instance

DELETE returns `204` on a successful dismissal. The operation is restricted to `resolved` and `stale`; other states, including lifecycle `event`, return `409`. It removes the operational instance without disabling its rule or changing the underlying condition.
