treason.app for developers
On-call paging as a primitive. Page a human, wait for the answer, watch your jobs, read who is on call.
treason.app is an on-call service, and it is also a small set of building blocks you can put in your own software. If your code ever needs a person to do something, or needs to know that a job stopped, this is one HTTP call.
| You want to… | Use | In one line |
|---|---|---|
| Get a human's attention, reliably | Alerts | treason alert create "Disk almost full" |
| Pause a script until a human says yes | Wait for a human | treason alert create "Approve deploy?" --wait 10m |
| Ask a human a yes/no question, and be sure they were reached | Approvals | treason approval request "Deploy v42?" --wait |
| Let an AI agent ask before it acts | MCP server | npx @treason/mcp |
| Point Datadog, Sentry, Grafana, CloudWatch at us | Alert sources | POST /inbound/datadog?key=… |
| Stop paging for what is not worth it | Noise control | treason maintenance start "Deploy" --for 2h |
| Know a page will get through, before the incident | Reachability | treason readiness |
| Keep on-call in a file | Config as code | treason plan -f treason.yaml |
| Know when a cron job or service goes quiet | Heartbeats | treason run --heartbeat nightly -- ./backup.sh |
| Ask who is on call right now | On-call API | GET /v1/oncall?team=payments |
| React when someone acknowledges | Webhooks | signed alert.acknowledged events |
| Do all of it from code | SDK and CLI | npm install @treason/sdk |
Everything is JSON over HTTPS, scoped by API key, and described by an OpenAPI document the API reference is generated from.
#What makes it a good primitive
- It does not lose what you send it. An alert is answered
202only after it is stored in two places. If our database is failing over, a second store takes it and replays it afterwards. - It does not page twice for the same thing. Repeat an alert with the same
aliasand it counts, it does not ring. Send anIdempotency-Keyand a retried request returns the original result. - The first acknowledgement cancels the steps still waiting. It can come from a phone push, a text reply, a keypress on a call, Slack, or your own code.
- Everything is on the record. Every push, text and call is logged with the carrier's answer, so "why did nobody get paged?" has an answer you can read with
GET /v1/alerts/{id}. - It is boring to integrate. Typed errors with stable codes, retries that are safe, cursor pagination, no SDK magic you cannot see through.
#Where to go next
- Quickstart: a key, a curl, a page on your phone, in five minutes.
- Concepts: alerts, aliases, priorities, who gets paged.
- Alert sources: connect the tools you already run.
- Approvals and the MCP server: human-in-the-loop for deploys and AI agents.
- Noise control, Reachability and Shifts: page less, and be sure of the page.
- Configuration as code:
treason plan,treason applyand Terraform. - Examples: small apps you can run.
Status. The API and SDK described here are implemented and tested against a real server. Carrier delivery (the actual texts and calls) and the mobile apps are built but have not yet been exercised against live providers;
docs/STATUS.mdin the repository lists exactly what is and is not verified. Use a development key until you have confirmed delivery to your own phone.