v2

latestOpenAPI 3.0.02026-07-261859071.2 MB
Incidents

Create an incident

Creates a new incident.

post/v1/incidents

Headers

x-checkly-accountstring

Your Checkly account ID, you can find it at https://app.checklyhq.com/settings/account/general

Your Checkly account ID, you can find it at https://app.checklyhq.com/settings/account/general

Request body

namestring required

A name used to describe the incident.

impact'MAINTENANCE' | 'MAJOR' | 'MINOR' required

Used to indicate the impact or severity.

startedAtstring date-time nullable

Used to indicate when incident starts to be active.

stoppedAtstring date-time nullable

Used to indicate when incident turns to inactive.

dashboardIdnumber required

The dashboard ID where the incident will be shown.

Example request

{
  "name": "Service outage",
  "impact": "MINOR",
  "startedAt": "2022-11-25T12:34:56.000Z",
  "stoppedAt": "2022-11-25T13:34:56.000Z",
  "dashboardId": 1234,
  "incidentUpdates": [
    {
      "status": "INVESTIGATING",
      "description": "The service is down and affects all the regions."
    }
  ]
}

Response

Successful

namestring required

A name used to describe the incident.

impact'MAINTENANCE' | 'MAJOR' | 'MINOR' required

Used to indicate the impact or severity.

startedAtstring date-time nullable

Used to indicate when incident starts to be active.

stoppedAtstring date-time nullable

Used to indicate when incident turns to inactive.

dashboardIdnumber required

The dashboard ID where the incident will be shown.

idstring required

The incident universal and unique identificator.

created_atstring date-time required

The timestamp when the incident was created.

updated_atstring date-time nullable required

The timestamp when the incident was last updated.

Example response

{
  "name": "Service outage",
  "impact": "MINOR",
  "startedAt": "2022-11-25T12:34:56.000Z",
  "stoppedAt": "2022-11-25T13:34:56.000Z",
  "dashboardId": 1234,
  "id": "e50ad839-1b90-4955-b716-1c6edbda57cb",
  "created_at": "2022-09-08T19:41:28.658Z",
  "updated_at": "2022-09-08T20:41:28.658Z",
  "incidentUpdates": [
    {
      "id": "01f477f8-4293-4e1c-82bd-99797720434c",
      "status": "RESOLVED",
      "description": "The service is up and all is recovered.",
      "incidentId": "3abcfdfe-ae2d-4632-8dd1-18dd871e18fc",
      "created_at": "2022-09-08T20:56:48.425Z",
      "updated_at": null
    },
    {
      "id": "1f0640f8-1910-4137-b91d-ed152faa92e6",
      "status": "INVESTIGATING",
      "description": "The service is down and affects all the regions.",
      "incidentId": "3abcfdfe-ae2d-4632-8dd1-18dd871e18fc",
      "created_at": "2022-09-08T18:56:48.425Z",
      "updated_at": null
    }
  ]
}