Escalation¶
Escalation decides who gets paged for a new incident, in what order, and what happens when nobody acknowledges.
Escalation is part of the free core. It never needs a license.
How escalation works¶
There are two parts:
- An escalation policy is an ordered list of steps. Each step pages its targets, then waits for an acknowledgement before the next step runs.
- Routes pick the policy for each new incident, by service and severity.
Steps and targets¶
Each step has:
- Targets: 1 to 10 per step. A target is either a user or a schedule. A schedule target pages whoever is on call on that schedule at the moment the step runs (see On-call schedules).
- Wait for ack: 1 to 1440 minutes. How long the step waits before the next step runs.
- Round robin (optional): page only one of the step's targets per incident, taking turns across incidents. Without it, the step pages every target.
A page goes out through each person's own notification rules (email, SMS, push and so on; see Notifications).
If a step could not page anybody (nobody on call, a deleted user or schedule, a person with no verified contact method), the escalation does not wait. It moves on to the next step at once.
Repeat¶
If nobody acks, repeat runs the whole policy again from step 1 after the last step's wait runs out. You can repeat 0 to 9 times. With never (0), the escalation stops after the last step's wait. When the last run ends with no acknowledgement, the escalation is marked exhausted.
Routes¶
When an incident is created and is still open, Argavon checks the routes from top to bottom and uses the first route that matches. If no route matches, the incident does not escalate on its own.
A route matches when:
-
Service matches the incident's service. Matching ignores case. Use:
*for every service,pay*for every service that starts withpay,*-dbfor every service that ends with-db,- or an exact name.
One
*only, at the start or the end. - Min severity is empty (any), or the incident's severity is at least that level. The order isinfo<low<warning=medium<high<critical. An incident whose severity is not on that list never matches a route that sets a minimum severity.
A * route with no minimum severity catches everything
A route with service * and severity any matches every incident. Any route below it can never match. Put specific routes first and the catch-all route last.
When someone acknowledges or resolves¶
- Acknowledge or resolve the incident, from anywhere (the web app, the API, or a notification), and the escalation stops. Its status becomes
acknowledgedorresolved. Pages that were queued but not sent yet are cancelled. - Reopen an incident that was acknowledged or resolved, and the escalation starts again from step 1 with the same policy. If the incident never escalated before, it is routed like a new incident.
- Only open incidents escalate. Sample incidents never page anyone.
Escalation status¶
An incident's escalation has one of these statuses:
| Status | Meaning |
|---|---|
active |
Running. The next step is due at next_step_at. |
acknowledged |
Stopped because the incident was acknowledged. |
resolved |
Stopped because the incident was resolved. |
exhausted |
Every step (and every repeat) ran and nobody acknowledged. |
cancelled |
Stopped because the policy or the incident is gone. |
Notes on the incident timeline¶
Every escalation event is written to the incident's history, by the actor escalation. In the web app they appear on the incident's Timeline tab. The notes look like this:
Escalation started: policy "Platform" (route "pay*")
Escalation "Platform" step 1 of 2: paged alice@example.com (on call for Platform primary)
Escalation "Platform" step 2 of 2: nobody could be paged (nobody is on call for Secondary)
Escalation "Platform" step 1 of 2 (repeat 1 of 2): paged alice@example.com (on call for Platform primary)
Escalation "Platform" finished: nobody acknowledged after every step
Escalation stopped: incident acknowledged
An escalation started by hand says (started by hand); one restarted by a reopen says (incident reopened). When a target is skipped, the note says why, for example bob@example.com: this user has no verified contact methods or a schedule target no longer exists.
Limits¶
| What | Limit |
|---|---|
| Policies per workspace | 200 |
| Steps per policy | 20 |
| Targets per step | 10 |
| Wait per step | 1 to 1440 minutes |
| Repeat | 0 to 9 |
| Routes per workspace | 200 |
| Policy name | 80 characters, unique in the workspace |
| Description | 500 characters |
| Route service pattern | 200 characters |
Escalation steps are checked every 5 seconds, so a step can run a few seconds after it is due.
Who can do what¶
Anyone signed in can see policies, routes and an incident's escalation. Creating or changing policies and routes, and starting an escalation by hand, needs the operator role or higher. The Pages tab on an incident also needs the operator role.
In the web app¶
Open Escalation in the navigation.
Create a policy¶
- Click New policy.
- Fill in Name and an optional Description.
- Set If nobody acks, repeat (
never, or 1 to 9 times). - In Step 1, pick a target in the drop-down and click Add target. Schedules are listed as
On call: <schedule name>; people by email. Add more targets if you want. - Set Wait for ack (minutes).
- Tick Round robin (one target per incident) if only one target should be paged per incident.
- Click Add step for the next step. Use the arrows to reorder steps.
- Click Save policy.
Each policy card shows its steps in words, for example on call for Platform primary, then wait 5 min. A policy that repeats shows repeats 2×.
You cannot delete a policy that a route uses. Change the route first.
Set up routes¶
- In Routes, click Edit routes. You need at least one policy first.
- Click Add route. A new route starts as service
*, severityany. - Set the Service pattern, the Min severity, and the Policy.
- Use the up arrow to move a route higher. The cross removes it.
- Click Save routes.
The routes are saved as one ordered list. With no routes, the page says No routes: new incidents do not escalate on their own.
Follow an incident's escalation¶
Open the incident and go to the Pages tab. A line at the top shows the escalation status, the policy, the next step and when it is due, and the last note. Below it is the list of every page that was sent.
To stop the escalation, acknowledge or resolve the incident.
Note
The web app has no button to start an escalation by hand. Use the API (below), or the Page button on the incident to page one person (see Notifications).
API¶
All endpoints are under /api/v1 and take a bearer token (a session token or an API key) in the Authorization header. Errors come back as {"error": "...", "code": "..."}.
| Method and path | What it does | Role |
|---|---|---|
GET /api/v1/escalation-policies |
List policies ({"items": [...]}) |
any |
POST /api/v1/escalation-policies |
Create a policy | operator |
GET /api/v1/escalation-policies/{id} |
Get one policy | any |
PUT /api/v1/escalation-policies/{id} |
Replace a policy | operator |
DELETE /api/v1/escalation-policies/{id} |
Delete a policy that no route uses | operator |
GET /api/v1/escalation-routes |
List routes, in order | any |
PUT /api/v1/escalation-routes |
Replace the whole ordered route list | operator |
GET /api/v1/incidents/{id}/escalation |
The incident's escalation | any |
POST /api/v1/incidents/{id}/escalate |
Start or restart an escalation with a policy | operator |
Policy fields¶
| Field | Type | Notes |
|---|---|---|
name |
string | Required. |
description |
string | Optional. |
repeat |
integer | 0 to 9. |
steps |
array | 1 to 20 steps. |
steps[].delay_minutes |
integer | 1 to 1440. |
steps[].round_robin |
boolean | Optional. |
steps[].targets |
array | 1 to 10 of {"type": "user" or "schedule", "id": "..."}. |
On reads, each target also has a name: the user's email or the schedule name, or (deleted) if it no longer exists.
Find user ids with GET /api/v1/directory/users and schedule ids with GET /api/v1/schedules.
Example: create a policy¶
Page whoever is on call on the primary schedule, wait 10 minutes, then page the team lead. Repeat the whole thing twice:
curl -s -X POST https://argavon.com.com/api/v1/escalation-policies \
-H "Authorization: Bearer $NEUROOPS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Platform",
"description": "Primary on call, then the team lead",
"repeat": 2,
"steps": [
{"delay_minutes": 10, "targets": [{"type": "schedule", "id": "SCHEDULE_ID_PRIMARY"}]},
{"delay_minutes": 15, "targets": [{"type": "user", "id": "USER_ID_LEAD"}]}
]
}'
The answer is 201 Created with the policy and its new id.
Example: set the routes¶
PUT replaces the whole list. The order you send is the order used for matching:
curl -s -X PUT https://argavon.com.com/api/v1/escalation-routes \
-H "Authorization: Bearer $NEUROOPS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"routes": [
{"service": "pay*", "min_severity": "high", "policy_id": "POLICY_ID_PAYMENTS"},
{"service": "*-db", "min_severity": "", "policy_id": "POLICY_ID_DATABASE"},
{"service": "*", "min_severity": "", "policy_id": "POLICY_ID_PLATFORM"}
]
}'
The answer is the stored list in items, with new route ids and each policy_name. To remove every route, send {"routes": []}.
Example: escalate an incident by hand¶
curl -s -X POST https://argavon.com.com/api/v1/incidents/$INCIDENT_ID/escalate \
-H "Authorization: Bearer $NEUROOPS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"policy_id": "POLICY_ID_PLATFORM"}'
If the incident already has an escalation, this starts a new run from step 1 with the policy you name.
Example: check an incident's escalation¶
curl -s https://argavon.com.com/api/v1/incidents/$INCIDENT_ID/escalation \
-H "Authorization: Bearer $NEUROOPS_TOKEN"
{
"id": "esc-...",
"incident_id": "...",
"policy_id": "esp-...",
"policy_name": "Platform",
"run": 1,
"step_index": 1,
"loop": 0,
"status": "active",
"next_step_at": "2026-11-04T10:25:00Z",
"last_note": "Escalation \"Platform\" step 1 of 2: paged alice@example.com (on call for Platform primary)",
"started_at": "2026-11-04T10:15:00Z",
"updated_at": "2026-11-04T10:15:01Z",
"step_count": 2,
"repeat": 2
}
step_index is the next step to run, counted from 0. loop is how many repeats have started. run goes up each time the escalation is restarted. An incident that never escalated returns 404 with this incident has no escalation.
Example: acknowledge¶
Acknowledging stops the escalation:
curl -s -X POST https://argavon.com.com/api/v1/incidents/$INCIDENT_ID/ack \
-H "Authorization: Bearer $NEUROOPS_TOKEN"
/resolve and /reopen work the same way.
If it does not work¶
| Message | What to do |
|---|---|
name is required (at most 80 characters) |
Give the policy a name. |
repeat must be between 0 and 9 |
Fix repeat. |
a policy needs 1 to 20 steps |
Add or remove steps. |
step 1: delay_minutes must be between 1 and 1440 |
Fix the wait. |
step 1: needs 1 to 10 targets |
Add a target. The web app says Every step needs at least one target. |
step 1: "..." is not a user of this workspace |
Use a user id from GET /api/v1/directory/users. |
step 1: schedule "..." not found |
Use a schedule id from GET /api/v1/schedules. |
step 1: target type must be user or schedule |
Fix type. |
step 1: the same target is listed twice |
Remove the duplicate. |
an escalation policy named "..." already exists |
Names are unique in the workspace. |
this policy is used by an escalation route; change the route first |
Point the route at another policy, or remove it, then delete. |
route 1: service is required (use * for every service) |
Set a service pattern. |
route 1: service may use one * at the start or end only |
Patterns like pay*db are not allowed. |
route 1: min_severity must be one of info, low, warning, medium, high, critical |
Fix the severity, or leave it empty. |
route 1: escalation policy not found |
Use an existing policy id. |
incident is resolved; only open incidents escalate |
Reopen the incident first. |
policy_id is required |
Send policy_id with /escalate. |
role '...' does not have permission; requires 'operator' or higher |
Ask an admin for the operator role. |
Other checks:
- A new incident did not escalate. Look at the routes from the top. Is there a route above the one you expect that matches first? Does the incident's service match the pattern? Is its severity high enough? Was the incident still open when it was created (an incident resolved straight away does not escalate)?
- The escalation ran but nobody got a page. Read the note on the Pages tab or the Timeline tab.
nobody is on call for ...means the schedule has a gap right now.this user has no verified contact methodsorthis user has no notification rules for their verified contact methodsmeans that person has not set up notifications.suppressed: paging storm protectionmeans the person was paged too often in a short time. - The escalation went straight to the next step. That is on purpose: a step that paged nobody does not wait.
- A target shows
(deleted). The user or schedule was removed. Deleting a schedule does not check whether a policy uses it. Edit the policy and pick a new target. - The escalation shows
cancelledwith the notepolicy deleted. The policy was deleted while the escalation was running.