Documentation

Page your on-call team with one HTTP request

PagerX exposes a simple webhook per service. Hit the URL from any monitoring tool and every team member's phone rings with a loud full-screen alarm.

Quick start

  1. Create a PagerX account. A team is auto-created for you.
  2. Install the PagerX mobile app on iOS or Android and sign in with the same account. This is how you receive pages.
  3. In the dashboard, create a Service for each system you want to monitor (e.g. "Production API", "Postgres").
  4. Copy the service's webhook URL and wire it into your monitoring tool.
  5. When a check fails, your tool POSTs to the URL — your phone rings.

Webhook URL

Each service has a unique URL with an unguessable token. Treat it like an API key — anyone who has it can fire a page.

https://pagerx.cvasingh.com/api/services/<slug>/alert?token=<secret>
  • <slug> — a short identifier derived from the service name, e.g. production-api-a1b2c3
  • <secret> — a 48-character hex token generated on service creation
If a token leaks, delete the service in the dashboard and create a new one. There's no rotation flow yet.

Payload

POST to the URL. Fields can go in either the JSON body or query string — body wins on conflict.

Fields

titlestringRequired-ish. Defaults to the service name.
bodystringRequired-ish. Defaults to 'Alert from <service>'.
severitystringOptional. Defaults to 'CRITICAL'. Free-form.
escalateAfterMinutesnumberOptional. Default 2. Mobile alarm re-fires after N minutes if not acknowledged.
acknowledgeUrlstringOptional. POSTed to when the user taps Acknowledge on the alarm screen.

Examples

curl

curl -X POST \  "https://pagerx.cvasingh.com/api/services/production-api-a1b2c3/alert?token=YOUR_SECRET" \  -H "Content-Type: application/json" \  -d '{    "title": "Database unreachable (prod)",    "body": "Primary PostgreSQL is not accepting connections.",    "severity": "CRITICAL",    "escalateAfterMinutes": 3  }'

Browser / quick test

For a one-shot test you can put everything in query params:

https://pagerx.cvasingh.com/api/services/<slug>/alert?token=<secret>&title=Test&body=Hello
Most tools (Datadog, Grafana, Prometheus Alertmanager) only let you configure POST + a URL. Use a JSON body for those; map their alert fields to title and body.

Datadog (webhook integration)

Integrations → Webhooks → New. Set the URL to your service webhook, POST method, and use this payload template:

{  "title": "$EVENT_TITLE",  "body": "$EVENT_MSG",  "severity": "$ALERT_TYPE"}

Grafana (contact point)

Alerting → Contact points → Add → Webhook. URL = service webhook URL. Grafana posts a JSON envelope that already has the right shape; PagerX accepts unknown fields and only reads what it needs.

Generic shell script / cron

#!/usr/bin/env bashset -euo pipefail if ! curl -sf https://api.example.com/health > /dev/null; then  curl -X POST \    "https://pagerx.cvasingh.com/api/services/api-health-xyz/alert?token=$PAGERX_TOKEN" \    -H "Content-Type: application/json" \    -d '{"title":"api health check failed","body":"https://api.example.com/health returned non-2xx"}'fi

Mobile app

PagerX's iOS and Android apps are how pages actually reach you.

Android

  • Grant Notifications, Do Not Disturb override, and Full-screen alerts (Android 14+ requires a special access toggle).
  • Disable battery optimization for PagerX — some OEMs (Xiaomi, OnePlus, Huawei) silently kill backgrounded apps and drop FCM messages otherwise.
  • Alarms ring even with the phone in silent mode by overriding the DND policy filter temporarily.

iOS

  • Pages arrive as VoIP pushes — they ring like an incoming call (full screen, even in Focus modes / silent), powered by CallKit.
  • Tap Accept to acknowledge. Decline also counts as acknowledged.

API reference

Beyond the webhook, the dashboard talks to a small REST API. All authenticated endpoints expect a Firebase ID token in the Authorization: Bearer header.

GET /api/healthPublicLiveness probe. Returns { ok: true }.
GET /api/meAuthCurrent user profile + role in current team. Auto-creates rows on first call.
PATCH /api/meAuthSwitch active team — body: { currentTeamId }.
GET /api/teamsAuthList every team you're a member of (with role + current flag).
POST /api/teamsAuthCreate a new team. You become admin + it's set as current.
GET /api/teamAuthCurrent team + members.
PATCH /api/teamAuth (owner)Rename current team.
POST /api/team/membersAuth (owner)Add member by email.
DELETE /api/team/meAuth (not owner)Leave the current team.
DELETE /api/team/members/:uidAuth (owner)Remove a member.
PATCH /api/team/members/:uid/roleAuth (owner)Promote/demote between admin and member.
GET /api/servicesAuthList services that page the current team.
POST /api/servicesAuth (admin)Create a service. Body: { name, teamIds? }. Defaults to current team only.
PATCH /api/services/:idAuth (admin)Update name / paused / useSchedule / teamIds.
DELETE /api/services/:idAuth (admin)Delete a service.
POST /api/services/:slug/alertToken in URLPublic webhook ingest. Fires a page to every member of every team the service is in.
GET /api/incidentsAuthIncidents for the current team. Optional ?status=firing|acknowledged|resolved.
POST /api/incidents/:id/acknowledgeAuthMark an incident acknowledged. Stops alarm on every team member's device.
POST /api/incidents/:id/resolveAuthMark an incident resolved (auto-acks if not already).
GET /api/scheduleAuthCurrent team's rotation + computed on-call now.
PUT /api/scheduleAuth (admin)Replace the rotation.
POST /api/tokensAuthMobile app registers its FCM / APNs VoIP token.
POST /api/admin/backfillAuthIdempotent migration: populates teamIds arrays + missing memberships.

FAQ

▾The webhook returned 200 but no page rang. Why?
Most likely your mobile app hasn't registered a push token yet. Open the app at least once and confirm the token is registered in the AppBar's account menu. On Android, also check that Notifications + DND + Full-screen alerts permissions are granted.
▾Can I have multiple services?
Yes, any number. Each gets its own URL. Services can target one or more teams — pick them when creating, or click 'edit' on the team count later.
▾Can I belong to multiple teams?
Yes. Use the team switcher in the dashboard top bar to create teams and move between them. Each team has its own services, schedules, incidents, and members.
▾What does 'Route via schedule' do?
When enabled, the webhook only pages the user who's currently on-call per the team's rotation. With it off, every member of every team the service is in gets paged. The toggle lives on each service card.
▾Can I pause a service temporarily?
Yes — admins see a Pause button on each service. While paused, the webhook returns 200 to keep your monitoring tool happy, but no devices ring and no incident is recorded. Tap Resume to un-pause.
▾What if I lose my webhook URL?
Open the service in the dashboard — the URL is shown there. You can also delete and recreate the service; the new URL is different (you'll need to update wherever you configured the old one).
▾Is there a free plan?
Right now PagerX is in beta and free for early users. Pricing later won't surprise you — you'll get advance notice.
▾How does escalation work?
If a page isn't acknowledged within escalateAfterMinutes (default 2), the alarm re-fires on the same devices via AlarmManager — works even in Doze. True multi-person escalation chains come with Schedules.