Note : This endpoint is in preview and is subject to change.
If you have any feedback, contact Datadog support .
GET https://api.ap1.datadoghq.com/api/v2/maintenance_windows https://api.ap2.datadoghq.com/api/v2/maintenance_windows https://api.datadoghq.eu/api/v2/maintenance_windows https://api.ddog-gov.com/api/v2/maintenance_windows https://api.us2.ddog-gov.com/api/v2/maintenance_windows https://api.datadoghq.com/api/v2/maintenance_windows https://api.us3.datadoghq.com/api/v2/maintenance_windows https://api.us5.datadoghq.com/api/v2/maintenance_windows
Overview 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.
OAuth apps require the event_correlation_config_read authorization scope to access this endpoint.
Response OK
Response containing a list of maintenance windows.
Expand All
List of maintenance windows.
Attributes of a maintenance window, including its schedule and the query that determines which cases are affected.
The UUID of the user who created this maintenance window. Read-only.
The ISO 8601 timestamp when the maintenance window ends and normal notification behavior resumes.
A human-readable name for the maintenance window (for example, Database migration - Dec 15).
A case search query that determines which cases are affected during the maintenance window. Uses the same syntax as the Case Management search bar.
The ISO 8601 timestamp when the maintenance window begins and notifications start being suppressed.
The UUID of the user who last modified this maintenance window. Read-only.
The maintenance window's identifier.
JSON:API resource type for maintenance windows.
Allowed enum values: maintenance_window
default: maintenance_window
{
"data" : [
{
"attributes" : {
"created_by" : "string" ,
"end_at" : "2026-06-01T06:00:00Z" ,
"name" : "Weekly maintenance" ,
"query" : "project:SEC" ,
"start_at" : "2026-06-01T00:00:00Z" ,
"updated_by" : "string"
},
"id" : "a1b2c3d4-e5f6-7890-abcd-ef1234567890" ,
"type" : "maintenance_window"
}
]
} Bad Request
{
"errors" : [
"Bad Request"
]
} Unauthorized
{
"errors" : [
"Bad Request"
]
} Forbidden
{
"errors" : [
"Bad Request"
]
} Not Found
{
"errors" : [
"Bad Request"
]
} Too many requests
{
"errors" : [
"Bad Request"
]
} Code Example Copy
# Curl command curl -X GET "https://api.ap1.datadoghq.com "https://api.ap2.datadoghq.com "https://api.datadoghq.eu "https://api.ddog-gov.com "https://api.us2.ddog-gov.com "https://api.datadoghq.com "https://api.us3.datadoghq.com "https://api.us5.datadoghq.com /api/v2/maintenance_windows " \
-H "Accept: application/json" \
-H "DD-API-KEY: ${DD_API_KEY} " \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY} "