Concepts
Alerts, aliases, priorities, escalation, and the guarantees behind them.
#An alert
An alert is something that needs a human. It has a message (what happened, in a sentence), a priority, and optional context: description, entity (what it is about), source, tags and free-form details.
It moves through four states:
acknowledged
open ──────────────────► acknowledged ──► closed
│ \ ▲
│ └── every step used up ──┘ (a late acknowledgement still works)
└──► exhausted ──────────────► closed| State | Meaning |
|---|---|
open | paging in progress |
acknowledged | a human has it; escalation stopped |
exhausted | every escalation step ran and nobody answered; admins were told. A late acknowledgement still works |
closed | done |
An alert that has not been closed is live. The log of everything that happened to it, events, is append-only.
#Aliases and de-duplication
alias is your own key for "the same problem". While an alert with that alias is not closed, a new request with the same alias does not create another one: it increments dedupCount, may add a note, and does not page anyone again. The response says "deduplicated": true.
Choose aliases that mean "this problem": down:web, disk:db1, deploy:production:v42. Without an alias every request is a new alert.
#Idempotency
Retries happen. Send an Idempotency-Key header (1 to 255 characters) with POST /v1/alerts and a retried request returns the original result instead of creating a second alert. The SDK attaches one for you, so its retries are safe. An alias protects against repeated problems; an idempotency key protects against repeated requests. Use both.
#Priority
| Priority | What it does |
|---|---|
P1 | pages now, and keeps going: push, text, call by each person's rules |
P2, P3 | the same rules (the default is P3) |
P4, P5 | push only: informational, never a phone call |
#Who gets paged
Alerts belong to a team. A team has one escalation policy: an ordered list of steps. Each step names targets (a person, a schedule, or a whole team) and says how long to wait for an acknowledgement before moving on. A schedule resolves to whoever is on call at that moment, from its rotations and any overrides. If the policy has repeatCount above zero it starts over; at the end admins are told and the alert becomes exhausted.
Each person has their own notification rules: how, and how quickly, to reach them. Without rules the default is push now, a text after two minutes, a call after five. A text or call only goes to a number the person has verified.
Creating an alert with an organization API key needs teamId unless the organization has exactly one team. Alerts that arrive through an integration key belong to that integration's team.
#Guarantees
- No accepted alert is lost.
202means the alert is stored in two places. If the primary database is failing over, a second store accepts the request and it is applied afterwards, with the same ids. - No double notification for a step. Retries by you, by our workers, or by carriers cannot wake anyone twice for the same step.
- An acknowledgement cancels the steps still waiting. Every pending job re-checks the alert before sending. A late acknowledgement of an exhausted alert still counts.
- Every attempt is recorded: who, which channel, which carrier, the carrier's answer, and the cost.
What we do not promise: that a carrier delivers within a given time. We promise to tell you what the carrier said. Read it from attempts on GET /v1/alerts/{id}.
#Limits worth knowing
- Requests are rate limited per key (3,000 per minute by default). A
429carriesretry-after; the SDK honours it. - Text is shortened, not rejected: a long
messagekeeps its full text in the description, so a page is never lost to a cosmetic limit. An empty message or an unknown priority is a422. - Webhook URLs must be
httpsand must not point at private addresses.