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
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
state | query | open | resolved | all | |
cursor | query | string | Opaque cursor taken from |
limit | query | integer | Page size. |
Responses
200422Validation error404Not found403Authorization error401Unauthenticated
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
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
Request body
| Name | Type |
|---|---|
titlerequired | string |
impactrequired | IncidentImpact (none, minor, major, critical) |
internal | boolean |
started_at | string | null |
monitor_ids | list<integer> |
status_page_ids | list<integer> |
statusrequired | IncidentStatus (investigating, identified, monitoring, resolved) |
messagerequired | string |
Responses
201404Not found403Authorization error401Unauthenticated422Validation error
GET /workspaces/{workspace}/incidents/{incident}
Parameters
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
incidentrequired | path | integer | The incident ID |
Responses
200404Not found403Authorization error401Unauthenticated
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
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
incidentrequired | path | integer | The incident ID |
Request body
| Name | Type |
|---|---|
title | string |
impact | IncidentImpact (none, minor, major, critical) |
internal | boolean |
started_at | string | null |
monitor_ids | list<integer> |
status_page_ids | list<integer> |
Responses
200404Not found403Authorization error401Unauthenticated422Validation error
DELETE /workspaces/{workspace}/incidents/{incident}
Parameters
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
incidentrequired | path | integer | The incident ID |
Responses
204No content404Not found403Authorization error401Unauthenticated
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
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
incidentrequired | path | integer | The incident ID |
Request body
| Name | Type |
|---|---|
messagerequired | string |
statusrequired | IncidentStatus (investigating, identified, monitoring, resolved) |
Responses
201404Not found403Authorization error401Unauthenticated422Validation error
PATCH /workspaces/{workspace}/incidents/{incident}/updates/{update}
Edits the message of a timeline entry; its status and time stay as recorded
Parameters
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
incidentrequired | path | integer | The incident ID |
updaterequired | path | integer | The update ID |
Request body
| Name | Type |
|---|---|
messagerequired | string |
Responses
200404Not found403Authorization error401Unauthenticated422Validation 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
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
incidentrequired | path | integer | The incident ID |
updaterequired | path | integer | The update ID |
Responses
204No content404Not found403Authorization error401Unauthenticated