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
- Create a PagerX account. A team is auto-created for you.
- Install the PagerX mobile app on iOS or Android and sign in with the same account. This is how you receive pages.
- In the dashboard, create a Service for each system you want to monitor (e.g. "Production API", "Postgres").
- Copy the service's webhook URL and wire it into your monitoring tool.
- 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
Payload
POST to the URL. Fields can go in either the JSON body or query string — body wins on conflict.
Fields
title | string | Required-ish. Defaults to the service name. |
body | string | Required-ish. Defaults to 'Alert from <service>'. |
severity | string | Optional. Defaults to 'CRITICAL'. Free-form. |
escalateAfterMinutes | number | Optional. Default 2. Mobile alarm re-fires after N minutes if not acknowledged. |
acknowledgeUrl | string | Optional. 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=Hellotitle 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"}'fiMobile 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/health | Public | Liveness probe. Returns { ok: true }. |
GET /api/me | Auth | Current user profile + role in current team. Auto-creates rows on first call. |
PATCH /api/me | Auth | Switch active team — body: { currentTeamId }. |
GET /api/teams | Auth | List every team you're a member of (with role + current flag). |
POST /api/teams | Auth | Create a new team. You become admin + it's set as current. |
GET /api/team | Auth | Current team + members. |
PATCH /api/team | Auth (owner) | Rename current team. |
POST /api/team/members | Auth (owner) | Add member by email. |
DELETE /api/team/me | Auth (not owner) | Leave the current team. |
DELETE /api/team/members/:uid | Auth (owner) | Remove a member. |
PATCH /api/team/members/:uid/role | Auth (owner) | Promote/demote between admin and member. |
GET /api/services | Auth | List services that page the current team. |
POST /api/services | Auth (admin) | Create a service. Body: { name, teamIds? }. Defaults to current team only. |
PATCH /api/services/:id | Auth (admin) | Update name / paused / useSchedule / teamIds. |
DELETE /api/services/:id | Auth (admin) | Delete a service. |
POST /api/services/:slug/alert | Token in URL | Public webhook ingest. Fires a page to every member of every team the service is in. |
GET /api/incidents | Auth | Incidents for the current team. Optional ?status=firing|acknowledged|resolved. |
POST /api/incidents/:id/acknowledge | Auth | Mark an incident acknowledged. Stops alarm on every team member's device. |
POST /api/incidents/:id/resolve | Auth | Mark an incident resolved (auto-acks if not already). |
GET /api/schedule | Auth | Current team's rotation + computed on-call now. |
PUT /api/schedule | Auth (admin) | Replace the rotation. |
POST /api/tokens | Auth | Mobile app registers its FCM / APNs VoIP token. |
POST /api/admin/backfill | Auth | Idempotent migration: populates teamIds arrays + missing memberships. |