Escalation Tiers
Read, edit and test a team's escalation chain: ordered tiers, their auto-escalation and repeat settings, the schedules under each tier, and a dry run of who would be paged.
A team's escalation chain is an ordered list of tiers. Tier 1 is paged first; the people on call in a tier are whoever the tier's schedules have on shift right now. Each tier decides whether and when the incident moves on to the next tier, and how often the tier is paged again first. Whole-chain repeats live on the team (Update a team).
Authentication
Base IM access: an IM-eligible role or an organization-wide API token, and Incident Management activated for the organization. Reading the chain is open to any caller with that access. Every write needs the team write bar: organization admin role, or team admin of this team. An API token runs with the role of the user who created it, so only a token created by an organization admin passes.
Tier fields
| Field | Type | Description |
|---|---|---|
tierOrder | integer | Position in the chain, 1 = paged first. Changed only through Reorder. |
autoEscalationEnabled | boolean | Whether the incident moves on to the next tier automatically. Default true. |
autoEscalationAfterMinutes | integer | Minutes before it moves on, 0 or more. Default 5. |
autoEscalationStopMode | string | acknowledged or resolved: the incident state that stops the escalation. Default acknowledged. |
autoEscalationSeverities | array | null | Severities that escalate automatically: a subset of critical, warning, minor. null = all. |
autoEscalationTimeFilters | array | Weekly windows in which auto-escalation may fire, up to 50, each { from: "HH:mm", until: "HH:mm", days: number[] } with ISO weekdays (1 = Monday). until may be "24:00". [] = always. |
repeats | integer | How many more times this tier is paged before moving on, 0 or more. Default 0. |
repeatsAfterMinutes | integer | null | Minutes between those repeats. null = use autoEscalationAfterMinutes. |
repeatsStopMode | string | acknowledged or resolved: the incident state that stops the repeats. Default acknowledged. |
Read the escalation chain
GET /api/im/teams/:id/escalations
Returns all tiers in order, each with its schedules, rotation groups and members, plus the team's escalation settings.
Example (cURL)
curl -X GET "$BASE_URL/api/im/teams/3/escalations" \
-H "Authorization: Bearer $TOKEN"Response
200 OK
{
"tiers": [
{
"id": 21,
"tierOrder": 1,
"autoEscalationEnabled": true,
"autoEscalationAfterMinutes": 5,
"autoEscalationStopMode": "acknowledged",
"autoEscalationSeverities": null,
"autoEscalationTimeFilters": [],
"repeats": 0,
"repeatsAfterMinutes": null,
"repeatsStopMode": "acknowledged",
"schedules": [
{
"id": 7,
"displayName": "Primary On-Call",
"timezone": "Europe/Berlin",
"effectiveFrom": null,
"effectiveUntil": null,
"weeklySchedules": [],
"rotationMode": "explicit",
"rotationRepeats": "weekly",
"customRepeatUnit": null,
"customRepeatValue": null,
"autoRotationSize": null,
"roundRobinSize": 1,
"startsOnDayOfWeek": 1,
"startsOnDateOfMonth": null,
"startsOnTime": "09:00",
"rotations": [
{
"id": 12,
"rotationOrder": 1,
"members": [
{ "userId": "u_abc123", "userName": "Ada Lovelace", "userImage": null, "memberOrder": 1 }
]
}
]
}
]
}
],
"teamSettings": {
"timezone": "Europe/Berlin",
"escalationRepeats": 1,
"escalationRepeatsAfterMinutes": 15,
"escalationRepeatsStopMode": "acknowledged",
"engagementReportEnabled": false,
"engagementReportDayOfWeek": null,
"engagementReportTime": null
}
}The schedule fields are explained under Rotation cadence and Update a schedule.
Get a tier
GET /api/im/teams/:id/tiers/:tierId
Reads one tier back with its schedules, rotations and members, in the same shape as an entry of tiers in Read the escalation chain. Any IM-eligible role may call it.
Example (cURL)
curl "$BASE_URL/api/im/teams/3/tiers/7" \
-H "Authorization: Bearer $TOKEN"Response
200 OK, one tier object as in tiers[] above. 404 with imEscalationTierNotFound when :tierId is not a tier of this team.
Add a tier
POST /api/im/teams/:id/tiers
Appends a tier at the end of the chain (tierOrder = highest + 1), or inserts it at the position given in tierOrder. Every tier field except tierOrder can be set in the same request, with the same names and validation as Update a tier; a field left out gets the default from the table above. In the same step it creates one schedule under the tier: named Tier N schedule, 24/7, rotationMode: "none", in the team's timezone (or UTC if the team has none), with one rotation group holding the given members in the given order.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
memberUserIds | string[] | Yes | 1 to 200 distinct user ids, all members of this team. |
tierOrder | integer | No | Position of the new tier, 1 to highest + 1. Every tier at or after it moves down by one, in the same step. Omitted = append at the end. Overrides that target a tier by escalationTierOrder keep their number, as with Reorder. |
autoEscalationEnabled, autoEscalationAfterMinutes, autoEscalationStopMode, autoEscalationSeverities, autoEscalationTimeFilters, repeats, repeatsAfterMinutes, repeatsStopMode | see Tier fields | No | The tier's settings. Omitted = default. |
Example (cURL)
curl -X POST "$BASE_URL/api/im/teams/3/tiers" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"memberUserIds": ["u_abc123", "u_def456"],
"autoEscalationAfterMinutes": 10,
"repeats": 1
}'Response
200 OK: the tier fields plus schedules, holding the one new schedule in the same shape as in the escalation chain (members without userImage).
{
"id": 22,
"tierOrder": 2,
"autoEscalationEnabled": true,
"autoEscalationAfterMinutes": 10,
"autoEscalationStopMode": "acknowledged",
"autoEscalationSeverities": null,
"autoEscalationTimeFilters": [],
"repeats": 1,
"repeatsAfterMinutes": null,
"repeatsStopMode": "acknowledged",
"schedules": [
{
"id": 8,
"displayName": "Tier 2 schedule",
"timezone": "Europe/Berlin",
"effectiveFrom": null,
"effectiveUntil": null,
"weeklySchedules": [],
"rotationMode": "none",
"rotationRepeats": null,
"customRepeatUnit": null,
"customRepeatValue": null,
"autoRotationSize": null,
"roundRobinSize": 1,
"startsOnDayOfWeek": null,
"startsOnDateOfMonth": null,
"startsOnTime": null,
"rotations": [
{
"id": 14,
"rotationOrder": 1,
"members": [
{ "userId": "u_abc123", "userName": "Ada Lovelace", "memberOrder": 1 },
{ "userId": "u_def456", "userName": "Bob Fixit", "memberOrder": 2 }
]
}
]
}
]
}Update a tier
PATCH /api/im/teams/:id/tiers/:tierId
Every field from the tier fields table except tierOrder is optional and patchable. Only fields present in the body change.
Example (cURL)
curl -X PATCH "$BASE_URL/api/im/teams/3/tiers/21" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"autoEscalationAfterMinutes": 10,
"autoEscalationSeverities": ["critical"],
"autoEscalationTimeFilters": [{ "from": "18:00", "until": "08:00", "days": [1, 2, 3, 4, 5] }]
}'Response
200 OK: the tier fields after the update (without schedules).
Delete a tier
DELETE /api/im/teams/:id/tiers/:tierId
Deletes the tier together with its schedules, rotation groups and shifts. The remaining tiers keep their tierOrder, so deleting tier 2 of 3 leaves orders 1 and 3. Close the gap with Reorder if you need contiguous numbers.
Example (cURL)
curl -X DELETE "$BASE_URL/api/im/teams/3/tiers/22" \
-H "Authorization: Bearer $TOKEN"Response
200 OK
{ "success": true }Reorder tiers
POST /api/im/teams/:id/tiers/reorder
Renumbers the chain to 1..n in the order you send.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
tierIds | number[] | Yes | Every tier id of this team exactly once, in the new order. |
Example (cURL)
curl -X POST "$BASE_URL/api/im/teams/3/tiers/reorder" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ "tierIds": [22, 21] }'Response
200 OK
{ "tiers": [{ "id": 22, "tierOrder": 1 }, { "id": 21, "tierOrder": 2 }] }Add a schedule to a tier
POST /api/im/tiers/:tierId/schedules
The team comes from the tier. An unknown tier, or one of another organization, answers 404 imEscalationTierNotFound. The nested path POST /api/im/teams/:id/tiers/:tierId/schedules takes the same body and returns the same response; it is deprecated and removed on 2027-01-18.
Creates a further schedule under a tier, for example a follow-the-sun schedule in another timezone, with its cadence and rotation groups in one call. The tier's on-call set is the union of what all its schedules have on shift.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | 1 to 120 characters after trimming. |
timezone | string | Yes | IANA zone the schedule is evaluated in. |
effectiveFrom | string | null | No | ISO timestamp before which the schedule pages nobody. |
effectiveUntil | string | null | No | ISO timestamp after which the schedule pages nobody. |
weeklySchedules | array | No | On-call windows, same shape as autoEscalationTimeFilters. Omitted or [] = 24/7. |
rotations | array | No | Rotation groups, up to 50, each { members: string[] } with up to 200 distinct members of this team. Array order is rotation order. |
Plus the cadence fields from Rotation cadence. Omitted cadence fields default to rotationMode: "none", roundRobinSize: 1, everything else null. The resulting cadence is validated as a whole.
Example (cURL)
curl -X POST "$BASE_URL/api/im/tiers/21/schedules" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "APAC Follow-the-Sun",
"timezone": "Asia/Singapore",
"weeklySchedules": [{ "from": "09:00", "until": "18:00", "days": [1, 2, 3, 4, 5] }],
"rotationMode": "explicit",
"rotationRepeats": "weekly",
"startsOnDayOfWeek": 1,
"startsOnTime": "09:00",
"rotations": [{ "members": ["u_abc123"] }, { "members": ["u_def456"] }]
}'Response
200 OK: the new schedule in the same shape as in the escalation chain (members without userImage).
Test the escalation chain (dry run)
POST /api/im/teams/:id/escalation-dry-run
Walks the team's tiers the way the escalation engine would for an incident of the given severity arriving at the given time, and reports per tier who would be paged, when, and on which channel, plus what would stop a channel from reaching someone. It sends nothing, writes nothing, creates no incident and does not advance round robin: a round-robin tier is shown as a preview of who the next incident would get from the current cursor.
Who may call it: organization admin or editor, or a team admin of this team. Anyone else gets 403 imTeamWriteDenied.
Request Body
The body is optional; {} or no body runs with the defaults.
| Field | Type | Required | Description |
|---|---|---|---|
at | string | No | ISO 8601 timestamp with offset: when the imagined incident arrives. Default now. |
severity | string | No | sev1, sev2, sev3 or sev4. Default sev1. Picks each person's high (sev1/sev2) or low (sev3/sev4) rule chain. |
Example (cURL)
curl -X POST "$BASE_URL/api/im/teams/3/escalation-dry-run" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ "at": "2026-10-28T23:00:00+01:00", "severity": "sev1" }'Response
200 OK
{
"at": "2026-10-28T22:00:00.000Z",
"severity": "sev1",
"urgency": "high",
"tiers": [
{
"tierId": 21,
"tierOrder": 1,
"offsetMinutes": 0,
"repeatOffsetsMinutes": [10],
"status": "pages",
"filledFromTier": null,
"conditionFailedOpen": false,
"targets": [
{
"userId": "u_abc123",
"name": "Ada Lovelace",
"channels": [
{ "channel": "push", "delayMinutes": 0, "warnings": [] },
{ "channel": "sms", "delayMinutes": 5, "warnings": ["phoneUnverified"] }
],
"warnings": []
}
]
},
{
"tierId": 22,
"tierOrder": 2,
"offsetMinutes": 20,
"repeatOffsetsMinutes": [],
"status": "pages",
"filledFromTier": null,
"conditionFailedOpen": false,
"targets": [
{
"userId": "u_def456",
"name": "Bob Fixit",
"channels": [],
"warnings": ["noRules"]
}
]
},
{
"tierId": 23,
"tierOrder": 3,
"offsetMinutes": null,
"repeatOffsetsMinutes": [],
"status": "notReached",
"filledFromTier": null,
"conditionFailedOpen": false,
"targets": []
}
]
}| Field | Description |
|---|---|
at, severity | The values the dry run used. |
urgency | high for sev1/sev2, low for sev3/sev4. |
tiers[].offsetMinutes | Minutes after the incident when this tier pages. null when the tier is skipped, empty or not reached. |
tiers[].repeatOffsetsMinutes | Minutes after the incident of each repeat of this tier. |
tiers[].status | pages: the tier pages its own on-call people. filledUp: the tier is empty and borrows the people of the nearest higher tier with someone on call (auto fill-up). skipped: the tier's severity filter or time window excludes this incident. empty: nobody is on call and nothing fills the gap. notReached: an earlier tier ends the chain. |
tiers[].filledFromTier | With filledUp: the tierOrder of the tier whose people cover the gap, else null. |
tiers[].conditionFailedOpen | true when the tier's time window could not be read, so the tier pages anyway (as the engine does). |
tiers[].targets[] | The people who would be paged: userId, name, their channels and warnings. |
targets[].channels[] | One entry per rule in the person's chain: channel (push, sms, voice, email), delayMinutes (minutes after the tier pages) and warnings (empty = this channel would be delivered). |
Warning values:
noRules(on the target): the person has no rule for this urgency, so nobody is paged through them.phoneUnverified: SMS or voice, and the person has no confirmed phone number.noDevice: a push rule, but no registered device.quotaExhausted: SMS or voice, and the organization's telco quota is used up with no overage allowed.disabledForSeverity: the person switched this channel off for this severity.
Timing follows the engine: a tier pages, repeats repeats times every repeatsAfterMinutes (else autoEscalationAfterMinutes), then the next tier pages autoEscalationAfterMinutes later. A skipped tier and an empty tier cost no time. A terminal tier (the last one, or one with autoEscalationEnabled: false) ends the chain; every later tier is notReached. The team's repeat of the whole chain (Update a team) is not part of the dry run.
Common errors
401 Unauthorized(unauthorized) when not authenticated403 Forbidden(imAccessDenied) for a customer-scoped token, or a session without an IM-eligible role403 Forbidden(imNotEnabled) when Incident Management is not activated for the organization403 Forbidden(imTeamWriteDenied) on any write when you are neither organization admin nor team admin of this team; on the dry run when you are neither organization admin or editor nor team admin of this team404 Not Found(imTeamNotFound) when the team does not exist or belongs to another organization404 Not Found(imEscalationTierNotFound) when:tierIdis not a tier of this team404 Not Found(imTeamMemberNotFound) when a user id inmemberUserIdsorrotationsis not a member of this team400 Bad Request(invalidRequestBody) when a path id is not a positive integer, the dry run'satis not an ISO 8601 timestamp with offset orseverityis notsev1tosev4,memberUserIdsis missing, empty or holds an empty id,tierIdsis missing, empty, or not distinct positive integers,nameortimezoneis missing or invalid,effectiveFrom/effectiveUntilis not a valid timestamp,rotationsis malformed, ortierOrderis not an integer of1or more422 Unprocessable Entity(imTierReorderMismatch) whentierIdsis not exactly this team's set of tier ids422 Unprocessable Entity(imInvalidRequestBody) whenautoEscalationEnabledis not a boolean422 Unprocessable Entity(imInvalidNumber) whenautoEscalationAfterMinutes,repeatsorrepeatsAfterMinutesis not an integer of0or more, or a cadence number is not an integer of1or more, ortierOrderis higher than the highest tier + 1422 Unprocessable Entity(imInvalidStopMode) when a stop mode is notacknowledgedorresolved422 Unprocessable Entity(imInvalidSeverities) whenautoEscalationSeveritiesis neithernullnor a list ofcritical,warning,minor422 Unprocessable Entity(imInvalidTimeFilter) when a window list is not an array, has more than 50 entries, or an entry is not an object or has nodaysarray422 Unprocessable Entity(imInvalidTimeOfDay) when a window'sfrom/untilorstartsOnTimeis not"HH:mm"422 Unprocessable Entity(imInvalidDayOfWeek) when a window day orstartsOnDayOfWeekis not 1 to 7422 Unprocessable Entity(imInvalidRotationMode) whenrotationModeis notnone,autoorexplicit422 Unprocessable Entity(imInvalidRotation) when the cadence does not hold together, a list exceeds 200 members or 50 rotation groups, or a user id appears twice in one list409 Conflict(imTierOrderConflict) when two tiers were added or moved at the same moment; retry