---
title: "Get all maintenance windows"
method: GET
path: "/maintenance-windows"
tags: ["maintenance windows"]
---

# Get all maintenance windows

`GET /maintenance-windows`

Returns a list of maintenance windows for an account.

## Query parameters

- `page` integer
- `limit` integer
- `state` 'active' | 'paused' | 'pending'

## Response `200`

OK

- MaintenanceWindows
  - `data` MaintenanceWindow[], required — List of maintenance windows
    - `id` string, required — Maintenance window ID
    - `name` string, required — Name of the maintenance window
    - `end_at` string, date-time, required — End of the maintenance window (RFC3339 format). Only the date and time components are used - the UTC offset is ignored. The time is interpreted as local time in the timezone specified by the `timezone` field. When `repeat_interval` is not `never`, the date component determines the first occurrence only; subsequent windows repeat at the same local time.
    - `repeat_interval` 'never' | '1d' | '1w' | '2w' | '1m', required — How often the maintenance window should occur
    - `start_at` string, date-time, required — Start of the maintenance window (RFC3339 format). Only the date and time components are used - the UTC offset is ignored. The time is interpreted as local time in the timezone specified by the `timezone` field. When `repeat_interval` is not `never`, the date component determines the first occurrence only; subsequent windows repeat at the same local time.
    - `state` 'active' | 'paused' | 'pending', required — Maintenance window state
    - `tags` string[], required — List of tags used to include matching uptime checks in this maintenance window
    - `tests` string[], required — List of uptime check IDs explicitly included in this maintenance window
    - `timezone` string, required — Standard [timezone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List) associated with this maintenance window
  - `metadata` Pagination, required
    - `page` integer, required — The current page of results
    - `per_page` integer, required — The number of results per page
    - `page_count` integer, required — The total number of pages
    - `total_count` integer, required — The total number of results

## Other responses

- `default` — Unexpected Error

---

[API](https://skmtc.dev/statuscake/apis/statuscake-api.md) · [All operations](https://skmtc.dev/statuscake/apis/statuscake-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/statuscake/statuscake-api/revisions/6d32a6afe2cf/schema)
