Skip to content
Docs/Events

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

TypeWhendataDefault channelSubscribers
monitor.downA monitor went down (after confirmation).monitor, check, incident {id,title,url}, ai (opening report or null)Yes—
monitor.upA down or degraded monitor recovered.monitor, check, downtimeSeconds, incident {id,url,resolved} | null, ai (recovery report or null)Yes—
monitor.degradedA monitor became degraded (slow, a soft assertion failed, TLS expiring).monitor, checkYes—
monitor.reminderA monitor is still down at one of its reminderMinutes.monitor, downForMinutes, reminderAfterMinutes, incident {id,title}Yes—
incident.createdAn 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, updateYesYes
incident.updatedA public update was posted, or an automatic incident grew or partially recovered.Channels: Manual updatesincident, updateYesYes
incident.resolvedAn incident was resolved.Channels: Manual resolves. Automatic ones go to subscribers only (your team gets monitor.up).incident, update, durationMinutes, durationTextYesYes
maintenance.scheduledA maintenance window was scheduled.incident (kind: maintenance), updateYesYes
maintenance.startedA window reached scheduledStart.incident, updateYesYes
maintenance.updatedA public update was posted during maintenance.incident, updateYesYes
maintenance.completedA window reached scheduledEnd.incident, updateYesYes
incident.acknowledgedSomeone acknowledged an incident (API, MCP, dashboard or an alert link).Channels: The channels that were alerted about the incidentincident, ack {at, by, note?, via}Yes—
incident.rollbackProduction 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 incidentincident, rollback {status: requested | recovered | still_failing, provider, projectName, toLabel, requestedBy, result?}Yes—
incident.upstreamAn 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 insteadincident {id,title}, upstream {service, name, title, url, evidence, confidence, startedAt, policy}Yes—
upstream.incidentA 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.offlineA 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}], urlYes—
probe.onlineA private probe that was reported offline is asking for work again.probe {id, name, lastSeenAt, version}, offlineSeconds, urlYes—
incident.escalatedAn 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.unacknowledgedAn acknowledgement was removed; reminders and escalation resume.Channels: Never (event stream only)incident, by——
component.status_changedA component's visible (effective) status changed, from any source or override.component, from, to—Webhooks only
monitor.createdA monitor was created.Channels: Never (event stream only)monitor——
monitor.deletedA monitor was deleted.Channels: Never (event stream only)monitor {_id, name}——
monitor.schema_changedAn 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.createdA deploy marker was recorded.Channels: Channels that list it (or "*")deploy——
deploy.guard.verdictA deploy guard finished watching its monitors after a deploy.Channels: Never. It is POSTed, signed, to the guard's callbackUrl when one was givenguard {id, status, deployId?, deploy?, startedAt, endsAt, minutes, monitorIds, preexisting, verdict, url}——
preview.verdictThe 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_requestedA 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.claimedAn 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_backAn agent responder handed an incident back to people: it escalated, or its claim lapsed.Channels: The channels that were alerted about the incidentincident, by, reason, cause, escalating——
incident.draft_createdAn agent responder wrote a public update that waits for a person to approve it.Channels: The channels that were alerted about the incidentincident, draft {id, body, status, author}, heldBack?——
incident.verifiedA 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_requestedFix 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 itselfincident, responder {id, name}, by, trigger (request | escalation | regression)——
incident.fix_pr_openedFix with Claude: a coding agent opened (or linked) the fix pull request for an incident.Channels: The channels that were alerted about the incidentincident, pr {url, number, title, repo, branch}, by, summary, autoMerge——
incident.fix_verifiedFix 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.testA 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.mutedA monitor was muted for a while (quick mute).Channels: Never (event stream only)monitor {id, name}, mute {until, at, by, reason?}——
monitor.unmutedA mute was lifted before it ran out.Channels: Never (event stream only)monitor {id, name}, by——
run.flaggedA 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_requestedThe 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 webhookmonitor {id, name}, run, signal {continue, action, reason}, stop {action, reason, by, source, at}——
run.resumedA 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 webhookmonitor {id, name}, run, signal, by——
drill.startedAn 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.completedAn 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.cancelledA 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.weeklyThe 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.warningA 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 emailquota {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.noteA 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 incidentincident, note {id, body, author, authorKind, links?}, fromChannelId?——
incident.approval_requestedAn 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 incidentincident, approval {id, title, detail, requestedBy, expiresAt}, url——
incident.approval_decidedA person approved or denied an agent's approval request.Channels: Never (event stream only)incident, approval {id, title, state: approved | denied, decidedBy, note}——
test.pingYou tested a channel with POST /channels/:id/test.Channels: Only the tested channelmessage, channel {id,name}——
  • Default channel: delivered to alert channels that have no explicit events list. 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.warning is 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"
200 OK
{
  "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"
}
QueryMeaning
afterOnly events after this id, oldest first. Without it, the newest events come first
typesComma-separated filter, such as monitor.down,monitor.up (exact types, no wildcards)
limit1–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 ?? "");
}

Live 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"
Stream
id: evt_0n3q9a12c4r7m1t8wxe
data: {"id":"evt_0n3q9a12c4r7m1t8wxe","type":"monitor.down","at":"2026-10-09T09:12:19.000Z","data":{…}}

: ping
OptionMeaning
typesComma-separated filter. Prefix wildcards are allowed: monitor.*,incident.created
after / Last-Event-IDResume after this event id. EventSource sends the header automatically on reconnect
checks=1Also send live-only check.completed frames for every finished check. They have no id and can't be replayed
  • Each frame is a default message event with id: <event id> and data: {"id","type","at","data"}, the same shape as GET /events.
  • A : ping comment 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.
stream.ts
// 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}
    }
  }
}