API & tools
Events
Everything that happens in a workspace is recorded as an event. Events are what channels, subscribers and webhooks deliver, and agents can read the same stream by polling.
Event types
| Type | When | data | Default channel | Subscribers |
|---|---|---|---|---|
monitor.down | A monitor went down (after confirmation). | monitor, check, incident {id,title,url}, ai (opening report or null) | Yes | — |
monitor.up | A down or degraded monitor recovered. | monitor, check, downtimeSeconds, incident {id,url,resolved} | null, ai (recovery report or null) | Yes | — |
monitor.degraded | A monitor became degraded (slow, a soft assertion failed, TLS expiring). | monitor, check | Yes | — |
monitor.reminder | A monitor is still down at one of its reminderMinutes. | monitor, downForMinutes, reminderAfterMinutes, incident {id,title} | Yes | — |
incident.created | An incident was opened, automatically or by a person or agent.Channels: Manual incidents. Automatic ones go to subscribers only (your team gets monitor.down). | incident, update | Yes | Yes |
incident.updated | A public update was posted, or an automatic incident grew or partially recovered.Channels: Manual updates | incident, update | Yes | Yes |
incident.resolved | An incident was resolved.Channels: Manual resolves. Automatic ones go to subscribers only (your team gets monitor.up). | incident, update, durationMinutes, durationText | Yes | Yes |
maintenance.scheduled | A maintenance window was scheduled. | incident (kind: maintenance), update | Yes | Yes |
maintenance.started | A window reached scheduledStart. | incident, update | Yes | Yes |
maintenance.updated | A public update was posted during maintenance. | incident, update | Yes | Yes |
maintenance.completed | A window reached scheduledEnd. | incident, update | Yes | Yes |
incident.acknowledged | Someone acknowledged an incident (API, MCP, dashboard or an alert link).Channels: The channels that were alerted about the incident | incident, ack {at, by, note?, via} | Yes | — |
incident.rollback | Production was rolled back for an incident (alert button, dashboard or API), and again when the result is known.Channels: The channels that were alerted about the incident | incident, rollback {status: requested | recovered | still_failing, provider, projectName, toLabel, requestedBy, result?} | Yes | — |
incident.upstream | An open incident was tagged likely upstream: a third party the failing monitors depend on has an incident that began around the same time.Channels: When tagged after the alert went out: the channels of the failing monitors. At open, the monitor.down alert carries upstream instead | incident {id,title}, upstream {service, name, title, url, evidence, confidence, startedAt, policy} | Yes | — |
upstream.incident | A third-party service you declared as a dependency with outage alerts on (notify) opened, updated or resolved an incident on the components you chose. Sent whatever your own monitors say; one event per change.Channels: The channels chosen on the dependency, whatever their event filter; when none are chosen, every channel that accepts it (it is a default event) | sentence (the alert in one plain sentence), upstream {service, name, phase: opened | updated | resolved, statusUrl, publicUrl, verdictUrl, incident {id, kind, title, url, status, impact, startedAt, resolvedAt, components, lastUpdate}}, monitors {total, failing[], healthy} | Yes | — |
probe.offline | A private probe that had connected has not asked for work for 3 minutes. Monitors that only it can check report "no data" (monitor.noData, dataState: no_data) instead of going down. A default channel event. | probe {id, name, lastSeenAt, version}, monitors [{id, name, onlyThisProbe}], url | Yes | — |
probe.online | A private probe that was reported offline is asking for work again. | probe {id, name, lastSeenAt, version}, offlineSeconds, url | Yes | — |
incident.escalated | An escalation policy paged a level.Channels: Only that level's targets (channels, on-call people) | incident, monitor?, policy {id,name}, level, levels, round, unacknowledgedForMinutes, notified {channelIds, users} | — | — |
incident.unacknowledged | An acknowledgement was removed; reminders and escalation resume.Channels: Never (event stream only) | incident, by | — | — |
component.status_changed | A component's visible (effective) status changed, from any source or override. | component, from, to | — | Webhooks only |
monitor.created | A monitor was created.Channels: Never (event stream only) | monitor | — | — |
monitor.deleted | A monitor was deleted.Channels: Never (event stream only) | monitor {_id, name} | — | — |
monitor.schema_changed | An MCP monitor saw the server's tool list change (see MCP, LLM & credit monitors).Channels: The monitor's channels that list it (or a wildcard) | monitor, schemaChange {id, severity: breaking | non_breaking | description, summary, changes[], fromHash, toHash, pending, tools} | — | — |
deploy.created | A deploy marker was recorded.Channels: Channels that list it (or "*") | deploy | — | — |
deploy.guard.verdict | A deploy guard finished watching its monitors after a deploy.Channels: Never. It is POSTed, signed, to the guard's callbackUrl when one was given | guard {id, status, deployId?, deploy?, startedAt, endsAt, minutes, monitorIds, preexisting, verdict, url} | — | — |
preview.verdict | The monitors finished running against a pull request's preview deployment (see Preview checks).Channels: Channels that list it (or "*") | preview {id, state: pass | fail | error, verdict, previewUrl, commit, branch, pr, repo, checks[] with the diff against production} | — | — |
preview.fix_requested | A failing preview was handed to the Fix with Claude responder, which is asked to push a fix commit to that pull request's branch (see Fix with Claude).Channels: Never. It pages the responder (event stream and audit only) | preview {id, state, verdict, previewUrl, commit, branch, pr, repo, checks[]}, responder {id, name}, by, trigger: auto | workspace | request, incidentId? | — | — |
incident.claimed | An agent responder (or a person through the API) claimed an incident. Renewing a claim does not repeat it.Channels: Never (event stream only) | incident, claim {by, at, expiresAt, …} | — | — |
incident.handed_back | An agent responder handed an incident back to people: it escalated, or its claim lapsed.Channels: The channels that were alerted about the incident | incident, by, reason, cause, escalating | — | — |
incident.draft_created | An agent responder wrote a public update that waits for a person to approve it.Channels: The channels that were alerted about the incident | incident, draft {id, body, status, author}, heldBack? | — | — |
incident.verified | A verification ran fresh checks for an incident from every region.Channels: Never (event stream only) | incident {id, title}, verification {passed, summary, at, by} | — | — |
incident.fix_requested | Fix with Claude: an agent responder was paged to fix an incident, because a person asked (dashboard, API or the Let Claude fix button), the escalation policy reached it, or the last fix did not hold. Emitted when the page is requested; the daily and per-incident attempt limits may still refuse it.Channels: Never (event stream only). The agent responder gets the page itself | incident, responder {id, name}, by, trigger (request | escalation | regression) | — | — |
incident.fix_pr_opened | Fix with Claude: a coding agent opened (or linked) the fix pull request for an incident.Channels: The channels that were alerted about the incident | incident, pr {url, number, title, repo, branch}, by, summary, autoMerge | — | — |
incident.fix_verified | Fix with Claude: the merged fix was deployed, fresh checks passed and the incident was resolved.Channels: The channels that were alerted about the incident (besides the usual recovery alert) | incident, pr, deploy, summary | — | — |
responder.test | A test page was sent to an agent responder (dashboard button or POST /responders/:id/test). Nothing is down.Channels: Never (event stream only) | responder {id, name} | — | — |
monitor.muted | A monitor was muted for a while (quick mute).Channels: Never (event stream only) | monitor {id, name}, mute {until, at, by, reason?} | — | — |
monitor.unmuted | A mute was lifted before it ran out.Channels: Never (event stream only) | monitor {id, name}, by | — | — |
run.flagged | A detection rule flagged an agent run: stuck, loop, budget, overrun or cost spike (see Agent Runs).Channels: The monitor's channels that list it (or a wildcard) | monitor {id, name}, run, detection {rule, severity, message} | — | — |
run.stop_requested | The kill switch was set on an agent run, by a person, an agent responder or policy.Channels: The monitor's channels that list it (or a wildcard), and the monitor's signed stop webhook | monitor {id, name}, run, signal {continue, action, reason}, stop {action, reason, by, source, at} | — | — |
run.resumed | A stopped or paused agent run was allowed to continue.Channels: The monitor's channels that list it (or a wildcard), and the monitor's signed stop webhook | monitor {id, name}, run, signal, by | — | — |
drill.started | An incident drill started (dashboard, API or schedule). The scenario stays hidden while it runs.Channels: Never (event stream only) | drill {id, scenario: null, monitors [{id,name,kind}], endsAt, url}, by | — | — |
drill.completed | An incident drill ended on resolve, hand-back, timeout or because a real incident opened, and was scored.Channels: Never (event stream only) | drill {id, scenario, outcome: resolved | handed_back | timeout | real_incident, score {total, grade} | null, url} | — | — |
drill.cancelled | A running incident drill was ended by hand. It has no score.Channels: Never (event stream only) | drill {id, scenario, outcome: cancelled, score: null, url} | — | — |
digest.weekly | The weekly digest was built (Mondays 08:00 workspace time).Channels: Channels that list it ("digest.*" or "*") | the full digest (summary, monitors, incidents, trends, focus …) | — | — |
quota.warning | A metered plan limit reached 80% or 100%. Once per limit and period (see Plans & billing).Channels: Channels that list it ("quota.*" or "*"). Owners and admins also get one email | quota {key, label, threshold: 80 | 100, used, limit, remaining, percent, period: month | day | standing, periodKey, resetsAt, page {id, name} | null, headline, atLimit}, plan {id, name}, upgrade {plan, name} | null, url | — | — |
incident.note | A note was written in an incident room (dashboard, API, an agent, or mirrored in from a chat thread). Internal: never sent to status page subscribers.Channels: Channels that list it (or a wildcard); always the incident's own chat thread (Slack app, Discord forum webhook); with "Share to chat", the channels that were alerted about the incident | incident, note {id, body, author, authorKind, links?}, fromChannelId? | — | — |
incident.approval_requested | An agent responder asked a person to approve something before doing it (see Incident room).Channels: Not by subscription. The incident commander is paged (else whoever acknowledged, else the people on call); with nobody to name, the channels that were alerted about the incident | incident, approval {id, title, detail, requestedBy, expiresAt}, url | — | — |
incident.approval_decided | A person approved or denied an agent's approval request.Channels: Never (event stream only) | incident, approval {id, title, state: approved | denied, decidedBy, note} | — | — |
test.ping | You tested a channel with POST /channels/:id/test.Channels: Only the tested channel | message, channel {id,name} | — | — |
- Default channel: delivered to alert channels that have no explicit
eventslist. Others need to be listed explicitly or matched by a wildcard ("*","component.*"). - Subscribers: delivered to status page subscribers, for public incidents only, and filtered by their components.
- Monitor events only reach the channels attached to that monitor.
quota.warningis the early warning for plan limits: it fires at 80% and at 100% of a metered limit, once per limit and period, and only reaches channels that list it.
Payload envelopes for each delivery target are on the Webhooks page. In the event stream, data is the same object team webhooks receive.
Polling
GET /events (MCP: events_list) reads the event stream with an API key. It suits agents without a public webhook endpoint, and catching up after downtime.
curl "https://upbutler.com/api/v1/events?types=monitor.down,monitor.up&limit=2" \
-H "Authorization: Bearer $UPBUTLER_API_KEY"{
"data": [
{
"id": "evt_0n3qb7c21k4m6p8r0t2",
"type": "monitor.up",
"at": "2026-10-09T08:26:02.311Z",
"data": { "monitor": { "_id": "mon_0n3q8kz1m4hx7c2v9rt", "name": "Search API", ... }, "downtimeSeconds": 811, ... }
},
{
"id": "evt_0n3q9a12c4r7m1t8wxe",
"type": "monitor.down",
"at": "2026-10-09T08:12:31.880Z",
"data": { "monitor": { ... }, "check": { ... }, "incident": { ... }, "ai": { ... } }
}
],
"next": "evt_0n3q9a12c4r7m1t8wxe"
}| Query | Meaning |
|---|---|
after | Only events after this id, oldest first. Without it, the newest events come first |
types | Comma-separated filter, such as monitor.down,monitor.up (exact types, no wildcards) |
limit | 1–500, default 100 |
next is the id of the last event in data, or your after value when nothing new arrived. With after, feed next back in as the cursor. Ids are time-sortable, so “after” means “newer than”.
const API = "https://upbutler.com/api/v1";
const headers = { Authorization: `Bearer ${process.env.UPBUTLER_API_KEY}` };
// Start at "now": the newest event id (the list is newest-first without "after").
const first = await (await fetch(`${API}/events?limit=1`, { headers })).json();
let cursor: string | null = first.data[0]?.id ?? null;
while (true) {
const url = new URL(`${API}/events`);
if (cursor) url.searchParams.set("after", cursor); // oldest-first after the cursor
url.searchParams.set("limit", "500");
const page = await (await fetch(url, { headers })).json();
for (const event of page.data) await handle(event); // in order
cursor = page.next ?? cursor; // persist this somewhere durable
if (page.data.length < 500) await Bun.sleep(15_000); // caught up: wait a bit
}
async function handle(e: { id: string; type: string; data: any }) {
if (e.type === "monitor.down") console.log("DOWN", e.data.monitor.name, e.data.ai?.analysis ?? "");
}cursor=""
while true; do
resp=$(curl -fsS -G https://upbutler.com/api/v1/events \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
${cursor:+--data-urlencode "after=$cursor"} --data-urlencode "limit=100")
echo "$resp" | jq -c '.data[] | {id, type, at}'
next=$(echo "$resp" | jq -r '.next // empty')
# without a cursor the list is newest-first; start after the newest one
[ -z "$cursor" ] && next=$(echo "$resp" | jq -r '.data[0].id // empty')
cursor=${next:-$cursor}
sleep 15
doneLive stream (SSE)
GET /api/v1/stream pushes the same events as they happen, as Server-Sent Events. It's the push alternative to polling /events or hosting a webhook endpoint. Auth is the same as the REST API: Authorization: Bearer <key> or the dashboard session cookie.
curl -N "https://upbutler.com/api/v1/stream?types=monitor.*,incident.created" \
-H "Authorization: Bearer $UPBUTLER_KEY"id: evt_0n3q9a12c4r7m1t8wxe
data: {"id":"evt_0n3q9a12c4r7m1t8wxe","type":"monitor.down","at":"2026-10-09T09:12:19.000Z","data":{…}}
: ping| Option | Meaning |
|---|---|
types | Comma-separated filter. Prefix wildcards are allowed: monitor.*,incident.created |
after / Last-Event-ID | Resume after this event id. EventSource sends the header automatically on reconnect |
checks=1 | Also send live-only check.completed frames for every finished check. They have no id and can't be replayed |
- Each frame is a default
messageevent withid: <event id>anddata: {"id","type","at","data"}, the same shape asGET /events. - A
: pingcomment is sent every 15 seconds to keep proxies from closing the connection. - The server closes the stream after about 10 minutes. Reconnect with the last id you saw and nothing is lost.
// Reads the SSE stream with fetch so you can send the Authorization header.
let lastId: string | null = null;
while (true) {
const res = await fetch("https://upbutler.com/api/v1/stream?types=monitor.*", {
headers: { Authorization: `Bearer ${process.env.UPBUTLER_API_KEY}`, ...(lastId ? { "Last-Event-ID": lastId } : {}) },
});
const reader = res.body!.pipeThrough(new TextDecoderStream()).getReader();
let buf = "";
for (;;) {
const { value, done } = await reader.read();
if (done) break; // server closes after ~10 min: reconnect and resume
buf += value;
let i;
while ((i = buf.indexOf("\n\n")) >= 0) {
const frame = buf.slice(0, i); buf = buf.slice(i + 2);
const id = frame.match(/^id: (.*)$/m)?.[1];
const data = frame.match(/^data: (.*)$/m)?.[1];
if (id) lastId = id;
if (data) handle(JSON.parse(data)); // {id, type, at, data}
}
}
}