Automate StatusPage, Monitoring, and Pager
Start with the job you want to automate. Each product has its own credential and scope: a page token, Monitoring ingest token, and Pager incoming key are not interchangeable.
| Your job | Start here | Credential |
|---|---|---|
| Publish or resolve a customer incident | StatusPage API quickstart | Page API token with incident permission |
| Bring an existing monitoring system’s health events into StatiBeat | Monitoring signal example below | Inbound source ingest token |
| Start a response directly from another system | Pager event example below | Pager incoming integration key |
| Manage durable configuration across the three products | Organization Terraform workspace | Dedicated organization Terraform credential |
| Let an assistant inspect or change a StatusPage | Hosted MCP | User OAuth consent and existing page permissions |
The API Reference describes the published operations and exact schemas. Product access, resource permissions and plan limits still apply. Setting up a credential does not enable another product or grant additional access.
StatusPage: publish a customer update
Follow the API quickstart to create a page token, verify the selected page, publish an incident, and resolve it using the same identifier. It includes expected outcomes and recovery steps.
For the same job in the app, use Incidents and maintenance. Use API Examples for maintenance windows and page-bound Beats. Organization Monitoring Beats use their own scope; page-bound examples do not create organization-wide monitoring.
Monitoring: send a health signal
Use this when another tool already detects the problem and you want a health record in Monitoring. If you only need to open a Pager alert, skip to the Pager example.
- In Monitoring → Incoming Signals, create an inbound source. Save its one-time ingest token in your secret manager.
- Create an External Event Beat and a signal rule joining that Beat to your source. For this example, select state field
$.state, critical valuefiring, and recovered valueresolved. - Keep downstream publication and responder connections isolated while testing. See Incoming Signals for the complete setup.
Use your application host, not a StatusPage domain. These commands use Bash:
export STATIBEAT_APP_URL="https://<your-application-host>"
read -rsp "Monitoring source token: " STATIBEAT_INGEST_TOKEN; export STATIBEAT_INGEST_TOKEN; echo
curl --fail-with-body -sS -X POST "$STATIBEAT_APP_URL/api/v1/external-events/ingest" \
-H "X-External-Event-Token: $STATIBEAT_INGEST_TOKEN" \
-H "Content-Type: application/json" \
-d '{"state":"firing","service":"checkout-api"}'
Check Recent deliveries for the received event and the selected Beat for critical health and evidence. An accepted request alone does not prove the rule matched.
Then send recovery through the same source:
curl --fail-with-body -sS -X POST "$STATIBEAT_APP_URL/api/v1/external-events/ingest" \
-H "X-External-Event-Token: $STATIBEAT_INGEST_TOKEN" \
-H "Content-Type: application/json" \
-d '{"state":"resolved","service":"checkout-api"}'
Confirm the Beat recovers. If the event arrives but health does not change, check the rule’s source, Beat, JSON path and selected values. If authentication fails, check the source credential and rotation/revocation state. This token submits events only; it cannot manage Beats.
Once both cases work, configure the intended alert destinations, Pager Service connection or StatusPage binding. Verify the actual downstream result separately. For configuration as code, use Terraform; do not use the source ingest token as an administrative credential.
Pager: trigger and recover an alert
Use this when an external system should start a response directly. Services ring Pagers; this does not require a StatusPage or a Monitoring Beat.
- Configure the test Service’s Pager and Response Target in Services and routing.
- Open Incoming connections, create a Service-bound integration, and select that Service.
- Save its one-time key in your secret manager. Copy the event endpoint shown in Event setup; it includes your organization selector.
- Use a test Service with willing recipients. A trigger may page its holders.
These Bash examples assume a Service-bound key. A generic key needs the routing fields described in the API Reference.
export STATIBEAT_PAGER_EVENTS_URL="https://<your-application-host>/api/v1/orgs/by-slug/<your-org-slug>/pager/events"
read -rsp "Pager incoming key: " STATIBEAT_PAGER_TOKEN; export STATIBEAT_PAGER_TOKEN; echo
export STATIBEAT_TRIGGER_TIME="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
curl --fail-with-body -sS -X POST "$STATIBEAT_PAGER_EVENTS_URL" \
-H "Authorization: Bearer $STATIBEAT_PAGER_TOKEN" \
-H "Content-Type: application/json" \
--data-binary @- <<JSON
{
"action":"trigger",
"event_id":"checkout-test-trigger-001",
"dedupe_key":"checkout-test-001",
"severity":"critical",
"summary":"Checkout API is unavailable",
"source":"custom-api",
"source_id":"checkout-api",
"occurred_at":"$STATIBEAT_TRIGGER_TIME"
}
JSON
Inspect the response’s decision and Alert identity, then open Alerts and inspect its Service, route and delivery activity. Accepted ingestion is not proof that someone received or acknowledged a notification.
Send recovery with the same source identity and deduplication key, and a new event ID:
export STATIBEAT_RECOVERY_TIME="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
curl --fail-with-body -sS -X POST "$STATIBEAT_PAGER_EVENTS_URL" \
-H "Authorization: Bearer $STATIBEAT_PAGER_TOKEN" \
-H "Content-Type: application/json" \
--data-binary @- <<JSON
{
"action":"recovery",
"event_id":"checkout-test-recovery-001",
"dedupe_key":"checkout-test-001",
"severity":"critical",
"summary":"Checkout API has recovered",
"source":"custom-api",
"source_id":"checkout-api",
"occurred_at":"$STATIBEAT_RECOVERY_TIME"
}
JSON
Confirm the response and Alert show the intended recovery. For each new test, choose a new pair of event IDs and deduplication key. On a transport retry, reuse the original event ID, timestamp and unchanged payload (do not regenerate its time); do not reuse that ID for a different event. If an event is ignored or has no usable response route, inspect the decision reason and Service readiness before sending more events.
The key has fixed pager:events:write scope. It cannot manage Pager configuration or another product. Rotate/revoke it in Incoming connections when ownership changes. For asynchronous ingestion, inspect the receipt until processing completes; queue custody is a separate result from alert handling and delivery.
Manage configuration across products
Use Terraform Workspace and Export to export existing resources or start a fresh configuration with an organization credential. Use Provider Configuration for install commands and Resources and Data Sources for field and import references.
Check the export manifest, run terraform validate, and inspect terraform plan before applying. For existing resources, establish a no-op plan after import. Terraform manages durable configuration; operational incidents, alert acknowledgement and one-off Beat runs belong in their product workflows.
After temporary tests, revoke unused credentials and clear local token variables:
unset STATIBEAT_INGEST_TOKEN STATIBEAT_PAGER_TOKEN