---
title: "List maintenance windows"
method: GET
path: "/api/v2/maintenance_windows"
tags: ["Case Management"]
---

# List maintenance windows

`GET /api/v2/maintenance_windows`

Returns all configured maintenance windows for event management cases. Maintenance windows define time periods during which case notifications and automation rules are suppressed for cases matching a given query.

## Response `200`

OK

- MaintenanceWindowsResponse — Response containing a list of maintenance windows.
  - `data` MaintenanceWindow[], required — List of maintenance windows.
    - `attributes` MaintenanceWindowAttributes, required — Attributes of a maintenance window, including its schedule and the query that determines which cases are affected.
      - `created_by` string — The UUID of the user who created this maintenance window. Read-only.
      - `end_at` string, date-time, required — The ISO 8601 timestamp when the maintenance window ends and normal notification behavior resumes.
      - `name` string, required — A human-readable name for the maintenance window (for example, `Database migration - Dec 15`).
      - `query` string, required — A case search query that determines which cases are affected during the maintenance window. Uses the same syntax as the Case Management search bar.
      - `start_at` string, date-time, required — The ISO 8601 timestamp when the maintenance window begins and notifications start being suppressed.
      - `updated_by` string — The UUID of the user who last modified this maintenance window. Read-only.
    - `id` string, required — The maintenance window's identifier.
    - `type` 'maintenance_window', required — JSON:API resource type for maintenance windows.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `429` — Too many requests

---

[API](https://skmtc.net/datadog/apis/api-v2.md) · [All operations](https://skmtc.net/datadog/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/datadog/api-v2/versions/da68bf029e4c/schema)
