# List incidents

`GET /api/v1/projects/{projectId}/incidents`

The project's incidents, newest first. Filter by `state`, by `checkId`, by when they opened (`from`, `to`) and by when they closed (`closedAfter`: still open, or closed at or after that instant).

Sign-in: a dashboard session, an API token with `incidents:read` or the `monitorly` CLI's sign-in with `incidents:read`.

Section: Incidents. Operation id in openapi.json: `list_incidents`.

## Parameters

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `projectId` | path | yes | string (uuid) | The project's id. |
| `state` | query | no | IncidentFilter | `open` or `closed`; every incident without it. |
| `checkId` | query | no | string (uuid) | Only this check's incidents. |
| `from` | query | no | string | RFC 3339: only incidents opened at or after this instant. |
| `to` | query | no | string | RFC 3339: only incidents opened before this instant. |
| `closedAfter` | query | no | string | RFC 3339: only incidents still open or closed at or after this instant; with `to`, the incidents that overlap the window. |
| `cursor` | query | no | string | The `nextCursor` of the previous page. Leave it out for the first page. |
| `limit` | query | no | integer | Items per page, 1–200; 50 by default. A larger value counts as 200. |

## Responses

Errors are `application/problem+json` (`Problem`); branch on `type`.

### 200

A page of incidents.

`application/json`: IncidentPage

| Field | Type | Required | Description |
|---|---|---|---|
| `items` | array of IncidentView | yes |  |
| `nextCursor` | string \| null | no |  |

Example:

```json
{
  "items": [
    {
      "ackedAt": "2026-11-27T14:03:46Z",
      "ackedByName": "Dana Ortiz",
      "checkId": "CHECK_ID",
      "checkName": "payments-health",
      "closedAt": "2026-11-27T14:09:41Z",
      "downNodes": [
        {
          "city": "Frankfurt",
          "countryCode": "DE",
          "errorCode": "timeout",
          "nodeId": "NODE_ID_FRA"
        },
        {
          "city": "Amsterdam",
          "countryCode": "NL",
          "errorCode": "timeout",
          "nodeId": "NODE_ID_AMS"
        }
      ],
      "escalation": {
        "level": 1,
        "levels": 2,
        "policyName": "payments on-call",
        "repeatCount": 0,
        "round": 1
      },
      "id": "INCIDENT_ID",
      "openedAt": "2026-11-27T14:02:11Z",
      "projectId": "PROJECT_ID"
    }
  ],
  "nextCursor": null
}
```

### 400

Bad Request.

- `request.malformed`: the body or a parameter is not of the expected shape
- `request.invalid_cursor`: the cursor is not one this list gave
- `auth.credentials_conflict`: the request carries both a session cookie and a token

### 401

Unauthorized.

- `auth.unauthenticated`, `auth.session_expired`: no session, or it ended
- `token.invalid`: the token is malformed, unknown, revoked or expired, or its creator left the workspace

### 403

Forbidden.

- `auth.forbidden`: your role is too low for this
- `token.scope_missing`: the token lacks the scope this needs; `detail` names it

### 404

Not Found.

- `request.not_found`: it does not exist, or you cannot see it

### 422

Unprocessable Entity.

- `field.invalid`, `field.required`: a parameter breaks a rule; `errors` points at it
- `request.invalid_range`: `from` is not earlier than `to`

### 429

Too Many Requests.

- `token.rate_limited`: more than 10 requests a second with this token

Schemas named above are listed with their fields in [the schema list](https://docs.monitorly.cloud/api/reference/schemas.md).
