# List maintenance windows

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

The project's maintenance windows, one-time and weekly, with the checks they cover.

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

Section: Maintenance windows. Operation id in openapi.json: `list_maintenance`.

## Parameters

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `projectId` | path | yes | string (uuid) | The project's id. |

## Responses

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

### 200

Every window of the project.

`application/json`: array of MaintenanceView

Example:

```json
[
  {
    "checkIds": [
      "CHECK_ID"
    ],
    "createdAt": "2026-11-27T15:20:00Z",
    "id": "WINDOW_ID",
    "managedBy": "ui",
    "projectId": "PROJECT_ID",
    "schedule": {
      "endsAt": "2026-12-01T23:00:00Z",
      "kind": "once",
      "startsAt": "2026-12-01T22:00:00Z"
    },
    "timezone": "Europe/Berlin",
    "title": "Database upgrade",
    "upcoming": [
      {
        "active": false,
        "endsAt": "2026-12-01T23:00:00Z",
        "localEndsAt": "2026-12-02T00:00:00",
        "localStartsAt": "2026-12-01T23:00:00",
        "startsAt": "2026-12-01T22:00:00Z"
      }
    ]
  }
]
```

### 400

Bad Request.

- `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

### 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).
