REST API overview

API · v1.4.0

Incidents

8 endpoints. Paths are relative to /api/v1 on your own instance; authentication is described on the overview page.

GET /workspaces/{workspace}/incidents

Lists the incidents of the workspace, newest start first

state narrows the list to open (not yet resolved), resolved, or all (default). The timeline of each incident is only included when a single incident is fetched.

Parameters

NameInTypeDescription
workspacerequiredpathstring

The workspace slug

statequeryopen | resolved | all
cursorquerystring

Opaque cursor taken from meta.next_cursor of the previous page; omit it for the first page.

limitqueryinteger

Page size.

Responses

  • 200
  • 422 Validation error
  • 404 Not found
  • 403 Authorization error
  • 401 Unauthenticated

POST /workspaces/{workspace}/incidents

Creates an incident with its first timeline update

An internal incident appears on no status page, not even through a monitor shown on a page, so status_page_ids must be empty or omitted when internal is true.

Parameters

NameInTypeDescription
workspacerequiredpathstring

The workspace slug

Request body

NameType
titlerequiredstring
impactrequiredIncidentImpact (none, minor, major, critical)
internalboolean
started_atstring | null
monitor_idslist<integer>
status_page_idslist<integer>
statusrequiredIncidentStatus (investigating, identified, monitoring, resolved)
messagerequiredstring

Responses

  • 201
  • 404 Not found
  • 403 Authorization error
  • 401 Unauthenticated
  • 422 Validation error

GET /workspaces/{workspace}/incidents/{incident}

Parameters

NameInTypeDescription
workspacerequiredpathstring

The workspace slug

incidentrequiredpathinteger

The incident ID

Responses

  • 200
  • 404 Not found
  • 403 Authorization error
  • 401 Unauthenticated

PATCH /workspaces/{workspace}/incidents/{incident}

Updates the incident's own fields and targets; omitted fields keep their stored value

An internal incident appears on no status page, not even through a monitor shown on a page, so it cannot be linked to status pages: status_page_ids must be empty or omitted while it is internal. To switch an incident with linked pages to internal, send "status_page_ids": [] in the same request; otherwise the request is refused with a 422 on status_page_ids and nothing changes.

Parameters

NameInTypeDescription
workspacerequiredpathstring

The workspace slug

incidentrequiredpathinteger

The incident ID

Request body

NameType
titlestring
impactIncidentImpact (none, minor, major, critical)
internalboolean
started_atstring | null
monitor_idslist<integer>
status_page_idslist<integer>

Responses

  • 200
  • 404 Not found
  • 403 Authorization error
  • 401 Unauthenticated
  • 422 Validation error

DELETE /workspaces/{workspace}/incidents/{incident}

Parameters

NameInTypeDescription
workspacerequiredpathstring

The workspace slug

incidentrequiredpathinteger

The incident ID

Responses

  • 204 No content
  • 404 Not found
  • 403 Authorization error
  • 401 Unauthenticated

POST /workspaces/{workspace}/incidents/{incident}/updates

Adds a timeline entry. The incident takes the entry's status; resolved stamps the resolution time and any open status after a resolution reopens the incident

Parameters

NameInTypeDescription
workspacerequiredpathstring

The workspace slug

incidentrequiredpathinteger

The incident ID

Request body

NameType
messagerequiredstring
statusrequiredIncidentStatus (investigating, identified, monitoring, resolved)

Responses

  • 201
  • 404 Not found
  • 403 Authorization error
  • 401 Unauthenticated
  • 422 Validation error

PATCH /workspaces/{workspace}/incidents/{incident}/updates/{update}

Edits the message of a timeline entry; its status and time stay as recorded

Parameters

NameInTypeDescription
workspacerequiredpathstring

The workspace slug

incidentrequiredpathinteger

The incident ID

updaterequiredpathinteger

The update ID

Request body

NameType
messagerequiredstring

Responses

  • 200
  • 404 Not found
  • 403 Authorization error
  • 401 Unauthenticated
  • 422 Validation error

DELETE /workspaces/{workspace}/incidents/{incident}/updates/{update}

Removes a timeline entry and recomputes the incident's status from the latest remaining one. The only entry cannot be removed; delete the incident instead

Parameters

NameInTypeDescription
workspacerequiredpathstring

The workspace slug

incidentrequiredpathinteger

The incident ID

updaterequiredpathinteger

The update ID

Responses

  • 204 No content
  • 404 Not found
  • 403 Authorization error
  • 401 Unauthenticated