Supercheck LogoSupercheck
Monitors API

List maintenance windows

GET
/api/maintenance-windows

Windows of the active project. Needs monitor view permission.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Project-scoped CLI token (sck_live_* or sck_test_*) for documented API operations that accept bearer authentication. Interactive browser operations may require a session cookie. Trigger keys (sck_trigger_* / legacy job_*) are accepted only by job trigger endpoints.

Query Parameters

state?string
Value in"active""scheduled""past"
monitorId?string

Only windows covering this monitor

Formatuuid
serviceId?string
Formatuuid

Response Body

Windows

application/json
  1. response
success?boolean
windows?array<>
Example Request
curl -X GET 'https://app.supercheck.io/api/maintenance-windows'
Example Response
{  "success": true,  "windows": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "title": "string",      "description": "string",      "state": "scheduled",      "scope": "project",      "recurrence": "once",      "timezone": "string",      "localStartTime": "string",      "durationMinutes": 0,      "startsOn": "2019-08-24",      "endsOn": "2019-08-24",      "weekdays": [        0      ],      "monthDay": 0,      "occurrenceStartsAt": "2019-08-24T14:15:22Z",      "occurrenceEndsAt": "2019-08-24T14:15:22Z",      "targets": [        {          "type": "service",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"        }      ],      "statusPageIncidentIds": [        "da6f58bf-0ef2-4571-a37b-e6207b408783"      ]    }  ]}