A small team often reaches production before it reaches a paging tool. Someone is on call, the monitoring can call a webhook, and the question is what your app does with that webhook at 3 AM. A text is the simplest thing that can reach a person who isn't looking at a screen, and you can build a workable page in a few hundred lines.

This isn't the Alertmanager receiver or the fallback ladder for customer outage alerts. It's the piece in between: who gets paged, how they say "got it", what happens when they don't, and the one rule of quiet hours that can silently stop an overnight page. We make Ready, so the SMS details use only the request shape we document.

What a page needs, in order

A page is more than one outbound text. Write down the whole loop before you write code:

  1. An event arrives: a health check fails, an error rate crosses a line, a job misses its heartbeat.
  2. The app decides who's on call right now, from the rotation, not from a hard-coded name.
  3. It texts that person and records the page, with the time and the level.
  4. It waits for an acknowledgement, up to a timeout you chose.
  5. If none comes inside that time, it texts the next person on the list.
  6. When someone acknowledges, it stops, and tells everyone who was paged that it's handled.

Steps 4 to 6 are what separate a page from a notification. A notification says something happened. A page keeps asking until a human takes it.

The rotation table

Keep the rotation in your own database. It can be a few rows, and it's the easiest part to get right:

ColumnExample (made up)
level1 for primary, 2 for secondary, 3 for the engineering lead
nameDana
phone+12125550143
starts_at / ends_atThe shift, in UTC
acked_keepalive_atWhen this person last texted the alert number

Two rules keep it honest. A shift must never have a gap, so write a check that fails the deploy if any hour in the next two weeks has no level 1. And store numbers in E.164, since that's what the API expects. A 10-digit US number is treated as +1.

Send the page

The send is one request to POST /v1/messages. Put the alert's ID in the idempotency key so a retry or a duplicate webhook never pages someone twice for the same alert and level:

// page.js (Node 18+)
export async function page(alert, person) {
  const res = await fetch("https://api.tryready.com/v1/messages", {
    method: "POST",
    headers: {
      "X-API-Key": process.env.READY_API_KEY,
      "Content-Type": "application/json",
      "Idempotency-Key": `page-${alert.id}-level-${person.level}`,
    },
    body: JSON.stringify({
      to: person.phone,
      body: `P1 ${alert.service}: ${alert.summary}. Reply A to ack.`,
      consent_attested: true,
    }),
    signal: AbortSignal.timeout(10_000),
  });
  return res.status;
}

Keep the text short, with the service, the symptom and the verb you want back. One segment is 160 characters in the plain GSM-7 character set, and an emoji drops it to 70, so skip emojis. Leave out from, and Ready picks the number: the one this contact already texts with, otherwise your primary number. For answers other than success, read the error codes page, and see our guide to retries and failure handling.

Acknowledge by replying

The reply path is what makes this a page. Register a webhook, and when an inbound text arrives from a number in your rotation, treat any reply starting with "A" as an acknowledgement for the open alert at that person's level. The exact event and field names are in the webhooks docs, and our guide to receiving inbound texts covers verifying the signature, returning quickly and deduping repeats. Treat each delivery as at-least-once: a second "A" for the same alert should change nothing.

An inbound reply is billed at the per-segment rate plus the lower received carrier fee, so an ack costs a little. Compared with a missed page, that's cheap.

Escalate on a timer, with state in your database

Don't hold the escalation timer in memory. A deploy at the wrong moment would restart the process and drop the alert. Store the alert with opened_at, current_level and acked_at, and run a worker every 30 seconds that does one query: open alerts with no ack whose last page is older than the timeout for their level.

A reasonable starting shape, labelled as an example and not a recommendation for your team:

LevelWhoWait before the next level
1Primary5 minutes
2Secondary5 minutes
3Engineering leadKeep paging every 10 minutes until acked

Every page is a segment charged at $0.0075 plus a $0.0045 carrier fee. An alert that walks all three levels costs three segments, plus any repeats. The number is small next to the cost of nobody noticing, but it's not zero, so cap repeats and group alerts, which the next section covers.

The quiet hours trap

This is the part that bites teams at night. Ready enforces quiet hours by the recipient's area. An API text is held only if the recipient's window opens within 6 hours. Otherwise it isn't sent and the API answers 409 QUIET_HOURS_BLOCK. A page at 3 AM local time can hit exactly that.

There's a rule that helps. An API text to a contact who texted this account in the last 24 hours goes out at any hour. So build a keepalive into the shift: at handoff, the new on-call person texts the alert number a word like "on", and your webhook records acked_keepalive_at. For the next 24 hours, their pages aren't held. A 12-hour shift fits inside that window, and a longer shift needs a mid-shift "on" text.

Be careful with the promise, though. It only covers a person who texted in. If the keepalive is missing, the app should say so on the on-call dashboard and in the handoff checklist, and the page should fall to a second channel. Our guide to handling the quiet hours 409 covers what your code does when it gets the 409.

Consent, opt-outs and the weekly drill

Staff are people, and a text is a text. Get each engineer's written agreement to be paged by text, keep it on file, and send consent_attested: true only because it's true. If an engineer replies STOP, Ready honors it, and that number can't be messaged again until it opts back in. Add a weekly check that calls GET /v1/opt-outs/:phone for every number in the rotation and shows a warning when one is listed, so you find out on a Tuesday afternoon and not during an incident.

Run a drill too. Fire a fake alert at the on-call person every week, from a clearly labelled test route, and measure how long the ack takes. A heartbeat that pages the alert system's own failure is worth building: if the worker that escalates stops running, nothing else will notice.

When to use a paging tool instead

A homegrown page is a good first step and a poor last one. Once you need phone calls, scheduled overrides, a mobile app with its own push, or an audit trail for customers, buy it. SMS alone also depends on a carrier and a handset, so keep a second channel for your top severity, as in the fallback ladder.

If you want to build the texting side of this today, the API quickstart gets you from a key to a first send, and the pricing page has the current figures.

The short version

A page is a loop: send, wait, escalate, stop on ack. Keep the rotation and the alert state in your database, ack by reply, use a stable idempotency key per alert and level, and plan for quiet hours with a keepalive text at the start of each shift. Test it weekly, and keep a second channel for the alerts that can't wait.

Accounts opened before November 12, 2026 keep their signup prices, shown under Billing.