Incident
Manage incidents for your project
The Incident Model
Properties
- Name
_id- Type
- Object ID
- Description
ID of this object
- Name
createdAt- Type
- Date
- Description
Date and Time when the object was created.
- Name
updatedAt- Type
- Date
- Description
Date and Time when the object was updated.
- Name
project- Type
- Project
- Description
Relation to Project Resource in which this object belongs
- Name
projectId- Type
- Object IDRequired
- Description
ID of your Project in which this object belongs
- Name
title- Type
- Long TextRequired
- Description
Title of this incident
- Name
description- Type
- Markdown
- Description
Short description of this incident. This is in markdown and will be visible on the status page.
- Name
declaredAt- Type
- DateRequired
- Description
Date and time when this incident was declared.
- Name
slug- Type
- SlugRequired
- Description
Friendly globally unique name for your object
- Name
createdByUser- Type
- User
- Description
Relation to User who created this object (if this object was created by a User)
- Name
createdByUserId- Type
- Object ID
- Description
User ID who created this object (if this object was created by a User)
- Name
monitors- Type
- Monitor
- Description
List of monitors affected by this incident
- Name
onCallDutyPolicies- Type
- On-Call Policy
- Description
List of on-call duty policies affected by this incident.
- Name
labels- Type
- Label
- Description
Relation to Labels Array where this object is categorized in.
- Name
currentIncidentState- Type
- Incident State
- Description
Current state of this incident. Is the incident acknowledged? or resolved?. This is related to Incident State
- Name
currentIncidentStateId- Type
- Object IDRequired
- Description
Current Incident State ID
- Name
incidentSeverity- Type
- Incident Severity
- Description
How severe is this incident. Is it critical? or a minor incident?. This is related to Incident Severity.
- Name
incidentSeverityId- Type
- Object IDRequired
- Description
Incident Severity ID
- Name
changeMonitorStatusTo- Type
- Incident State
- Description
Relation to Monitor Status Object. All monitors connected to this incident will be changed to this status when the incident is created.
- Name
changeMonitorStatusToId- Type
- Object ID
- Description
Relation to Monitor Status Object ID. All monitors connected to this incident will be changed to this status when the incident is created.
- Name
subscriberNotificationStatusMessage- Type
- Very Long Text
- Description
Status message for subscriber notifications - includes success messages, failure reasons, or skip reasons
- Name
subscriberNotificationStatusMessageOnPostmortemPublished- Type
- Very Long Text
- Description
Status message for subscriber notifications on postmortem published - includes success messages, failure reasons, or skip reasons
- Name
shouldStatusPageSubscribersBeNotifiedOnIncidentCreated- Type
- Boolean
- Description
Should subscribers be notified about this incident?
- Name
customFields- Type
- JSON
- Description
Custom Fields on this resource.
- Name
rootCause- Type
- Markdown
- Description
What is the root cause of this incident?
- Name
postmortemNote- Type
- Markdown
- Description
Document the postmortem summary for this incident.
- Name
showPostmortemOnStatusPage- Type
- Boolean
- Description
Should the postmortem note and attachments be visible on the status page once published?
- Name
notifySubscribersOnPostmortemPublished- Type
- Boolean
- Description
Should subscribers be notified when the postmortem is published?
- Name
postmortemPostedAt- Type
- Date
- Description
Timestamp that will be shown alongside the published postmortem on the status page.
- Name
postmortemAttachments- Type
- File
- Description
Files that accompany the postmortem note and can be shared publicly when enabled.
- Name
createdStateLog- Type
- JSON
- Description
- Name
createdCriteriaId- Type
- Long Text
- Description
If this incident was created by a Probe, this is the ID of the criteria that created it.
- Name
createdIncidentTemplateId- Type
- Long Text
- Description
If this incident was created by a Probe, this is the ID of the incident template that was used for creation.
- Name
createdByProbe- Type
- Probe
- Description
If this incident was created by a Probe, this is the probe that created it.
- Name
createdByProbeId- Type
- Object ID
- Description
If this incident was created by a Probe, this is the ID of the probe that created it.
- Name
isCreatedAutomatically- Type
- Boolean
- Description
Is this incident created by Probe or Workers automatically (and not created manually by a user)?
- Name
remediationNotes- Type
- Markdown
- Description
Notes on how to remediate this incident. This is in markdown.
- Name
telemetryQuery- Type
- JSON
- Description
Telemetry query for this incident
- Name
incidentNumber- Type
- Number
- Description
Incident Number
- Name
incidentNumberWithPrefix- Type
- Text
- Description
Incident number with prefix (e.g., 'INC-42' or '#42')
- Name
isVisibleOnStatusPage- Type
- Boolean
- Description
Should this incident be visible on the status page?
- Name
incidentEpisode- Type
- Incident Episode
- Description
Relation to Incident Episode this incident belongs to
- Name
incidentEpisodeId- Type
- Object ID
- Description
ID of the Incident Episode this incident belongs to
/api/incident/get-listList
This endpoint allows you to retrieve a paginated list of all your Incident. By default, a maximum of ten Incident are shown per page.
Optional Query Params
limit- number
- Number of objects to fetch. By default 10, you can increase this count up to 100
skip- number
- Number of objects to skip. This can be useful in pagination
Optional Request Body
query- If you would like to filter on Incident. You can specify include a query here. For more information, please check out writing queries here.
select- By default you will only retrieve ID of objects, to retrieve more fields you need to select them. For more information, please check how to select here.
sort- Objects will be sorted based on created date by default. You can change the sort order — see Data Types: Sort.
List Request
POST/api/incident/get-list?skip=0&limit=10Content-Type: application/json ApiKey: YOUR_API_KEY
{
"select": {
"currentIncidentStateId": true,
"declaredAt": true,
"incidentSeverityId": true,
"projectId": true,
"slug": true
},
"query": {
"title": "Database connection failure in production"
},
"sort": {
"createdAt": -1
}
}Response
{
"count": 10,
"limit": 10,
"skip": 0,
"data": [
{
"_id": "376ed290-28fe-11f1-b591-3fdcef396aba",
"currentIncidentStateId": "d4e5f6a7-b8c9-0123-defg-456789012345",
"declaredAt": "2024-01-15T09:30:00.000Z",
"incidentSeverityId": "e5f6a7b8-c9d0-1234-efgh-567890123456",
"projectId": "5f8b9c0d-e1a2-4b3c-8d5e-6f7a8b9c0d1e",
"slug": "database-connection-failure-in-production"
},
{
"_id": "376ed291-28fe-11f1-b591-3fdcef396aba",
"currentIncidentStateId": "d4e5f6a7-b8c9-0123-defg-456789012345",
"declaredAt": "2024-01-15T09:30:00.000Z",
"incidentSeverityId": "e5f6a7b8-c9d0-1234-efgh-567890123456",
"projectId": "5f8b9c0d-e1a2-4b3c-8d5e-6f7a8b9c0d1e",
"slug": "database-connection-failure-in-production"
},
{
"_id": "376ed292-28fe-11f1-b591-3fdcef396aba",
"currentIncidentStateId": "d4e5f6a7-b8c9-0123-defg-456789012345",
"declaredAt": "2024-01-15T09:30:00.000Z",
"incidentSeverityId": "e5f6a7b8-c9d0-1234-efgh-567890123456",
"projectId": "5f8b9c0d-e1a2-4b3c-8d5e-6f7a8b9c0d1e",
"slug": "database-connection-failure-in-production"
}
]
}/api/incident/:id/get-itemGet item by ID
This endpoint allows you to retrieve Incident by ID.
id- text
- ID of the Object
Optional Request Body
select- By default you will only retrieve ID of objects, to retrieve more fields you need to select them. For more information, please check how to select here.
Get Item Request
POST/api/incident/:id/get-itemContent-Type: application/json ApiKey: YOUR_API_KEY
{
"select": {
"currentIncidentStateId": true,
"declaredAt": true,
"incidentSeverityId": true,
"projectId": true,
"slug": true
}
}Response
{
"_id": "376ed290-28fe-11f1-b591-3fdcef396aba",
"currentIncidentStateId": "d4e5f6a7-b8c9-0123-defg-456789012345",
"declaredAt": "2024-01-15T09:30:00.000Z",
"incidentSeverityId": "e5f6a7b8-c9d0-1234-efgh-567890123456",
"projectId": "5f8b9c0d-e1a2-4b3c-8d5e-6f7a8b9c0d1e",
"slug": "database-connection-failure-in-production"
}/api/incident/countCount
This endpoint allows you to retrieve the count of all your Incident.
Optional Request Body
query- If you would like to filter on Incident. You can specify include a query here. For more information, please check out writing queries here.
Count Request
POST/api/incident/countContent-Type: application/json ApiKey: YOUR_API_KEY
{
"query": {
"title": "Database connection failure in production"
}
}Response
{
"count": 107
}/api/incidentCreate Incident
This endpoint allows you to create a new object.
Create Request
POST/api/incidentContent-Type: application/json ApiKey: YOUR_API_KEY
{
"data": {
"currentIncidentStateId": "d4e5f6a7-b8c9-0123-defg-456789012345",
"declaredAt": "2024-01-15T09:30:00.000Z",
"incidentSeverityId": "e5f6a7b8-c9d0-1234-efgh-567890123456",
"projectId": "5f8b9c0d-e1a2-4b3c-8d5e-6f7a8b9c0d1e",
"title": "Database connection failure in production"
}
}Response
{
"_id": "376ed290-28fe-11f1-b591-3fdcef396aba",
"currentIncidentStateId": "d4e5f6a7-b8c9-0123-defg-456789012345",
"declaredAt": "2024-01-15T09:30:00.000Z",
"incidentSeverityId": "e5f6a7b8-c9d0-1234-efgh-567890123456",
"projectId": "5f8b9c0d-e1a2-4b3c-8d5e-6f7a8b9c0d1e",
"slug": "database-connection-failure-in-production"
}/api/incident/:idUpdate by ID
This endpoint allows you to update object by its ID.
Alternative Methods
For clients that do not support PUT requests, you can use POST or GET with the same request headers and body:
Update Request
PUT/api/incident/:idContent-Type: application/json ApiKey: YOUR_API_KEY
{
"data": {
"currentIncidentStateId": "d4e5f6a7-b8c9-0123-defg-456789012345",
"declaredAt": "2024-01-15T09:30:00.000Z",
"incidentSeverityId": "e5f6a7b8-c9d0-1234-efgh-567890123456"
}
}Response
{}/api/incident/:idDelete by ID
This endpoint allows you to delete object by its ID.
Alternative Methods
For clients that do not support DELETE requests, you can use POST or GET with the same request headers and body:
Delete Request
DELETE/api/incident/:idContent-Type: application/json ApiKey: YOUR_API_KEY
Response
{}Permissions
Your API Token needs permissions to create, update, read or delete this resource. If you do not have permissions to make a request a 4xx status will be sent as response.
Read Permissions
Required to read Incident
Project OwnerProject AdminProject MemberRead IncidentRead All Project Resources
Create Permissions
Required to create Incident
Project OwnerProject AdminProject MemberCreate Incident
Update Permissions
Required to update Incident
Project OwnerProject AdminProject MemberEdit Incident
Delete Permissions
Required to delete Incident
Project OwnerProject AdminProject MemberDelete Incident