Status Page Rules
Couple Incident Management to your status pages: rules that flip a page to warning or degraded on incidents of a team, plus a manual override.
GET /api/im/statuspage-rules · POST /api/im/statuspage-rules · GET /api/im/statuspage-rules/:id · PATCH /api/im/statuspage-rules/:id · DELETE /api/im/statuspage-rules/:id · GET /api/im/statuspage-rules/override · POST /api/im/statuspage-rules/override · DELETE /api/im/statuspage-rules/override/:statusPageId
A status page rule reads: "incidents of team X at severity minSeverity or worse set status page Y to targetState". sev1 is the most severe. The page shows the incident's status page update as its text, or the rule's message while the incident has none. With autoResolve, the page state is reset when the incident resolves. A manual override pins a state on a status page by hand. While a manual override is active, rules neither change nor clear that page.
Authentication
Requires the base IM access every endpoint in this API needs (an IM-eligible role admin, editor or responder, or an organization-wide API token; Incident Management must be enabled for the organization). Listing and reading rules is open to any IM-eligible role.
- Creating, updating and deleting rules require the write bar: your role must be
admin, or you must be a team admin of the rule's team. - Setting or clearing a manual override requires the
adminoreditorrole, the same bar as other status page changes.
An organization-wide API token runs with the role of the user who created it. Team-admin membership never applies to a token.
List rules
GET /api/im/statuspage-rules
Returns all rules of your organization, ordered by id.
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
envelope | string | none | items: answer as { items, total, page, perPage }. Becomes the default on 2027-01-18. |
Example (cURL)
curl -X GET "$BASE_URL/api/im/statuspage-rules?envelope=items" \
-H "Authorization: Bearer $TOKEN" \
-H "Accept: application/json"Response
200 OK
{
"items": [
{
"id": 2,
"organizationId": 1,
"teamId": 3,
"statusPageId": 15,
"minSeverity": "sev2",
"targetState": "degraded",
"autoResolve": true,
"componentIds": [8],
"message": "We are currently investigating an issue.",
"createdAt": "2026-09-25T09:00:00.000Z",
"updatedAt": "2026-09-25T09:00:00.000Z"
}
],
"total": 1,
"page": 1,
"perPage": 1
}List form: with envelope=items the list arrives as { items, total, page, perPage }. Without it the endpoint still answers the current form (a bare array of the same rules), which is deprecated; { items, ... } becomes the default on 2027-01-18.
Get a rule
GET /api/im/statuspage-rules/:id
Reads one rule back, in the same shape as an entry of List rules. Any IM-eligible role may call it.
Example (cURL)
curl "$BASE_URL/api/im/statuspage-rules/4" \
-H "Authorization: Bearer $TOKEN"Response
200 OK, one rule object as in the list above. 404 with imStatuspageRuleNotFound when the rule does not exist or belongs to another organization.
Create a rule
POST /api/im/statuspage-rules
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
teamId | integer | Yes | Team of your organization whose incidents trigger the rule. You need the write bar on it. |
statusPageId | integer | Yes | Status page of your organization. |
minSeverity | string | No | sev1 to sev4, default sev2. |
targetState | string | No | warning or degraded (default). |
autoResolve | boolean | No | Reset the page state when the incident resolves. Default true. Also accepts the strings "true"/"false". |
componentIds | array or null | No | Components of statusPageId (id or publicId) the incident affects. While the incident is open, these manual components take targetState on the public page and the incident lists them as affected. null or empty: none. A component of another page answers 400 statusPageComponentNotOnPage, an unknown one 404 statusPageComponentNotFound. |
message | string or null | No | Public text shown on the status page while the rule holds it, unless the incident has its own status page update. Trimmed and cut to 5000 characters; empty or null: none. Recommended: without it the page changes state with no explanation. The dashboard requires it. |
Example (cURL)
curl -X POST "$BASE_URL/api/im/statuspage-rules" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ "teamId": 3, "statusPageId": 15, "minSeverity": "sev2", "targetState": "degraded", "message": "We are currently investigating an issue." }'Response
200 OK: the created rule (same shape as a list item).
Update a rule
PATCH /api/im/statuspage-rules/:id
Partial update of teamId, statusPageId, minSeverity, targetState, autoResolve, componentIds and message (same validation as on create). Changing statusPageId without new componentIds clears them, they belong to one page. Other keys are ignored. You need the write bar on the rule's current team, and, when you change teamId, also on the new team.
curl -X PATCH "$BASE_URL/api/im/statuspage-rules/2" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ "minSeverity": "sev1", "targetState": "warning" }'200 OK: the updated rule.
Delete a rule
DELETE /api/im/statuspage-rules/:id
curl -X DELETE "$BASE_URL/api/im/statuspage-rules/2" \
-H "Authorization: Bearer $TOKEN"200 OK
{ "ok": true }List current overrides
GET /api/im/statuspage-rules/override
Every status page of your organization with the override currently on it. state: null means none: the page follows its rules and monitors. Open to any IM-eligible role.
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
envelope | string | none | items: answer as { items, total, page, perPage }. Becomes the default on 2027-01-18. |
curl -X GET "$BASE_URL/api/im/statuspage-rules/override?envelope=items" \
-H "Authorization: Bearer $TOKEN"200 OK
{
"items": [
{
"statusPageId": 15,
"name": "Customer status",
"state": "warning",
"source": "manual",
"message": "Delayed email delivery, we are on it.",
"setAt": "2026-10-09T18:12:00.000Z",
"incidentId": null
}
],
"total": 1,
"page": 1,
"perPage": 1
}List form: with envelope=items the list arrives as { items, total, page, perPage }. Without it the endpoint still answers the current form (a bare array of the same overrides), which is deprecated; { items, ... } becomes the default on 2027-01-18.
source is manual (set by hand) or rule (set by a rule, then incidentId names the incident).
Set a manual override
POST /api/im/statuspage-rules/override
Pins a state on a status page and notifies its subscribers. Replaces any override currently on the page, whether set by a rule or by hand.
| Field | Type | Required | Description |
|---|---|---|---|
statusPageId | integer | Yes | Status page of your organization. |
state | string | Yes | operational, warning or degraded. |
message | string | No | Text shown with the state. Trimmed and cut to 5000 characters. |
curl -X POST "$BASE_URL/api/im/statuspage-rules/override" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ "statusPageId": 15, "state": "warning", "message": "Delayed email delivery, we are on it." }'200 OK
{ "ok": true }Clear an override
DELETE /api/im/statuspage-rules/override/:statusPageId
Removes the current override from the page, whether a rule or a person set it. The page then follows the rules (or, without an active rule, its monitors) again. Subscribers are notified if an override was active.
curl -X DELETE "$BASE_URL/api/im/statuspage-rules/override/15" \
-H "Authorization: Bearer $TOKEN"200 OK
{ "ok": true }Common errors
401 Unauthorizedwhen not authenticated403 Forbidden(imAccessDenied) when using a customer-scoped token, or a session without an IM-eligible role403 Forbidden(imNotEnabled) when Incident Management is not enabled for the organization403 Forbidden(imTeamWriteDenied) when you do not meet the write bar for the rule's team (or the new team)403 Forbidden(nodata.code) when setting or clearing an override without theadminoreditorrole400 Bad Request(invalidRequestBody) when:idor:statusPageIdis not a positive integer,teamIdorstatusPageIdis missing or invalid,minSeverity,targetStateorstateis not an allowed value, orautoResolveis not a boolean404 Not Found(imStatuspageRuleNotFound) when the rule does not exist, or belongs to another organization422 Unprocessable Entity(invalidTeamId) whenteamIddoes not belong to your organization422 Unprocessable Entity(invalidStatusPageId) whenstatusPageIddoes not belong to your organization
Outbound Integrations
Forward Incident Management events to Slack, Microsoft Teams, Discord, Jira, PagerDuty, Opsgenie or a generic webhook, and inspect or retry deliveries.
Organization Settings
Read and update the Incident Management settings of your organization: monitoring bridge, SMS/voice overage and the fallback channel.