API & tools
REST API reference
268 endpoints, generated from the same operation registry that powers the server, the OpenAPI spec and the MCP tools.
#Basics
| Base URL | https://upbutler.com/api/v1 |
| Auth | Authorization: Bearer ub_live_… with a read or write scope. Get one from the dashboard or POST /agent/bootstrap |
| Format | JSON in, JSON out. Send Content-Type: application/json with bodies |
| Errors | {"error": {"code", "message", "hint?", "details?"}}. See Errors |
| Retries | Idempotency-Key header on POST, replayed for 24 h |
| Live events | GET /api/v1/stream streams workspace events as Server-Sent Events (same auth, types filter, resume with Last-Event-ID). Not part of the OpenAPI spec; see Events |
| Spec | /api/v1/openapi.json (OpenAPI 3.1) |
| IDs | Wherever a pageId is expected, a page slug works too |
Agents · 6Bootstrap, one-call service setup, heartbeats and component pushes.Monitors · 18Create, update, run and inspect monitors, their checks and regions.Status pages · 13Pages, groups and subscribers.Components · 5Rows on status pages, their sources, overrides and batch pushes.Incidents · 37Incidents, updates, acknowledgements, AI analysis, postmortems, templates and maintenance.Alerts · 5Alert channels for your team and agents.Public status · 11Read any public page and subscribe. No key needed.Workspace · 14Workspace, members and API keys.Events · 1The event stream.Billing · 4Plans and upgrades.Import · 4Bring monitors and pages over from UptimeRobot, Better Stack or Statuspage.io.On-call · 13Rotations, overrides and escalation policies.Private probes · 5Deploys · 7Deploy markers for incident correlation.Deploy hooks · 11Preview checks · 8Digest · 4Weekly digest settings and previews.Agent responders · 6Runbooks · 4Fix with Claude · 8Agent Runs · 10Setup · 2Alert actions · 8Error rate · 2User reports · 6Spend · 6Upstream status · 3Dependencies · 5Drills · 9Verified uptime · 6GitHub App · 4Incident room · 12Internal pages · 8Slack app · 3 #Agents
#Create a workspace + API key with no human in the loop
POST/api/v1/agent/bootstrap
Public — no keyMCP agent_bootstrapReturns 201
For autonomous agents. Returns an API key immediately and a claim URL. Pass humanEmail and we email your human the claim link (plus up to two reminders before it expires), so it does not get lost in your transcript. Unclaimed workspaces are deleted after 7 days (kept alive while the key is in daily use, up to 30), and email alerts unlock once claimed. Rate-limited per IP.
| Field | Type | Description |
|---|
agentNamerequired | string | Who you are, e.g. "claude-code" or "deploy-bot"max length 80 |
workspaceName | string | max length 80 |
humanEmail | string (email) | Your human's email: we send them the claim link so they can own the workspacemax length 200 · pattern ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$ |
curl -X POST https://upbutler.com/api/v1/agent/bootstrap \
-H "Content-Type: application/json" \
-d '{
"agentName": "..."
}'
#Plug in a service: monitor + status page component in one call
POST/api/v1/services
API key · writeMCP services_addReturns 201
The fastest path: creates a monitor for the URL (or a heartbeat when you pass periodSec), creates the status page if needed (statusPage = slug or name), and adds a component that follows the monitor. Returns everything you need, including heartbeat ping URLs.
| Field | Type | Description |
|---|
namerequired | string | Human-friendly name, e.g. "Search API"max length 120 |
description | string | null | null or "" clears itmax length 1,000 · nullable |
kind | string | Inferred when omitted: url → http, host+port → tcp, periodSec → heartbeat, an mcp/llm/balance/agent/spend/proxy object → that kindhttptcpdnsheartbeatmanifestscriptbrowsermcpllmbalanceagentspenderror_rateproxy |
url | string (url) | http/manifest: URL to check · mcp: MCP endpoint · llm: API base URL · balance: balance endpoint (custom preset)max length 2,000 |
method | string | GETHEADPOSTPUTPATCHDELETEOPTIONS |
headers | map<string, string> | Request headers. Write-only: stored encrypted, only the names come back (headerNames). On update, an empty value keeps the stored value of that header; a header left out is removed |
body | string | null | null clears itmax length 100,000 · nullable |
followRedirects | boolean | |
expectedStatus | string | e.g. "200-299" (default), "200,204", "401"max length 100 |
keyword | string | http: response body must contain this textmax length 500 |
keywordAbsent | string | http: response body must NOT contain this textmax length 500 |
degradedAfterMs | integer | null | Mark degraded when slower than this (null clears)min 50 · max 120,000 · nullable |
sslExpiryDays | integer | null | Mark degraded when the TLS cert expires within N days (null clears)min 1 · max 365 · nullable |
host | string | tcp/dns hostmax length 255 |
port | integer | min 1 · max 65,535 |
recordType | string | AAAAACNAMEMXTXTNS |
expected | string[] | dns: values that must be presentmax 20 items |
periodSec | integer | heartbeat: expected ping interval · agent: a run must start at least this oftenmin 30 · max 2,678,400 |
graceSec | integer | heartbeat: extra time before alertingmin 0 · max 86,400 |
mcp | object | kind mcp: MCP server check (initialize → tools/list → optional probe call) with schema drift detection |
mcp.listPrompts | boolean | Also snapshot prompts/list (default false) |
mcp.listResources | boolean | Also snapshot resources/list (default false; skip for servers whose resources change all the time) |
mcp.probe | object | null | Optional canary tool call after tools/list (null removes it)nullable |
mcp.probe.toolrequired | string | Tool to call on every check. Pick a read-only, free onemax length 200 |
mcp.probe.args | map<string, any> | |
mcp.probe.expectContains | string | Result text must contain thismax length 500 |
mcp.probe.expectRegex | string | Result text must match this regexmax length 500 |
mcp.driftStatus | string | Monitor status while a breaking schema change is unaccepted (default degraded; none = event only)degradeddownnone |
mcp.driftHoldHours | integer | Hours until an unaccepted breaking change becomes the new baseline by itself (default 24)min 1 · max 720 |
mcp.degradedAfterMs | integer | null | Degraded when the whole check is slower than thismin 50 · max 120,000 · nullable |
llm | object | kind llm: tiny streamed completion; measures time to first token, classifies 429/529/auth/retired-model errors |
llm.api | string | openai = any OpenAI-compatible /chat/completions (default); anthropic = native Messages APIopenaianthropic |
llm.model | string | Model id, e.g. "gpt-5-mini". Use the cheapest model that proves the endpoint worksmax length 200 |
llm.apiKey | string | Write-only. Stored encrypted, never returnedmax length 500 |
llm.prompt | string | Default: "Reply with the single word: pong"max length 2,000 |
llm.maxTokens | integer | Output cap per check (default 16, max 64)min 1 · max 64 |
llm.maxTokensParam | string | Request field for the cap; newer OpenAI models need max_completion_tokensmax_tokensmax_completion_tokens |
llm.expectContains | string | null | Response must contain this (case-insensitive)max length 500 · nullable |
llm.expectRegex | string | null | max length 500 · nullable |
llm.degradedTtftMs | integer | null | Degraded when the first token takes longer than thismin 50 · max 120,000 · nullable |
llm.degradedTotalMs | integer | null | Degraded when the whole completion takes longer than thismin 50 · max 120,000 · nullable |
llm.deprecationDays | integer | Degraded when a Sunset header date is within this many days (default 30)min 0 · max 365 |
balance | object | kind balance: credit balance with run-out projection |
balance.preset | string | openrouter_credits = account credits (management key); openrouter_key = one key's limit; custom = any JSON endpointopenrouter_creditsopenrouter_keycustom |
balance.apiKey | string | Write-only. Sent as "Authorization: Bearer …"; stored encryptedmax length 500 |
balance.remainingPath | string | null | custom: JSON path to the remaining amount, e.g. "data.balance"max length 300 · nullable |
balance.totalPath | string | null | custom: JSON path to the total (with usedPath)max length 300 · nullable |
balance.usedPath | string | null | custom: JSON path to the used amount (with totalPath)max length 300 · nullable |
balance.unit | string | Shown next to amounts (default USD)max length 20 |
balance.minAmount | number | null | Degraded when the remaining amount is at or below thismin 0 · max 1,000,000,000,000 · nullable |
balance.minDays | number | null | Degraded when the projected run-out is within this many days (default 7)min 0 · max 365 · nullable |
balance.exhaustedAt | number | Down when the remaining amount is at or below this (default 0)min 0 · max 1,000,000,000,000 |
agent | object | kind agent: Agent Runs. Agents report runs (POST /runs); stuck, looping, over-budget and failing runs set the monitor degraded/down, and every ping response carries the kill switch |
agent.periodSec | integer | null | Expect a run to start at least this often (null = no schedule). Same as the top-level periodSecmin 30 · max 2,678,400 · nullable |
agent.graceSec | integer | min 0 · max 86,400 |
agent.budget | object | null | Default budget per run; a run can bring its own. null clears itnullable |
agent.budget.usd | number | Spend in USD, as reported by the agentmax 1,000,000 |
agent.budget.tokens | integer | max 1,000,000,000,000 |
agent.budget.steps | integer | max 1,000,000 |
agent.budget.durationSec | integer | max 2,592,000 |
agent.stuckAfterSec | integer | No progress for this long → stuck (default 600)min 30 · max 86,400 |
agent.overrunFactor | number | Running longer than expectedDurationSec × this → overrun (default 3)min 1 · max 100 |
agent.loopRepeats | integer | The same step, or a cycle of up to 4 steps, repeated this many times → loop (default 5)min 2 · max 50 |
agent.softBudgetPct | number | Warn (degraded) at this share of any budget (default 80)min 1 · max 100 |
agent.failureRate | object | failed of the last window finished runs failed (default 3 of 5) |
agent.failureRate.failedrequired | integer | min 1 · max 50 |
agent.failureRate.windowrequired | integer | min 1 · max 50 |
agent.costSpike | object | Spend above factor × the median of recent runs (default 3×, needs 5 runs) |
agent.costSpike.factorrequired | number | min 1.1 · max 100 |
agent.costSpike.minRunsrequired | integer | min 1 · max 20 |
agent.autoStop | string[] | Rules that set the kill switch on their own (default ["budget"])budgetloopoverruncost_spike |
agent.abandonAfterSec | integer | A run silent for this long is closed as lost (default 3600)min 60 · max 604,800 |
agent.severity | map<string, string> | Per rule: down, degraded or off |
agent.stopWebhookUrl | string (url) | null | Receives a signed POST when a run is told to stop, pause, slow down or resumemax length 2,000 · nullable |
spend | object | kind spend: Spend guard. Adds up spend sources (Agent Runs, balance monitors, provider accounts) and goes down on a daily cap or a used-up monthly budget, degraded on a projected overrun or unusual spend |
spend.sources | string[] | Spend sources to add up: "runs" (Agent Runs), "balance:<monitorId>", "provider:<sourceId>" (GET /spend lists them). Empty or omitted = automatic: provider accounts when any are connected, else Agent Runs and balance monitorsmax 50 items |
spend.dailyCapUsd | number | null | Down when today's spend (UTC day) reaches this many dollars. null clears itmax 10,000,000 · nullable |
spend.monthlyBudgetUsd | number | null | Degraded when the month is on course to pass this, down once it has. null clears itmax 10,000,000 · nullable |
spend.anomaly | object | |
spend.anomaly.enabled | boolean | Flag spend that is unusual against the trailing baseline of each source (Starter and up; default on) |
spend.anomaly.sensitivity | number | How far above the usual counts as unusual, in steps of normal variation (default 3.5; lower = more alerts)min 1.5 · max 10 |
spend.anomaly.minUsd | number | Never flag a difference smaller than this many dollars (default 5)min 0 · max 1,000,000 |
spend.anomaly.baselineDays | integer | Days of history the baseline is taken from (default 14; at least 5 of them must have data)min 7 · max 30 |
spend.autoStopRuns | boolean | When the daily cap is reached, set the kill switch on running agent runs (default false). If the monitor adds up Agent Runs ("runs"), only runs of agents whose spend counted toward today are stopped. If it only adds up provider accounts or balances, spend cannot be attributed to a run, so every running run of the workspace is stopped |
errorRate | object | kind error_rate (set kind, or send this object): the 5xx rate real users get, computed from the request logs your hosting provider drains to the monitor (Vercel Drains first; Netlify, Cloudflare and generic NDJSON best-effort). The create response carries drainUrl once |
errorRate.provider | string | Where the logs come from: vercel (default), netlify, cloudflare or generic. Only changes the setup steps shown; every supported format is readvercelnetlifycloudflaregeneric |
errorRate.secret | string | null | Vercel: the drain signature secret (x-vercel-signature is then required). Others: a shared secret the drain must send as "Authorization: Bearer <secret>". null removes it. Write-onlymin length 4 · max length 500 · nullable |
errorRate.verify | string | null | Value to answer in the x-vercel-verify response header, when the provider asks for one. null removes itmax length 200 · nullable |
errorRate.windowSec | integer | Window the rate is computed over (default 300)min 60 · max 3,600 |
errorRate.downAtPct | number | Error rate in percent at or above which the monitor is down (default 5)min 0.1 · max 100 |
errorRate.degradedAtPct | number | null | Error rate in percent at or above which the monitor is degraded (default 1; null = no degraded step)min 0.1 · max 100 · nullable |
errorRate.minRequests | integer | A window with fewer requests cannot take the monitor down (default 20)min 1 · max 1,000,000 |
errorRate.statusFrom | integer | Responses with this status or higher are errors (default 500)min 400 · max 599 |
errorRate.include | string[] | Only count requests whose path starts with one of these, e.g. ["/api/"]max 20 items |
errorRate.exclude | string[] | Leave out requests whose path starts with one of these, e.g. ["/_next/", "/healthz"]max 20 items |
errorRate.hosts | string[] | Only count requests to these hostnamesmax 20 items |
errorRate.includePreviews | boolean | Also count preview deployments (default false) |
proxy | object | kind proxy: fetch a target THROUGH your forward proxies (http, https, socks5) and judge the egress: reachability, authentication, tunnel, exit country, IP rotation, success rate and latency, per proxy and for the pool. Proxy URLs are write-only. Never shown on public status pages |
proxy.url | string | A single proxy. Shorthand for proxies: [{ url }]min length 8 · max length 2,000 |
proxy.proxies | object[] | The pool: one row per proxy on the monitor page. On update the list replaces the stored one; an entry sent with its id (or name) and no url keeps the stored URLmax 100 items |
proxy.proxies[].id | string | Id of an existing entry, to keep its stored URL on updatemax length 80 |
proxy.proxies[].name | string | max length 80 |
proxy.proxies[].url | string | Proxy URL with credentials: http://user:pass@host:port, https://… or socks5://…. "{session}" anywhere in it is replaced by a fresh random value per request (rotating pools). Write-only: stored encrypted, never returnedmin length 8 · max length 2,000 |
proxy.proxies[].expectCountry | string | This entry's exit country (overrides expectCountry)pattern ^[A-Za-z]{2}$ |
proxy.template | object | A pool from one endpoint and parameter sets (countries, products). Entries from a template come after those in proxies |
proxy.template.urlrequired | string | One endpoint with placeholders, e.g. "http://USER:PASS_country-{country}_session-{session}@rp.evomi.com:1000"min length 8 · max length 2,000 |
proxy.template.variantsrequired | object[] | One pool entry per variant: every {name} in the URL is replaced by vars.name. A variant with vars.country expects that exit country unless expectCountry says otherwisemax 100 items |
proxy.target | string (url) | null | URL fetched through the proxy. Default (or null): UpButler's IP echo, which reports the exit IP and country. A custom target must be a public hostname unless the monitor runs on a private probemax length 2,000 · nullable |
proxy.method | string | GETHEAD |
proxy.expectedStatus | string | e.g. "200-299" (default)max length 100 |
proxy.keyword | string | null | The response body must contain this text (null clears)max length 500 · nullable |
proxy.samples | integer | Requests per proxy and check (default 1). Rotation and success-rate rules need severalmin 1 · max 20 |
proxy.minSuccess | integer | How many of the samples must succeed, e.g. 8 of 10 (default: all up to 2 samples, else 80%)min 1 · max 20 |
proxy.expectCountry | string | null | Exit country every proxy must show (ISO code; null clears)pattern ^[A-Za-z]{2}$ · nullable |
proxy.exitIpDiffers | boolean | The exit IP must not be the address of the proxy host itself |
proxy.minDistinctIps | integer | null | Rotating pools: at least this many different exit IPs among the samples (null clears)min 1 · max 20 · nullable |
proxy.maxLatencyMs | integer | null | Degraded when the median request through the proxy is slower (null clears)min 50 · max 120,000 · nullable |
proxy.minHealthyPct | integer | Pool verdict: down when fewer than this share of the proxies is healthy (default 50); degraded while any proxy is failingmin 1 · max 100 |
code | string | script/browser: test codemax length 50,000 |
secrets | map<string, string> | script: values the code reads as secrets.NAME (API tokens). Write-only: stored encrypted, only the names come back (script.secretNames), and the values are blanked out of logs and errors. On update, an empty value keeps the stored value; a name left out is removed |
viewport | object | |
viewport.widthrequired | integer | min 320 · max 3,840 |
viewport.heightrequired | integer | min 240 · max 2,160 |
assertions | object[] | max 30 items |
assertions[].sourcerequired | string | statuslatencyheaderbodyjsonssl_days |
assertions[].path | string | max length 300 |
assertions[].oprequired | string | eqneqltltegtgtecontainsnot_containsmatchesexistsnot_exists |
assertions[].value | string | number | boolean | max length 2,000 |
assertions[].severity | string | downdegraded |
intervalSec | integer | Seconds between checks (default 60, limited by plan)min 10 · max 86,400 |
timeoutMs | integer | Per-check timeout, up to 180000 (3 min) for slow test endpointsmin 1,000 · max 180,000 |
failureThreshold | integer | Consecutive failures before DOWN (default 2)min 1 · max 10 |
recoveryThreshold | integer | min 1 · max 10 |
channelIds | string[] | Alert channels. Default: channels marked as defaultmax 50 items |
reminderMinutes | integer[] | max 10 items |
ai | boolean | AI incident analysis (default true) |
tags | string[] | max 20 items |
paused | boolean | |
regions | string[] | Check regions and private probes (GET /api/v1/regions): region ids, private probe ids (prv-…) or private probe names. With several, a round only counts as DOWN when a majority of regions agree. A monitor on private probes only is checked from inside your network and may target private addresses. Default: main region onlymax 10 items |
statusPage | string | Status page slug or id; created (by name) if it does not exist. Omit to only monitor.max length 100 |
group | string | Component group on the status page, e.g. "APIs"max length 80 |
componentName | string | Public name (defaults to name)max length 100 |
curl -X POST https://upbutler.com/api/v1/services \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Search API",
"url": "https://api.example.com/health",
"statusPage": "acme",
"group": "APIs"
}'
#Send a heartbeat (no API key needed — the token is the secret)
POST/api/v1/heartbeat/:token
Public — no keyMCP heartbeat_pingReturns 200
Call at least every periodSec. status=down (or POST to /hb/{token}/fail) reports an explicit failure and alerts immediately. Short form: GET/POST https://upbutler.com/hb/{token}.
| Field | Type | Description |
|---|
tokenrequiredpath | string | |
status | string | updowndegraded |
message | string | max length 500 |
durationMs | integer | How long the job tookmin 0 |
curl -X POST https://upbutler.com/api/v1/heartbeat/hb_Xf3kq9LmR2vT8wYzN4bC1dE7
#Push one component status by its push token (no API key needed)
POST/api/v1/push/:token
Public — no keyMCP components_pushReturns 200
| Field | Type | Description |
|---|
tokenrequiredpath | string | |
statusrequired | string | boolean | number | operational | degraded | partial_outage | major_outage | maintenance, or ok/up/fail/down/true/false |
message | string | max length 500 |
confirmed | boolean | Skip blip protection: the sender already confirmed this status |
observedAt | any | When this status was observed; re-sending the same observation does not count as a new confirmation |
curl -X POST https://upbutler.com/api/v1/push/push_Qm7vB2xK9pL4sT1nW8cZ3yH6 \
-H "Content-Type: application/json" \
-d '{
"status": "degraded",
"message": "p95 latency above 2s"
}'
#Identify the calling key
GET/api/v1/agent/whoami
API key · readMCP agent_whoamiReturns 200
No parameters.
curl https://upbutler.com/api/v1/agent/whoami \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Get a fresh claim link for this unclaimed workspace, and optionally email it to your human
POST/api/v1/agent/claim
API key · writeMCP agent_claimReturns 200
Only for agent-bootstrapped workspaces nobody has claimed yet. Issues a new claim URL (earlier links stop working). With email, we send it to your human and remind them before the workspace expires.
| Field | Type | Description |
|---|
email | string (email) | Your human's emailmax length 200 · pattern ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$ |
curl -X POST https://upbutler.com/api/v1/agent/claim \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Monitors
#List monitors
GET/api/v1/monitors
API key · readMCP monitors_listReturns 200
All monitors in the workspace with their current state and last check.
| Field | Type | Description |
|---|
statequery | string | updowndegradedpendingpaused |
tagquery | string | |
curl https://upbutler.com/api/v1/monitors \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Create a monitor
POST/api/v1/monitors
API key · writeMCP monitors_createReturns 201
Create an uptime monitor. Minimal input is {"name","url"}. Kinds: http (status/keyword/JSON/latency/TLS assertions), tcp, dns, heartbeat (your job pings us), manifest (one JSON endpoint reporting many components), script, browser, mcp (remote MCP server: handshake, tool list, schema drift), llm (LLM endpoint: first-token time, 429/529, retired models), balance (credit run-out), error_rate (5xx rate from your hosting provider's log drain: the response carries drainUrl once; paste it as the drain endpoint).
| Field | Type | Description |
|---|
namerequired | string | Human-friendly name, e.g. "Search API"max length 120 |
description | string | null | null or "" clears itmax length 1,000 · nullable |
kind | string | Inferred when omitted: url → http, host+port → tcp, periodSec → heartbeat, an mcp/llm/balance/agent/spend/proxy object → that kindhttptcpdnsheartbeatmanifestscriptbrowsermcpllmbalanceagentspenderror_rateproxy |
url | string (url) | http/manifest: URL to check · mcp: MCP endpoint · llm: API base URL · balance: balance endpoint (custom preset)max length 2,000 |
method | string | GETHEADPOSTPUTPATCHDELETEOPTIONS |
headers | map<string, string> | Request headers. Write-only: stored encrypted, only the names come back (headerNames). On update, an empty value keeps the stored value of that header; a header left out is removed |
body | string | null | null clears itmax length 100,000 · nullable |
followRedirects | boolean | |
expectedStatus | string | e.g. "200-299" (default), "200,204", "401"max length 100 |
keyword | string | http: response body must contain this textmax length 500 |
keywordAbsent | string | http: response body must NOT contain this textmax length 500 |
degradedAfterMs | integer | null | Mark degraded when slower than this (null clears)min 50 · max 120,000 · nullable |
sslExpiryDays | integer | null | Mark degraded when the TLS cert expires within N days (null clears)min 1 · max 365 · nullable |
host | string | tcp/dns hostmax length 255 |
port | integer | min 1 · max 65,535 |
recordType | string | AAAAACNAMEMXTXTNS |
expected | string[] | dns: values that must be presentmax 20 items |
periodSec | integer | heartbeat: expected ping interval · agent: a run must start at least this oftenmin 30 · max 2,678,400 |
graceSec | integer | heartbeat: extra time before alertingmin 0 · max 86,400 |
mcp | object | kind mcp: MCP server check (initialize → tools/list → optional probe call) with schema drift detection |
mcp.listPrompts | boolean | Also snapshot prompts/list (default false) |
mcp.listResources | boolean | Also snapshot resources/list (default false; skip for servers whose resources change all the time) |
mcp.probe | object | null | Optional canary tool call after tools/list (null removes it)nullable |
mcp.probe.toolrequired | string | Tool to call on every check. Pick a read-only, free onemax length 200 |
mcp.probe.args | map<string, any> | |
mcp.probe.expectContains | string | Result text must contain thismax length 500 |
mcp.probe.expectRegex | string | Result text must match this regexmax length 500 |
mcp.driftStatus | string | Monitor status while a breaking schema change is unaccepted (default degraded; none = event only)degradeddownnone |
mcp.driftHoldHours | integer | Hours until an unaccepted breaking change becomes the new baseline by itself (default 24)min 1 · max 720 |
mcp.degradedAfterMs | integer | null | Degraded when the whole check is slower than thismin 50 · max 120,000 · nullable |
llm | object | kind llm: tiny streamed completion; measures time to first token, classifies 429/529/auth/retired-model errors |
llm.api | string | openai = any OpenAI-compatible /chat/completions (default); anthropic = native Messages APIopenaianthropic |
llm.model | string | Model id, e.g. "gpt-5-mini". Use the cheapest model that proves the endpoint worksmax length 200 |
llm.apiKey | string | Write-only. Stored encrypted, never returnedmax length 500 |
llm.prompt | string | Default: "Reply with the single word: pong"max length 2,000 |
llm.maxTokens | integer | Output cap per check (default 16, max 64)min 1 · max 64 |
llm.maxTokensParam | string | Request field for the cap; newer OpenAI models need max_completion_tokensmax_tokensmax_completion_tokens |
llm.expectContains | string | null | Response must contain this (case-insensitive)max length 500 · nullable |
llm.expectRegex | string | null | max length 500 · nullable |
llm.degradedTtftMs | integer | null | Degraded when the first token takes longer than thismin 50 · max 120,000 · nullable |
llm.degradedTotalMs | integer | null | Degraded when the whole completion takes longer than thismin 50 · max 120,000 · nullable |
llm.deprecationDays | integer | Degraded when a Sunset header date is within this many days (default 30)min 0 · max 365 |
balance | object | kind balance: credit balance with run-out projection |
balance.preset | string | openrouter_credits = account credits (management key); openrouter_key = one key's limit; custom = any JSON endpointopenrouter_creditsopenrouter_keycustom |
balance.apiKey | string | Write-only. Sent as "Authorization: Bearer …"; stored encryptedmax length 500 |
balance.remainingPath | string | null | custom: JSON path to the remaining amount, e.g. "data.balance"max length 300 · nullable |
balance.totalPath | string | null | custom: JSON path to the total (with usedPath)max length 300 · nullable |
balance.usedPath | string | null | custom: JSON path to the used amount (with totalPath)max length 300 · nullable |
balance.unit | string | Shown next to amounts (default USD)max length 20 |
balance.minAmount | number | null | Degraded when the remaining amount is at or below thismin 0 · max 1,000,000,000,000 · nullable |
balance.minDays | number | null | Degraded when the projected run-out is within this many days (default 7)min 0 · max 365 · nullable |
balance.exhaustedAt | number | Down when the remaining amount is at or below this (default 0)min 0 · max 1,000,000,000,000 |
agent | object | kind agent: Agent Runs. Agents report runs (POST /runs); stuck, looping, over-budget and failing runs set the monitor degraded/down, and every ping response carries the kill switch |
agent.periodSec | integer | null | Expect a run to start at least this often (null = no schedule). Same as the top-level periodSecmin 30 · max 2,678,400 · nullable |
agent.graceSec | integer | min 0 · max 86,400 |
agent.budget | object | null | Default budget per run; a run can bring its own. null clears itnullable |
agent.budget.usd | number | Spend in USD, as reported by the agentmax 1,000,000 |
agent.budget.tokens | integer | max 1,000,000,000,000 |
agent.budget.steps | integer | max 1,000,000 |
agent.budget.durationSec | integer | max 2,592,000 |
agent.stuckAfterSec | integer | No progress for this long → stuck (default 600)min 30 · max 86,400 |
agent.overrunFactor | number | Running longer than expectedDurationSec × this → overrun (default 3)min 1 · max 100 |
agent.loopRepeats | integer | The same step, or a cycle of up to 4 steps, repeated this many times → loop (default 5)min 2 · max 50 |
agent.softBudgetPct | number | Warn (degraded) at this share of any budget (default 80)min 1 · max 100 |
agent.failureRate | object | failed of the last window finished runs failed (default 3 of 5) |
agent.failureRate.failedrequired | integer | min 1 · max 50 |
agent.failureRate.windowrequired | integer | min 1 · max 50 |
agent.costSpike | object | Spend above factor × the median of recent runs (default 3×, needs 5 runs) |
agent.costSpike.factorrequired | number | min 1.1 · max 100 |
agent.costSpike.minRunsrequired | integer | min 1 · max 20 |
agent.autoStop | string[] | Rules that set the kill switch on their own (default ["budget"])budgetloopoverruncost_spike |
agent.abandonAfterSec | integer | A run silent for this long is closed as lost (default 3600)min 60 · max 604,800 |
agent.severity | map<string, string> | Per rule: down, degraded or off |
agent.stopWebhookUrl | string (url) | null | Receives a signed POST when a run is told to stop, pause, slow down or resumemax length 2,000 · nullable |
spend | object | kind spend: Spend guard. Adds up spend sources (Agent Runs, balance monitors, provider accounts) and goes down on a daily cap or a used-up monthly budget, degraded on a projected overrun or unusual spend |
spend.sources | string[] | Spend sources to add up: "runs" (Agent Runs), "balance:<monitorId>", "provider:<sourceId>" (GET /spend lists them). Empty or omitted = automatic: provider accounts when any are connected, else Agent Runs and balance monitorsmax 50 items |
spend.dailyCapUsd | number | null | Down when today's spend (UTC day) reaches this many dollars. null clears itmax 10,000,000 · nullable |
spend.monthlyBudgetUsd | number | null | Degraded when the month is on course to pass this, down once it has. null clears itmax 10,000,000 · nullable |
spend.anomaly | object | |
spend.anomaly.enabled | boolean | Flag spend that is unusual against the trailing baseline of each source (Starter and up; default on) |
spend.anomaly.sensitivity | number | How far above the usual counts as unusual, in steps of normal variation (default 3.5; lower = more alerts)min 1.5 · max 10 |
spend.anomaly.minUsd | number | Never flag a difference smaller than this many dollars (default 5)min 0 · max 1,000,000 |
spend.anomaly.baselineDays | integer | Days of history the baseline is taken from (default 14; at least 5 of them must have data)min 7 · max 30 |
spend.autoStopRuns | boolean | When the daily cap is reached, set the kill switch on running agent runs (default false). If the monitor adds up Agent Runs ("runs"), only runs of agents whose spend counted toward today are stopped. If it only adds up provider accounts or balances, spend cannot be attributed to a run, so every running run of the workspace is stopped |
errorRate | object | kind error_rate (set kind, or send this object): the 5xx rate real users get, computed from the request logs your hosting provider drains to the monitor (Vercel Drains first; Netlify, Cloudflare and generic NDJSON best-effort). The create response carries drainUrl once |
errorRate.provider | string | Where the logs come from: vercel (default), netlify, cloudflare or generic. Only changes the setup steps shown; every supported format is readvercelnetlifycloudflaregeneric |
errorRate.secret | string | null | Vercel: the drain signature secret (x-vercel-signature is then required). Others: a shared secret the drain must send as "Authorization: Bearer <secret>". null removes it. Write-onlymin length 4 · max length 500 · nullable |
errorRate.verify | string | null | Value to answer in the x-vercel-verify response header, when the provider asks for one. null removes itmax length 200 · nullable |
errorRate.windowSec | integer | Window the rate is computed over (default 300)min 60 · max 3,600 |
errorRate.downAtPct | number | Error rate in percent at or above which the monitor is down (default 5)min 0.1 · max 100 |
errorRate.degradedAtPct | number | null | Error rate in percent at or above which the monitor is degraded (default 1; null = no degraded step)min 0.1 · max 100 · nullable |
errorRate.minRequests | integer | A window with fewer requests cannot take the monitor down (default 20)min 1 · max 1,000,000 |
errorRate.statusFrom | integer | Responses with this status or higher are errors (default 500)min 400 · max 599 |
errorRate.include | string[] | Only count requests whose path starts with one of these, e.g. ["/api/"]max 20 items |
errorRate.exclude | string[] | Leave out requests whose path starts with one of these, e.g. ["/_next/", "/healthz"]max 20 items |
errorRate.hosts | string[] | Only count requests to these hostnamesmax 20 items |
errorRate.includePreviews | boolean | Also count preview deployments (default false) |
proxy | object | kind proxy: fetch a target THROUGH your forward proxies (http, https, socks5) and judge the egress: reachability, authentication, tunnel, exit country, IP rotation, success rate and latency, per proxy and for the pool. Proxy URLs are write-only. Never shown on public status pages |
proxy.url | string | A single proxy. Shorthand for proxies: [{ url }]min length 8 · max length 2,000 |
proxy.proxies | object[] | The pool: one row per proxy on the monitor page. On update the list replaces the stored one; an entry sent with its id (or name) and no url keeps the stored URLmax 100 items |
proxy.proxies[].id | string | Id of an existing entry, to keep its stored URL on updatemax length 80 |
proxy.proxies[].name | string | max length 80 |
proxy.proxies[].url | string | Proxy URL with credentials: http://user:pass@host:port, https://… or socks5://…. "{session}" anywhere in it is replaced by a fresh random value per request (rotating pools). Write-only: stored encrypted, never returnedmin length 8 · max length 2,000 |
proxy.proxies[].expectCountry | string | This entry's exit country (overrides expectCountry)pattern ^[A-Za-z]{2}$ |
proxy.template | object | A pool from one endpoint and parameter sets (countries, products). Entries from a template come after those in proxies |
proxy.template.urlrequired | string | One endpoint with placeholders, e.g. "http://USER:PASS_country-{country}_session-{session}@rp.evomi.com:1000"min length 8 · max length 2,000 |
proxy.template.variantsrequired | object[] | One pool entry per variant: every {name} in the URL is replaced by vars.name. A variant with vars.country expects that exit country unless expectCountry says otherwisemax 100 items |
proxy.target | string (url) | null | URL fetched through the proxy. Default (or null): UpButler's IP echo, which reports the exit IP and country. A custom target must be a public hostname unless the monitor runs on a private probemax length 2,000 · nullable |
proxy.method | string | GETHEAD |
proxy.expectedStatus | string | e.g. "200-299" (default)max length 100 |
proxy.keyword | string | null | The response body must contain this text (null clears)max length 500 · nullable |
proxy.samples | integer | Requests per proxy and check (default 1). Rotation and success-rate rules need severalmin 1 · max 20 |
proxy.minSuccess | integer | How many of the samples must succeed, e.g. 8 of 10 (default: all up to 2 samples, else 80%)min 1 · max 20 |
proxy.expectCountry | string | null | Exit country every proxy must show (ISO code; null clears)pattern ^[A-Za-z]{2}$ · nullable |
proxy.exitIpDiffers | boolean | The exit IP must not be the address of the proxy host itself |
proxy.minDistinctIps | integer | null | Rotating pools: at least this many different exit IPs among the samples (null clears)min 1 · max 20 · nullable |
proxy.maxLatencyMs | integer | null | Degraded when the median request through the proxy is slower (null clears)min 50 · max 120,000 · nullable |
proxy.minHealthyPct | integer | Pool verdict: down when fewer than this share of the proxies is healthy (default 50); degraded while any proxy is failingmin 1 · max 100 |
code | string | script/browser: test codemax length 50,000 |
secrets | map<string, string> | script: values the code reads as secrets.NAME (API tokens). Write-only: stored encrypted, only the names come back (script.secretNames), and the values are blanked out of logs and errors. On update, an empty value keeps the stored value; a name left out is removed |
viewport | object | |
viewport.widthrequired | integer | min 320 · max 3,840 |
viewport.heightrequired | integer | min 240 · max 2,160 |
assertions | object[] | max 30 items |
assertions[].sourcerequired | string | statuslatencyheaderbodyjsonssl_days |
assertions[].path | string | max length 300 |
assertions[].oprequired | string | eqneqltltegtgtecontainsnot_containsmatchesexistsnot_exists |
assertions[].value | string | number | boolean | max length 2,000 |
assertions[].severity | string | downdegraded |
intervalSec | integer | Seconds between checks (default 60, limited by plan)min 10 · max 86,400 |
timeoutMs | integer | Per-check timeout, up to 180000 (3 min) for slow test endpointsmin 1,000 · max 180,000 |
failureThreshold | integer | Consecutive failures before DOWN (default 2)min 1 · max 10 |
recoveryThreshold | integer | min 1 · max 10 |
channelIds | string[] | Alert channels. Default: channels marked as defaultmax 50 items |
reminderMinutes | integer[] | max 10 items |
ai | boolean | AI incident analysis (default true) |
tags | string[] | max 20 items |
paused | boolean | |
regions | string[] | Check regions and private probes (GET /api/v1/regions): region ids, private probe ids (prv-…) or private probe names. With several, a round only counts as DOWN when a majority of regions agree. A monitor on private probes only is checked from inside your network and may target private addresses. Default: main region onlymax 10 items |
curl -X POST https://upbutler.com/api/v1/monitors \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Search API",
"url": "https://api.example.com/health",
"keyword": "\"ok\"",
"intervalSec": 60
}'
#Get a monitor with recent checks and stats
GET/api/v1/monitors/:id
API key · readMCP monitors_getReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | Monitor id (mon_...) |
checksquery | integer | min 0 · max 200 |
curl https://upbutler.com/api/v1/monitors/mon_0n3q8kz1m4hx7c2v9rt \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Update a monitor
PATCH/api/v1/monitors/:id
API key · writeMCP monitors_updateReturns 200
Partial update; any create field may be sent. Set paused=true/false to pause or resume.
| Field | Type | Description |
|---|
idrequiredpath | string | Monitor id (mon_...) |
name | string | Human-friendly name, e.g. "Search API"max length 120 |
description | string | null | null or "" clears itmax length 1,000 · nullable |
kind | string | Inferred when omitted: url → http, host+port → tcp, periodSec → heartbeat, an mcp/llm/balance/agent/spend/proxy object → that kindhttptcpdnsheartbeatmanifestscriptbrowsermcpllmbalanceagentspenderror_rateproxy |
url | string (url) | http/manifest: URL to check · mcp: MCP endpoint · llm: API base URL · balance: balance endpoint (custom preset)max length 2,000 |
method | string | GETHEADPOSTPUTPATCHDELETEOPTIONS |
headers | map<string, string> | Request headers. Write-only: stored encrypted, only the names come back (headerNames). On update, an empty value keeps the stored value of that header; a header left out is removed |
body | string | null | null clears itmax length 100,000 · nullable |
followRedirects | boolean | |
expectedStatus | string | e.g. "200-299" (default), "200,204", "401"max length 100 |
keyword | string | http: response body must contain this textmax length 500 |
keywordAbsent | string | http: response body must NOT contain this textmax length 500 |
degradedAfterMs | integer | null | Mark degraded when slower than this (null clears)min 50 · max 120,000 · nullable |
sslExpiryDays | integer | null | Mark degraded when the TLS cert expires within N days (null clears)min 1 · max 365 · nullable |
host | string | tcp/dns hostmax length 255 |
port | integer | min 1 · max 65,535 |
recordType | string | AAAAACNAMEMXTXTNS |
expected | string[] | dns: values that must be presentmax 20 items |
periodSec | integer | heartbeat: expected ping interval · agent: a run must start at least this oftenmin 30 · max 2,678,400 |
graceSec | integer | heartbeat: extra time before alertingmin 0 · max 86,400 |
mcp | object | kind mcp: MCP server check (initialize → tools/list → optional probe call) with schema drift detection |
mcp.listPrompts | boolean | Also snapshot prompts/list (default false) |
mcp.listResources | boolean | Also snapshot resources/list (default false; skip for servers whose resources change all the time) |
mcp.probe | object | null | Optional canary tool call after tools/list (null removes it)nullable |
mcp.probe.toolrequired | string | Tool to call on every check. Pick a read-only, free onemax length 200 |
mcp.probe.args | map<string, any> | |
mcp.probe.expectContains | string | Result text must contain thismax length 500 |
mcp.probe.expectRegex | string | Result text must match this regexmax length 500 |
mcp.driftStatus | string | Monitor status while a breaking schema change is unaccepted (default degraded; none = event only)degradeddownnone |
mcp.driftHoldHours | integer | Hours until an unaccepted breaking change becomes the new baseline by itself (default 24)min 1 · max 720 |
mcp.degradedAfterMs | integer | null | Degraded when the whole check is slower than thismin 50 · max 120,000 · nullable |
llm | object | kind llm: tiny streamed completion; measures time to first token, classifies 429/529/auth/retired-model errors |
llm.api | string | openai = any OpenAI-compatible /chat/completions (default); anthropic = native Messages APIopenaianthropic |
llm.model | string | Model id, e.g. "gpt-5-mini". Use the cheapest model that proves the endpoint worksmax length 200 |
llm.apiKey | string | Write-only. Stored encrypted, never returnedmax length 500 |
llm.prompt | string | Default: "Reply with the single word: pong"max length 2,000 |
llm.maxTokens | integer | Output cap per check (default 16, max 64)min 1 · max 64 |
llm.maxTokensParam | string | Request field for the cap; newer OpenAI models need max_completion_tokensmax_tokensmax_completion_tokens |
llm.expectContains | string | null | Response must contain this (case-insensitive)max length 500 · nullable |
llm.expectRegex | string | null | max length 500 · nullable |
llm.degradedTtftMs | integer | null | Degraded when the first token takes longer than thismin 50 · max 120,000 · nullable |
llm.degradedTotalMs | integer | null | Degraded when the whole completion takes longer than thismin 50 · max 120,000 · nullable |
llm.deprecationDays | integer | Degraded when a Sunset header date is within this many days (default 30)min 0 · max 365 |
balance | object | kind balance: credit balance with run-out projection |
balance.preset | string | openrouter_credits = account credits (management key); openrouter_key = one key's limit; custom = any JSON endpointopenrouter_creditsopenrouter_keycustom |
balance.apiKey | string | Write-only. Sent as "Authorization: Bearer …"; stored encryptedmax length 500 |
balance.remainingPath | string | null | custom: JSON path to the remaining amount, e.g. "data.balance"max length 300 · nullable |
balance.totalPath | string | null | custom: JSON path to the total (with usedPath)max length 300 · nullable |
balance.usedPath | string | null | custom: JSON path to the used amount (with totalPath)max length 300 · nullable |
balance.unit | string | Shown next to amounts (default USD)max length 20 |
balance.minAmount | number | null | Degraded when the remaining amount is at or below thismin 0 · max 1,000,000,000,000 · nullable |
balance.minDays | number | null | Degraded when the projected run-out is within this many days (default 7)min 0 · max 365 · nullable |
balance.exhaustedAt | number | Down when the remaining amount is at or below this (default 0)min 0 · max 1,000,000,000,000 |
agent | object | kind agent: Agent Runs. Agents report runs (POST /runs); stuck, looping, over-budget and failing runs set the monitor degraded/down, and every ping response carries the kill switch |
agent.periodSec | integer | null | Expect a run to start at least this often (null = no schedule). Same as the top-level periodSecmin 30 · max 2,678,400 · nullable |
agent.graceSec | integer | min 0 · max 86,400 |
agent.budget | object | null | Default budget per run; a run can bring its own. null clears itnullable |
agent.budget.usd | number | Spend in USD, as reported by the agentmax 1,000,000 |
agent.budget.tokens | integer | max 1,000,000,000,000 |
agent.budget.steps | integer | max 1,000,000 |
agent.budget.durationSec | integer | max 2,592,000 |
agent.stuckAfterSec | integer | No progress for this long → stuck (default 600)min 30 · max 86,400 |
agent.overrunFactor | number | Running longer than expectedDurationSec × this → overrun (default 3)min 1 · max 100 |
agent.loopRepeats | integer | The same step, or a cycle of up to 4 steps, repeated this many times → loop (default 5)min 2 · max 50 |
agent.softBudgetPct | number | Warn (degraded) at this share of any budget (default 80)min 1 · max 100 |
agent.failureRate | object | failed of the last window finished runs failed (default 3 of 5) |
agent.failureRate.failedrequired | integer | min 1 · max 50 |
agent.failureRate.windowrequired | integer | min 1 · max 50 |
agent.costSpike | object | Spend above factor × the median of recent runs (default 3×, needs 5 runs) |
agent.costSpike.factorrequired | number | min 1.1 · max 100 |
agent.costSpike.minRunsrequired | integer | min 1 · max 20 |
agent.autoStop | string[] | Rules that set the kill switch on their own (default ["budget"])budgetloopoverruncost_spike |
agent.abandonAfterSec | integer | A run silent for this long is closed as lost (default 3600)min 60 · max 604,800 |
agent.severity | map<string, string> | Per rule: down, degraded or off |
agent.stopWebhookUrl | string (url) | null | Receives a signed POST when a run is told to stop, pause, slow down or resumemax length 2,000 · nullable |
spend | object | kind spend: Spend guard. Adds up spend sources (Agent Runs, balance monitors, provider accounts) and goes down on a daily cap or a used-up monthly budget, degraded on a projected overrun or unusual spend |
spend.sources | string[] | Spend sources to add up: "runs" (Agent Runs), "balance:<monitorId>", "provider:<sourceId>" (GET /spend lists them). Empty or omitted = automatic: provider accounts when any are connected, else Agent Runs and balance monitorsmax 50 items |
spend.dailyCapUsd | number | null | Down when today's spend (UTC day) reaches this many dollars. null clears itmax 10,000,000 · nullable |
spend.monthlyBudgetUsd | number | null | Degraded when the month is on course to pass this, down once it has. null clears itmax 10,000,000 · nullable |
spend.anomaly | object | |
spend.anomaly.enabled | boolean | Flag spend that is unusual against the trailing baseline of each source (Starter and up; default on) |
spend.anomaly.sensitivity | number | How far above the usual counts as unusual, in steps of normal variation (default 3.5; lower = more alerts)min 1.5 · max 10 |
spend.anomaly.minUsd | number | Never flag a difference smaller than this many dollars (default 5)min 0 · max 1,000,000 |
spend.anomaly.baselineDays | integer | Days of history the baseline is taken from (default 14; at least 5 of them must have data)min 7 · max 30 |
spend.autoStopRuns | boolean | When the daily cap is reached, set the kill switch on running agent runs (default false). If the monitor adds up Agent Runs ("runs"), only runs of agents whose spend counted toward today are stopped. If it only adds up provider accounts or balances, spend cannot be attributed to a run, so every running run of the workspace is stopped |
errorRate | object | kind error_rate (set kind, or send this object): the 5xx rate real users get, computed from the request logs your hosting provider drains to the monitor (Vercel Drains first; Netlify, Cloudflare and generic NDJSON best-effort). The create response carries drainUrl once |
errorRate.provider | string | Where the logs come from: vercel (default), netlify, cloudflare or generic. Only changes the setup steps shown; every supported format is readvercelnetlifycloudflaregeneric |
errorRate.secret | string | null | Vercel: the drain signature secret (x-vercel-signature is then required). Others: a shared secret the drain must send as "Authorization: Bearer <secret>". null removes it. Write-onlymin length 4 · max length 500 · nullable |
errorRate.verify | string | null | Value to answer in the x-vercel-verify response header, when the provider asks for one. null removes itmax length 200 · nullable |
errorRate.windowSec | integer | Window the rate is computed over (default 300)min 60 · max 3,600 |
errorRate.downAtPct | number | Error rate in percent at or above which the monitor is down (default 5)min 0.1 · max 100 |
errorRate.degradedAtPct | number | null | Error rate in percent at or above which the monitor is degraded (default 1; null = no degraded step)min 0.1 · max 100 · nullable |
errorRate.minRequests | integer | A window with fewer requests cannot take the monitor down (default 20)min 1 · max 1,000,000 |
errorRate.statusFrom | integer | Responses with this status or higher are errors (default 500)min 400 · max 599 |
errorRate.include | string[] | Only count requests whose path starts with one of these, e.g. ["/api/"]max 20 items |
errorRate.exclude | string[] | Leave out requests whose path starts with one of these, e.g. ["/_next/", "/healthz"]max 20 items |
errorRate.hosts | string[] | Only count requests to these hostnamesmax 20 items |
errorRate.includePreviews | boolean | Also count preview deployments (default false) |
proxy | object | kind proxy: fetch a target THROUGH your forward proxies (http, https, socks5) and judge the egress: reachability, authentication, tunnel, exit country, IP rotation, success rate and latency, per proxy and for the pool. Proxy URLs are write-only. Never shown on public status pages |
proxy.url | string | A single proxy. Shorthand for proxies: [{ url }]min length 8 · max length 2,000 |
proxy.proxies | object[] | The pool: one row per proxy on the monitor page. On update the list replaces the stored one; an entry sent with its id (or name) and no url keeps the stored URLmax 100 items |
proxy.proxies[].id | string | Id of an existing entry, to keep its stored URL on updatemax length 80 |
proxy.proxies[].name | string | max length 80 |
proxy.proxies[].url | string | Proxy URL with credentials: http://user:pass@host:port, https://… or socks5://…. "{session}" anywhere in it is replaced by a fresh random value per request (rotating pools). Write-only: stored encrypted, never returnedmin length 8 · max length 2,000 |
proxy.proxies[].expectCountry | string | This entry's exit country (overrides expectCountry)pattern ^[A-Za-z]{2}$ |
proxy.template | object | A pool from one endpoint and parameter sets (countries, products). Entries from a template come after those in proxies |
proxy.template.urlrequired | string | One endpoint with placeholders, e.g. "http://USER:PASS_country-{country}_session-{session}@rp.evomi.com:1000"min length 8 · max length 2,000 |
proxy.template.variantsrequired | object[] | One pool entry per variant: every {name} in the URL is replaced by vars.name. A variant with vars.country expects that exit country unless expectCountry says otherwisemax 100 items |
proxy.target | string (url) | null | URL fetched through the proxy. Default (or null): UpButler's IP echo, which reports the exit IP and country. A custom target must be a public hostname unless the monitor runs on a private probemax length 2,000 · nullable |
proxy.method | string | GETHEAD |
proxy.expectedStatus | string | e.g. "200-299" (default)max length 100 |
proxy.keyword | string | null | The response body must contain this text (null clears)max length 500 · nullable |
proxy.samples | integer | Requests per proxy and check (default 1). Rotation and success-rate rules need severalmin 1 · max 20 |
proxy.minSuccess | integer | How many of the samples must succeed, e.g. 8 of 10 (default: all up to 2 samples, else 80%)min 1 · max 20 |
proxy.expectCountry | string | null | Exit country every proxy must show (ISO code; null clears)pattern ^[A-Za-z]{2}$ · nullable |
proxy.exitIpDiffers | boolean | The exit IP must not be the address of the proxy host itself |
proxy.minDistinctIps | integer | null | Rotating pools: at least this many different exit IPs among the samples (null clears)min 1 · max 20 · nullable |
proxy.maxLatencyMs | integer | null | Degraded when the median request through the proxy is slower (null clears)min 50 · max 120,000 · nullable |
proxy.minHealthyPct | integer | Pool verdict: down when fewer than this share of the proxies is healthy (default 50); degraded while any proxy is failingmin 1 · max 100 |
code | string | script/browser: test codemax length 50,000 |
secrets | map<string, string> | script: values the code reads as secrets.NAME (API tokens). Write-only: stored encrypted, only the names come back (script.secretNames), and the values are blanked out of logs and errors. On update, an empty value keeps the stored value; a name left out is removed |
viewport | object | |
viewport.widthrequired | integer | min 320 · max 3,840 |
viewport.heightrequired | integer | min 240 · max 2,160 |
assertions | object[] | max 30 items |
assertions[].sourcerequired | string | statuslatencyheaderbodyjsonssl_days |
assertions[].path | string | max length 300 |
assertions[].oprequired | string | eqneqltltegtgtecontainsnot_containsmatchesexistsnot_exists |
assertions[].value | string | number | boolean | max length 2,000 |
assertions[].severity | string | downdegraded |
intervalSec | integer | Seconds between checks (default 60, limited by plan)min 10 · max 86,400 |
timeoutMs | integer | Per-check timeout, up to 180000 (3 min) for slow test endpointsmin 1,000 · max 180,000 |
failureThreshold | integer | Consecutive failures before DOWN (default 2)min 1 · max 10 |
recoveryThreshold | integer | min 1 · max 10 |
channelIds | string[] | Alert channels. Default: channels marked as defaultmax 50 items |
reminderMinutes | integer[] | max 10 items |
ai | boolean | AI incident analysis (default true) |
tags | string[] | max 20 items |
paused | boolean | |
regions | string[] | Check regions and private probes (GET /api/v1/regions): region ids, private probe ids (prv-…) or private probe names. With several, a round only counts as DOWN when a majority of regions agree. A monitor on private probes only is checked from inside your network and may target private addresses. Default: main region onlymax 10 items |
curl -X PATCH https://upbutler.com/api/v1/monitors/mon_0n3q8kz1m4hx7c2v9rt \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Delete a monitor and its history
DELETE/api/v1/monitors/:id
API key · writeMCP monitors_deleteReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | Monitor id (mon_...) |
curl -X DELETE https://upbutler.com/api/v1/monitors/mon_0n3q8kz1m4hx7c2v9rt \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Run a check right now
POST/api/v1/monitors/:id/check
API key · writeMCP monitors_checkReturns 200
Runs the monitor immediately and returns the full result with evidence. Does not change monitor state unless apply=true.
| Field | Type | Description |
|---|
idrequiredpath | string | Monitor id (mon_...) |
apply | boolean | Feed the result into the state machine (may open/resolve incidents) |
curl -X POST https://upbutler.com/api/v1/monitors/mon_0n3q8kz1m4hx7c2v9rt/check \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#List checks (raw results, 30 days)
GET/api/v1/monitors/:id/checks
API key · readMCP monitors_checksReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | Monitor id (mon_...) |
outcomequery | string | updegradeddown |
beforequery | string (date-time) | pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$ |
limitquery | integer | min 1 · max 500 |
evidencequery | boolean | string | |
curl https://upbutler.com/api/v1/monitors/mon_0n3q8kz1m4hx7c2v9rt/checks \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Get one check with full evidence
GET/api/v1/checks/:id
API key · readMCP checks_getReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | |
curl https://upbutler.com/api/v1/checks/chk_0n3q9a10e9n3p5s7hz2 \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#MCP monitor: tool schema baseline and change history
GET/api/v1/monitors/:id/schema
API key · readMCP monitors_schemaReturns 200
For kind "mcp". Returns the accepted tool-list snapshot (baseline), a pending breaking change if there is one, and past changes. Every change lists what happened per tool and is classified breaking (tool removed, required param added, type changed), non_breaking (tool or optional param added) or description (wording only).
| Field | Type | Description |
|---|
idrequiredpath | string | Monitor id (mon_...) |
limitquery | integer | min 1 · max 100 |
curl https://upbutler.com/api/v1/monitors/mon_0n3q8kz1m4hx7c2v9rt/schema \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#MCP monitor: accept the pending schema change
POST/api/v1/monitors/:id/schema/accept
API key · writeMCP monitors_schema_acceptReturns 200
Makes the tool list the server serves now the new baseline, which ends the degraded/down state a breaking schema change caused. Without this the change is accepted by itself after driftHoldHours.
| Field | Type | Description |
|---|
idrequiredpath | string | Monitor id (mon_...) |
curl -X POST https://upbutler.com/api/v1/monitors/mon_0n3q8kz1m4hx7c2v9rt/schema/accept \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Balance monitor: history and run-out projection
GET/api/v1/monitors/:id/balance
API key · readMCP monitors_balanceReturns 200
For kind "balance". Remaining amount over time, burn per day over the last 7 days and the projected run-out date (null until there are 3 samples spanning an hour, or when nothing is being spent).
| Field | Type | Description |
|---|
idrequiredpath | string | Monitor id (mon_...) |
daysquery | integer | min 1 · max 120 |
curl https://upbutler.com/api/v1/monitors/mon_0n3q8kz1m4hx7c2v9rt/balance \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Per-check metrics (time to first token, MCP step timings, balance)
GET/api/v1/monitors/:id/metrics
API key · readMCP monitors_metricsReturns 200
Numbers recorded on every check of an mcp, llm or balance monitor, with p50/p95 per metric. llm: ttfbMs, ttftMs (time to first token), totalMs, chunks. mcp: initMs, listMs, callMs, tools. balance: balance, used, daysLeft.
| Field | Type | Description |
|---|
idrequiredpath | string | Monitor id (mon_...) |
hoursquery | integer | min 1 · max 168 |
limitquery | integer | min 1 · max 2,000 |
curl https://upbutler.com/api/v1/monitors/mon_0n3q8kz1m4hx7c2v9rt/metrics \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#List check regions and probe health
GET/api/v1/regions
API key · readMCP regions_listReturns 200
Regions monitors can be checked from (use the ids in a monitor's "regions"). With several regions a round only counts as DOWN when a majority of the reporting regions agree; regions whose probe is unhealthy are skipped, never counted as failures. Entries with private=true are your own private probes (POST /probes): a monitor that lists only those is checked from inside your network.
No parameters.
curl https://upbutler.com/api/v1/regions \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Per-region latency and failures for a monitor
GET/api/v1/monitors/:id/regions
API key · readMCP monitors_regionsReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | Monitor id (mon_...) |
hoursquery | integer | min 1 · max 168 |
curl https://upbutler.com/api/v1/monitors/mon_0n3q8kz1m4hx7c2v9rt/regions \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Proxy monitor: the pool and the latest result per proxy
GET/api/v1/monitors/:id/proxy
API key · readMCP monitors_proxyReturns 200
Each proxy of the pool (scheme, host, port, credential hint; never the URL) with its latest result from every region or private probe: outcome, failure class, successful samples, exit IPs and country, connect / tunnel / first-byte / total time.
| Field | Type | Description |
|---|
idrequiredpath | string | Monitor id (mon_...) |
curl https://upbutler.com/api/v1/monitors/mon_0n3q8kz1m4hx7c2v9rt/proxy \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#IP echo: the address (and country) this request came from
GET/api/v1/echo/ip
Public — no keyREST onlyReturns 200
The default target of proxy monitors: fetched through a proxy it reports the exit IP, and the exit country when the request reaches UpButler through its CDN. No auth; rate-limited per address.
No parameters.
curl https://upbutler.com/api/v1/echo/ip
#Mute a monitor for N minutes
POST/api/v1/monitors/:id/mute
API key · writeMCP monitors_muteReturns 200
Checks keep running and components keep following the monitor, but no incident is opened and nobody is alerted until the mute ends (people: up to 24 hours; agents: up to 60 minutes). If the monitor is still down when the mute ends, the outage is raised then.
| Field | Type | Description |
|---|
idrequiredpath | string | |
minutesrequired | integer | min 1 · max 1,440 |
reason | string | max length 300 |
curl -X POST https://upbutler.com/api/v1/monitors/mon_0n3q8kz1m4hx7c2v9rt/mute \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"minutes": 15,
"reason": "Restarting the worker pool"
}'
#End a mute now
POST/api/v1/monitors/:id/unmute
API key · writeMCP monitors_unmuteReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | |
curl -X POST https://upbutler.com/api/v1/monitors/mon_0n3q8kz1m4hx7c2v9rt/unmute \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Status pages
#List status pages
GET/api/v1/pages
API key · readMCP pages_listReturns 200
No parameters.
curl https://upbutler.com/api/v1/pages \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Create a status page
POST/api/v1/pages
API key · writeMCP pages_createReturns 201
Theme presets: midnight, grid, daylight, paper. Add components afterwards with POST /pages/{pageId}/components.
| Field | Type | Description |
|---|
namerequired | string | max length 100 |
slug | string | pattern ^[a-z0-9](?:[a-z0-9-]{1,46}[a-z0-9])?$ |
description | string | max length 500 |
customDomain | string | null | pattern ^(?=.{4,253}$)([a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,63}$ · nullable |
access | object | |
access.audience | string | Internal pages: team = your own people (internal incidents, notes, on-call… as switched on); customer = one customer: viewers see only what a public page would show for this page, read-onlyteamcustomer |
visibility | string | public = anyone · private = dashboard only · internal = signed-in viewers (email domain, invited address, shared link; see PUT /pages/:id/access)publicprivateinternal |
theme | object | |
theme.preset | string | max length 30 |
theme.mode | string | darklight |
theme.accent | string | pattern ^#[0-9a-fA-F]{6}$ |
theme.tokens | map<string, string> | |
theme.fontSans | string | max length 40 |
theme.fontMono | string | max length 40 |
theme.radius | integer | min 0 · max 24 |
theme.customCss | string | max length 50,000 |
branding | object | |
branding.logoUrl | string | null | max length 1,000 · nullable |
branding.logoDarkUrl | string | null | max length 1,000 · nullable |
branding.logoText | string | null | max length 60 · nullable |
branding.faviconUrl | string | null | max length 1,000 · nullable |
branding.websiteUrl | string (url) | null | max length 500 · nullable |
branding.supportUrl | string (url) | null | max length 500 · nullable |
branding.headerLinks | object[] | max 8 items |
branding.headerLinks[].labelrequired | string | max length 60 |
branding.headerLinks[].urlrequired | string (url) | max length 500 |
branding.footerLinks | object[] | max 20 items |
branding.footerLinks[].labelrequired | string | max length 60 |
branding.footerLinks[].urlrequired | string (url) | max length 500 |
branding.footerText | string | null | max length 300 · nullable |
branding.hidePoweredBy | boolean | Switch the "Powered by UpButler" badge off. Plans where the branding is optional (Pro and up); Free and Starter always show it |
branding.showPoweredBy | boolean | White-label plans (Business) show no UpButler branding by default; true switches the badge on |
branding.poweredByStyle | string | When the branding is shown by the owner's choice (Pro, Business): 'badge' (default) is the footer badge, 'full' adds the header chip and the footer blockbadgefull |
settings | object | |
settings.uptimeDays | integer | min 7 · max 90 |
settings.showUptimePercent | boolean | |
settings.showResponseTimes | boolean | Allow public response-time charts (components opt in with showResponseTimes) |
settings.language | string | Public page + subscriber email language; auto = visitor Accept-Languageautoendefresitptnlelpltrja |
settings.autoIncidents | boolean | |
settings.autoIncidentReview | boolean | Automatic incidents are drafts: the team is alerted, but nothing appears on the page or reaches subscribers until someone publishes it (PATCH /incidents/:id {"publish": true}). Default: on for customer pages, off elsewhere |
settings.incidentMinStatus | string | Lowest component status that opens an automatic incidentdegradedpartial_outagemajor_outage |
settings.aiPublicUpdates | boolean | |
settings.aiGuidelines | string | Rules for AI-written public text, e.g. "Never mention internal infrastructure"max length 2,000 |
settings.aiAvoidTerms | string[] | AI public text containing any of these is replaced by a neutral templatemax 50 items |
settings.subscriptions | object | |
settings.subscriptions.email | boolean | |
settings.subscriptions.webhook | boolean | |
settings.subscriptions.slack | boolean | |
settings.subscriptions.rss | boolean | |
settings.timezone | string | max length 60 |
settings.agentPolicy | object | Overrides for the agent verdict (status.agent.json): status → proceed|retry|fallback|pause, page-wide or per component key. Replaces the stored policy; {} clears it |
settings.agentPolicy.default | map<string, string> | |
settings.agentPolicy.components | map<string, object> | |
settings.userReports | object | "Report a problem" button and widget. On for new pages; only the given fields change |
settings.userReports.enabled | boolean | Show the "Report a problem" button and accept reports |
settings.userReports.origins | string[] | Origins that may embed the widget and POST reports, besides the status page itself, e.g. https://app.acme.commax 20 items |
settings.userReports.minReporters | integer | Distinct reporters within the window that make a signal (default 3)min 1 · max 50 |
settings.userReports.windowMinutes | integer | Sliding window in minutes (default 10)min 2 · max 120 |
settings.userReports.collectEmail | boolean | Offer an optional email field for one "fixed" email |
settings.userReports.escalateUnconfirmed | boolean | Unconfirmed signals (users report problems, checks are green) also start the escalation policy, including agent responders |
settings.userReports.shareEmailsWithAgents | boolean | Include reporter emails in the agent responder packet (default false) |
settings.userReports.aiSummary | boolean | AI summaries of reports in the team inbox |
settings.userReports.showFirstReportedPublicly | boolean | Add a public timeline line "first reported by our users" to incidents that users reported before monitoring confirmed them (default false; never any report text) |
settings.analytics | object | Status page analytics (views, visitors, agent reads; no cookies, no IPs stored). On by default; {"enabled": false} stops counting |
settings.analytics.enabledrequired | boolean | |
settings.searchPing | boolean | Tell search engines through IndexNow when a public page changes (incident opened, updated or resolved; component status). On by default; false stops the pings. Never sent for private, internal or noindex pages |
seo | object | |
seo.title | string | max length 120 |
seo.description | string | max length 300 |
seo.noindex | boolean | |
curl -X POST https://upbutler.com/api/v1/pages \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Acme Status",
"slug": "acme",
"theme": {
"preset": "midnight",
"accent": "#22c55e"
}
}'
#Get a status page with components
GET/api/v1/pages/:pageId
API key · readMCP pages_getReturns 200
| Field | Type | Description |
|---|
pageIdrequiredpath | string | Status page id (pg_...) or slug |
curl https://upbutler.com/api/v1/pages/pg_0n3q8kz0b2fd81mka5e \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Update page settings, theme, branding or domain
PATCH/api/v1/pages/:pageId
API key · writeMCP pages_updateReturns 200
| Field | Type | Description |
|---|
name | string | max length 100 |
slug | string | pattern ^[a-z0-9](?:[a-z0-9-]{1,46}[a-z0-9])?$ |
description | string | max length 500 |
customDomain | string | null | pattern ^(?=.{4,253}$)([a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,63}$ · nullable |
access | object | |
access.audience | string | Internal pages: team = your own people (internal incidents, notes, on-call… as switched on); customer = one customer: viewers see only what a public page would show for this page, read-onlyteamcustomer |
visibility | string | public = anyone · private = dashboard only · internal = signed-in viewers (email domain, invited address, shared link; see PUT /pages/:id/access)publicprivateinternal |
theme | object | |
theme.preset | string | max length 30 |
theme.mode | string | darklight |
theme.accent | string | pattern ^#[0-9a-fA-F]{6}$ |
theme.tokens | map<string, string> | |
theme.fontSans | string | max length 40 |
theme.fontMono | string | max length 40 |
theme.radius | integer | min 0 · max 24 |
theme.customCss | string | max length 50,000 |
branding | object | |
branding.logoUrl | string | null | max length 1,000 · nullable |
branding.logoDarkUrl | string | null | max length 1,000 · nullable |
branding.logoText | string | null | max length 60 · nullable |
branding.faviconUrl | string | null | max length 1,000 · nullable |
branding.websiteUrl | string (url) | null | max length 500 · nullable |
branding.supportUrl | string (url) | null | max length 500 · nullable |
branding.headerLinks | object[] | max 8 items |
branding.headerLinks[].labelrequired | string | max length 60 |
branding.headerLinks[].urlrequired | string (url) | max length 500 |
branding.footerLinks | object[] | max 20 items |
branding.footerLinks[].labelrequired | string | max length 60 |
branding.footerLinks[].urlrequired | string (url) | max length 500 |
branding.footerText | string | null | max length 300 · nullable |
branding.hidePoweredBy | boolean | Switch the "Powered by UpButler" badge off. Plans where the branding is optional (Pro and up); Free and Starter always show it |
branding.showPoweredBy | boolean | White-label plans (Business) show no UpButler branding by default; true switches the badge on |
branding.poweredByStyle | string | When the branding is shown by the owner's choice (Pro, Business): 'badge' (default) is the footer badge, 'full' adds the header chip and the footer blockbadgefull |
settings | object | |
settings.uptimeDays | integer | min 7 · max 90 |
settings.showUptimePercent | boolean | |
settings.showResponseTimes | boolean | Allow public response-time charts (components opt in with showResponseTimes) |
settings.language | string | Public page + subscriber email language; auto = visitor Accept-Languageautoendefresitptnlelpltrja |
settings.autoIncidents | boolean | |
settings.autoIncidentReview | boolean | Automatic incidents are drafts: the team is alerted, but nothing appears on the page or reaches subscribers until someone publishes it (PATCH /incidents/:id {"publish": true}). Default: on for customer pages, off elsewhere |
settings.incidentMinStatus | string | Lowest component status that opens an automatic incidentdegradedpartial_outagemajor_outage |
settings.aiPublicUpdates | boolean | |
settings.aiGuidelines | string | Rules for AI-written public text, e.g. "Never mention internal infrastructure"max length 2,000 |
settings.aiAvoidTerms | string[] | AI public text containing any of these is replaced by a neutral templatemax 50 items |
settings.subscriptions | object | |
settings.subscriptions.email | boolean | |
settings.subscriptions.webhook | boolean | |
settings.subscriptions.slack | boolean | |
settings.subscriptions.rss | boolean | |
settings.timezone | string | max length 60 |
settings.agentPolicy | object | Overrides for the agent verdict (status.agent.json): status → proceed|retry|fallback|pause, page-wide or per component key. Replaces the stored policy; {} clears it |
settings.agentPolicy.default | map<string, string> | |
settings.agentPolicy.components | map<string, object> | |
settings.userReports | object | "Report a problem" button and widget. On for new pages; only the given fields change |
settings.userReports.enabled | boolean | Show the "Report a problem" button and accept reports |
settings.userReports.origins | string[] | Origins that may embed the widget and POST reports, besides the status page itself, e.g. https://app.acme.commax 20 items |
settings.userReports.minReporters | integer | Distinct reporters within the window that make a signal (default 3)min 1 · max 50 |
settings.userReports.windowMinutes | integer | Sliding window in minutes (default 10)min 2 · max 120 |
settings.userReports.collectEmail | boolean | Offer an optional email field for one "fixed" email |
settings.userReports.escalateUnconfirmed | boolean | Unconfirmed signals (users report problems, checks are green) also start the escalation policy, including agent responders |
settings.userReports.shareEmailsWithAgents | boolean | Include reporter emails in the agent responder packet (default false) |
settings.userReports.aiSummary | boolean | AI summaries of reports in the team inbox |
settings.userReports.showFirstReportedPublicly | boolean | Add a public timeline line "first reported by our users" to incidents that users reported before monitoring confirmed them (default false; never any report text) |
settings.analytics | object | Status page analytics (views, visitors, agent reads; no cookies, no IPs stored). On by default; {"enabled": false} stops counting |
settings.analytics.enabledrequired | boolean | |
settings.searchPing | boolean | Tell search engines through IndexNow when a public page changes (incident opened, updated or resolved; component status). On by default; false stops the pings. Never sent for private, internal or noindex pages |
seo | object | |
seo.title | string | max length 120 |
seo.description | string | max length 300 |
seo.noindex | boolean | |
pageIdrequiredpath | string | Status page id (pg_...) or slug |
curl -X PATCH https://upbutler.com/api/v1/pages/pg_0n3q8kz0b2fd81mka5e \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Delete a status page, its components and subscribers
DELETE/api/v1/pages/:pageId
API key · writeMCP pages_deleteReturns 200
| Field | Type | Description |
|---|
pageIdrequiredpath | string | Status page id (pg_...) or slug |
curl -X DELETE https://upbutler.com/api/v1/pages/pg_0n3q8kz0b2fd81mka5e \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Check the custom domain DNS now
POST/api/v1/pages/:pageId/domain/verify
API key · writeMCP pages_verifyDomainReturns 200
Verified when the domain CNAMEs to the target shown in pages.get dns.value (or resolves to the same IPs).
| Field | Type | Description |
|---|
pageIdrequiredpath | string | Status page id (pg_...) or slug |
curl -X POST https://upbutler.com/api/v1/pages/pg_0n3q8kz0b2fd81mka5e/domain/verify \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Get the rendered public status data (as visitors see it)
GET/api/v1/pages/:pageId/preview
API key · readMCP pages_previewReturns 200
| Field | Type | Description |
|---|
pageIdrequiredpath | string | Status page id (pg_...) or slug |
curl https://upbutler.com/api/v1/pages/pg_0n3q8kz0b2fd81mka5e/preview \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Replace the ordered list of component groups
PUT/api/v1/pages/:pageId/groups
API key · writeMCP pages_groupsReturns 200
| Field | Type | Description |
|---|
pageIdrequiredpath | string | Status page id (pg_...) or slug |
groupsrequired | object[] | |
groups[].id | string | |
groups[].namerequired | string | max length 80 |
groups[].description | string | max length 300 |
groups[].collapsed | boolean | |
curl -X PUT https://upbutler.com/api/v1/pages/pg_0n3q8kz0b2fd81mka5e/groups \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"groups": []
}'
#List subscribers of a status page
GET/api/v1/pages/:pageId/subscribers
API key · readMCP pages_subscribersReturns 200
| Field | Type | Description |
|---|
pageIdrequiredpath | string | Status page id (pg_...) or slug |
statusquery | string | pendingactiveunsubscribeddisabled |
limitquery | integer | min 1 · max 1,000 |
curl https://upbutler.com/api/v1/pages/pg_0n3q8kz0b2fd81mka5e/subscribers \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Status page analytics: views, visitors, agent reads, subscribers
GET/api/v1/pages/:pageId/analytics
API key · readMCP pages_analyticsReturns 200
Who looks at a status page, when, and whether agents read it. totals: page views by people, unique visitors (distinct per UTC day, summed), reads by agents (AI assistants, MCP clients, scripts) with the previous period; branding: the UpButler attribution level of the page (prominent, standard, none) and how many people followed it (clicks in the range, clicksTotal); series: one value per bucket; subscribers: growth by type and confirmation rate; week.line: one sentence for a report. Breakdowns (people vs agents vs bots over time, surfaces, referrers, countries, devices, agent names, MCP tools) need a plan with pageAnalyticsBreakdowns (breakdowns is null otherwise). Counted on the server with no cookies and no stored addresses: /docs/status-page-analytics. range max = the plan history window.
| Field | Type | Description |
|---|
pageIdrequiredpath | string | Status page id (pg_...) or slug |
rangequery | string | 24h (rolling, hourly), 7d (default, 6-hour buckets), 30d (daily) or max (the plan history window)24h7d30dmax |
curl "https://upbutler.com/api/v1/pages/acme/analytics?range=7d" \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Per-incident analytics: views, peak, time to first view, notifications
GET/api/v1/pages/:pageId/analytics/incidents
API key · readMCP pages_analytics_incidentsReturns 200
For each public incident of the page: reads while it was open and reads of its page afterwards (people, agents, bots), the busiest five minutes, seconds from the start to the first view / first agent read / first delivered subscriber notification, notifications sent and failed by subscriber type, and unsubscribes within 48 hours of them. With incidentId: that incident plus its five-minute series. Bounces are not known (reported as null).
| Field | Type | Description |
|---|
pageIdrequiredpath | string | Status page id (pg_...) or slug |
rangequery | string | Incidents that started, ended or are open in this window (default 30d)24h7d30dmax |
incidentIdquery | string | One incident, with its five-minute view series |
limitquery | integer | min 1 · max 100 |
curl https://upbutler.com/api/v1/pages/pg_0n3q8kz0b2fd81mka5e/analytics/incidents \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Delete the analytics data of a status page
DELETE/api/v1/pages/:pageId/analytics
API key · writeREST onlyReturns 200
Removes every counter kept for the page (hours, days, per-incident rows). Counting continues unless the page has settings.analytics.enabled = false. Cannot be undone.
| Field | Type | Description |
|---|
pageIdrequiredpath | string | Status page id (pg_...) or slug |
curl -X DELETE https://upbutler.com/api/v1/pages/pg_0n3q8kz0b2fd81mka5e/analytics \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Remove a subscriber
DELETE/api/v1/subscribers/:id
API key · writeMCP subscribers_deleteReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | |
curl -X DELETE https://upbutler.com/api/v1/subscribers/sub_0n3q9b40t2m8w6k1c5v \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Components
#Add a component to a status page
POST/api/v1/pages/:pageId/components
API key · writeMCP components_createReturns 201
A component is a row on the status page. Its status comes from one of: monitorIds (follows monitors), push=true (you POST statuses to its push URL), manifest {monitorId,key} (read from a manifest monitor), or manual (default).
| Field | Type | Description |
|---|
pageIdrequiredpath | string | Status page id (pg_...) or slug |
namerequired | string | max length 100 |
key | string | Stable machine key used by pushes and manifests (default: slug of name)pattern ^[a-z0-9][a-z0-9_.-]{0,62}$ |
description | string | max length 500 |
group | string | Group name or id; created if it does not existmax length 80 |
monitorIds | string[] | Status follows these monitorsmax 20 items |
aggregate | string | worstmajorityredundant |
push | boolean | Status is pushed via the component push URL |
pushTtlSec | integer | null | Become "unknown" when no push arrives for this long (null clears it)min 60 · max 604,800 · nullable |
manual | boolean | Switch the component to manual status (set via overrides/incidents) |
manifest | object | Status read from a manifest monitor key |
manifest.monitorIdrequired | string | |
manifest.keyrequired | string | max length 120 |
upstream | object | null | Third-party component: mirror a service from the upstream catalog (slug from upstream_list, e.g. "stripe"), optionally only some of its components. Shown with attribution; never opens incidents. null detaches it. Starter and upnullable |
upstream.servicerequired | string | max length 60 |
upstream.components | string[] | max 10 items |
showUptime | boolean | |
showResponseTimes | boolean | Public response-time chart (monitor-backed components only; page setting showResponseTimes must be on) |
hidden | boolean | |
internalOnly | boolean | Show only on an internal page, to signed-in viewers; hidden from every public surface |
order | integer | min 0 · max 10,000 |
confirmations | integer | Push/manifest: consecutive fresh bad reports before a worse status shows (default 2; 1 = immediate)min 1 · max 10 |
gate | string | null | "incident": a reported status is held and shown only once its automatic incident is published (a draft on pages that review automatic incidents). null clears it.incidentnullable |
incidentTitle | string | null | With autoPublish: title of its automatic incidents, customer-facing (null clears it).max length 120 · nullable |
recoveryConfirmations | integer | Push/manifest: consecutive fresh better reports before a recovery from an outage shows (default 1 = at once; 2 stops a single lucky pass)min 1 · max 10 |
autoPublish | boolean | Publish this component's automatic incidents at once, even on a page that reviews automatic incidents; the reported message opens the incident (it must then hold no addresses, links or banned terms). |
notifySubscribers | boolean | Email (and notify) the page's subscribers of this component when its reported status changes, with the reported message word for word (it must then hold no addresses, links or the page's banned terms). |
curl -X POST https://upbutler.com/api/v1/pages/acme/components \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Search API",
"group": "APIs",
"monitorIds": [
"mon_..."
]
}'
#Update a component (name, group, source, visibility)
PATCH/api/v1/components/:id
API key · writeMCP components_updateReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | |
name | string | max length 100 |
key | string | Stable machine key used by pushes and manifests (default: slug of name)pattern ^[a-z0-9][a-z0-9_.-]{0,62}$ |
description | string | max length 500 |
group | string | Group name or id; created if it does not existmax length 80 |
monitorIds | string[] | Status follows these monitorsmax 20 items |
aggregate | string | worstmajorityredundant |
push | boolean | Status is pushed via the component push URL |
pushTtlSec | integer | null | Become "unknown" when no push arrives for this long (null clears it)min 60 · max 604,800 · nullable |
manual | boolean | Switch the component to manual status (set via overrides/incidents) |
manifest | object | Status read from a manifest monitor key |
manifest.monitorIdrequired | string | |
manifest.keyrequired | string | max length 120 |
upstream | object | null | Third-party component: mirror a service from the upstream catalog (slug from upstream_list, e.g. "stripe"), optionally only some of its components. Shown with attribution; never opens incidents. null detaches it. Starter and upnullable |
upstream.servicerequired | string | max length 60 |
upstream.components | string[] | max 10 items |
showUptime | boolean | |
showResponseTimes | boolean | Public response-time chart (monitor-backed components only; page setting showResponseTimes must be on) |
hidden | boolean | |
internalOnly | boolean | Show only on an internal page, to signed-in viewers; hidden from every public surface |
order | integer | min 0 · max 10,000 |
confirmations | integer | Push/manifest: consecutive fresh bad reports before a worse status shows (default 2; 1 = immediate)min 1 · max 10 |
gate | string | null | "incident": a reported status is held and shown only once its automatic incident is published (a draft on pages that review automatic incidents). null clears it.incidentnullable |
incidentTitle | string | null | With autoPublish: title of its automatic incidents, customer-facing (null clears it).max length 120 · nullable |
recoveryConfirmations | integer | Push/manifest: consecutive fresh better reports before a recovery from an outage shows (default 1 = at once; 2 stops a single lucky pass)min 1 · max 10 |
autoPublish | boolean | Publish this component's automatic incidents at once, even on a page that reviews automatic incidents; the reported message opens the incident (it must then hold no addresses, links or banned terms). |
notifySubscribers | boolean | Email (and notify) the page's subscribers of this component when its reported status changes, with the reported message word for word (it must then hold no addresses, links or the page's banned terms). |
curl -X PATCH https://upbutler.com/api/v1/components/cmp_0n3q8kz2p7wd4yx0s3a \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Delete a component
DELETE/api/v1/components/:id
API key · writeMCP components_deleteReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | |
curl -X DELETE https://upbutler.com/api/v1/components/cmp_0n3q8kz2p7wd4yx0s3a \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Manually set (or clear) a component status
POST/api/v1/components/:id/override
API key · writeMCP components_overrideReturns 200
Overrides win over automatic status until cleared with status=null. For outages prefer creating an incident, which also notifies subscribers.
| Field | Type | Description |
|---|
idrequiredpath | string | |
statusrequired | string | null | operationaldegradedpartial_outagemajor_outagemaintenancenullable |
reason | string | max length 300 |
curl -X POST https://upbutler.com/api/v1/components/cmp_0n3q8kz2p7wd4yx0s3a/override \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"status": "operational"
}'
#Push statuses for many components at once
POST/api/v1/pages/:pageId/status
API key · writeMCP pages_pushReturns 200
Body: {"statuses": {"<component key>": "operational" | {"status": "major_outage", "message": "..."}}}. Accepts ok/up/fail/down/true/false too. Failing components open (or join) an automatic incident when the page has autoIncidents on; recovery resolves it.
| Field | Type | Description |
|---|
pageIdrequiredpath | string | Status page id (pg_...) or slug |
statusesrequired | map<string, any> | |
curl -X POST https://upbutler.com/api/v1/pages/acme/status \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"statuses": {
"search": "operational",
"billing": {
"status": "degraded",
"message": "Stripe latency"
}
}
}'
#Incidents
#List incidents and maintenance
GET/api/v1/incidents
API key · readMCP incidents_listReturns 200
| Field | Type | Description |
|---|
openquery | boolean | string | Only unresolved |
kindquery | string | incidentmaintenance |
pageIdquery | string | |
monitorIdquery | string | |
limitquery | integer | min 1 · max 200 |
curl https://upbutler.com/api/v1/incidents \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Get an incident with its timeline and AI reports
GET/api/v1/incidents/:id
API key · readMCP incidents_getReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | |
curl https://upbutler.com/api/v1/incidents/inc_0n3q9a11v8k2h5n0qzc \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Report an incident
POST/api/v1/incidents
API key · writeMCP incidents_createReturns 201
Declare an incident (agents: use this when you detect a problem yourself). Affected components switch to the given status and page subscribers are notified. Set polish=true to have AI rewrite rough notes into a clear public update.
| Field | Type | Description |
|---|
titlerequired | string | max length 200 |
messagerequired | string | First public updatemax length 10,000 |
status | string | investigatingidentifiedmonitoring |
impact | string | noneminormajorcritical |
pageIds | string[] | max 20 items |
components | object[] | Affected components and their status during the incidentmax 200 items |
components[].componentIdrequired | string | |
components[].statusrequired | string | operationaldegradedpartial_outagemajor_outagemaintenance |
public | boolean | Show on status pages (default: true when pages/components are given) |
polish | boolean | |
notify | boolean | Notify subscribers (default true) |
curl -X POST https://upbutler.com/api/v1/incidents \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "Elevated API errors",
"message": "We are seeing 5xx errors on search and are investigating.",
"components": [
{
"componentId": "cmp_...",
"status": "partial_outage"
}
]
}'
#Post an incident update
POST/api/v1/incidents/:id/updates
API key · writeMCP incidents_updateReturns 200
Adds a timeline update, optionally changing status and component impact. status=resolved resolves the incident.
| Field | Type | Description |
|---|
idrequiredpath | string | |
messagerequired | string | max length 10,000 |
status | string | investigatingidentifiedmonitoringresolvedscheduledin_progresscompleted |
components | object[] | Affected components and their status during the incidentmax 200 items |
components[].componentIdrequired | string | |
components[].statusrequired | string | operationaldegradedpartial_outagemajor_outagemaintenance |
public | boolean | false = internal note (not shown or sent to subscribers) |
polish | boolean | |
notify | boolean | |
curl -X POST https://upbutler.com/api/v1/incidents/inc_0n3q9a11v8k2h5n0qzc/updates \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"message": "We are looking into it."
}'
#Change an incident's impact or title, or publish a draft automatic incident
PATCH/api/v1/incidents/:id
API key · writeMCP incidents_editReturns 200
Automatic incidents get their impact from how much of the page is affected (one component of many in a major outage is "major", not "critical"). Use this to set it yourself: none, minor, major or critical. An impact you set is kept when more components join the incident. The change is noted on the internal timeline; subscribers are not notified again. publish: true puts a draft automatic incident (on a page that reviews them, such as a customer page) on its status pages and notifies their subscribers.
| Field | Type | Description |
|---|
idrequiredpath | string | |
impact | string | noneminormajorcritical |
title | string | max length 200 |
publish | boolean | Publish a draft automatic incident to its status pages |
curl -X PATCH https://upbutler.com/api/v1/incidents/inc_0n3q9a11v8k2h5n0qzc \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Resolve an incident
POST/api/v1/incidents/:id/resolve
API key · writeMCP incidents_resolveReturns 200
Without a message, UpButler writes the resolution note (AI recovery summary when available). Agent responders (incident tokens) must hold the claim and have a passing POST /incidents/:id/verify from the last few minutes; people and full API keys are not restricted.
| Field | Type | Description |
|---|
idrequiredpath | string | |
message | string | max length 10,000 |
polish | boolean | |
curl -X POST https://upbutler.com/api/v1/incidents/inc_0n3q9a11v8k2h5n0qzc/resolve \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Generate (or regenerate) the AI report for an incident
POST/api/v1/incidents/:id/analyze
API key · writeMCP incidents_analyzeReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | |
curl -X POST https://upbutler.com/api/v1/incidents/inc_0n3q9a11v8k2h5n0qzc/analyze \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Schedule maintenance
POST/api/v1/maintenance
API key · writeMCP maintenance_createReturns 201
Components show "Under maintenance" during the window; it starts and completes automatically. Subscribers are notified.
| Field | Type | Description |
|---|
titlerequired | string | max length 200 |
messagerequired | string | max length 10,000 |
scheduledStartrequired | any | |
scheduledEndrequired | any | |
pageIds | string[] | max 20 items |
componentIds | string[] | max 200 items |
notify | boolean | |
curl -X POST https://upbutler.com/api/v1/maintenance \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "Elevated API errors",
"message": "We are looking into it.",
"scheduledStart": "2026-11-02T22:00:00Z",
"scheduledEnd": "2026-11-02T23:00:00Z"
}'
#Acknowledge an incident or a down monitor
POST/api/v1/incidents/:id/ack
API key · writeMCP incidents_ackReturns 200
Take ownership: stops "still down" reminders and escalation, records an internal timeline entry and emits incident.acknowledged to the channels that were alerted. `id` may be an incident id or a monitor id (acknowledges its open incident). Idempotent. Agent responders (incident tokens): acknowledging claims the incident, same as POST /incidents/:id/claim.
| Field | Type | Description |
|---|
idrequiredpath | string | Incident id (inc_…) or monitor id (mon_…) |
note | string | e.g. "Looking into it, rolling back deploy"max length 1,000 |
curl -X POST https://upbutler.com/api/v1/incidents/inc_0n3q9a11v8k2h5n0qzc/ack \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"note": "On it, rolling back the last deploy"
}'
#Remove an acknowledgement
POST/api/v1/incidents/:id/unack
API key · writeMCP incidents_unackReturns 200
Reminders and escalation resume where they stopped.
| Field | Type | Description |
|---|
idrequiredpath | string | |
curl -X POST https://upbutler.com/api/v1/incidents/inc_0n3q9a11v8k2h5n0qzc/unack \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Draft a postmortem with AI
POST/api/v1/incidents/:id/postmortem
API key · writeMCP incidents_postmortemReturns 200
Writes a blameless markdown postmortem (summary, impact, timeline from updates, checks and deploy markers, root-cause hypotheses, contributing factors, what went well/poorly, action items) plus a customer-safe summary, and stores it as a new version. Uses one AI report. When AI is unavailable the 503 response carries a template draft in error.details.template.
| Field | Type | Description |
|---|
idrequiredpath | string | |
mode | string | template = return an unsaved fill-in-the-blanks draft without using AIaitemplate |
curl -X POST https://upbutler.com/api/v1/incidents/inc_0n3q9a11v8k2h5n0qzc/postmortem \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Get an incident's postmortem
GET/api/v1/incidents/:id/postmortem
API key · readMCP incidents_postmortem_getReturns 200
Current markdown, the public summary, publish state and the version list (history=true includes every version's markdown). 404 when none exists yet.
| Field | Type | Description |
|---|
idrequiredpath | string | |
historyquery | boolean | string | |
curl https://upbutler.com/api/v1/incidents/inc_0n3q9a11v8k2h5n0qzc/postmortem \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Save an edited postmortem (new version)
PUT/api/v1/incidents/:id/postmortem
API key · writeMCP incidents_postmortem_saveReturns 200
Send baseVersion (the version you edited) to get a 409 instead of overwriting someone else's changes.
| Field | Type | Description |
|---|
idrequiredpath | string | |
markdownrequired | string | max length 60,000 |
publicSummary | string | Customer-safe text used by publishmax length 5,000 |
baseVersion | integer | min 1 |
curl -X PUT https://upbutler.com/api/v1/incidents/inc_0n3q9a11v8k2h5n0qzc/postmortem \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"markdown": "..."
}'
#Publish a post-incident report to status pages
POST/api/v1/incidents/:id/postmortem/publish
API key · writeMCP incidents_postmortem_publishReturns 200
Posts body (default: the postmortem's public summary) as a public update on the resolved incident and notifies subscribers. The text must pass the page's AI policy and may not contain hostnames, IPs or error output.
| Field | Type | Description |
|---|
idrequiredpath | string | |
body | string | max length 10,000 |
notify | boolean | |
curl -X POST https://upbutler.com/api/v1/incidents/inc_0n3q9a11v8k2h5n0qzc/postmortem/publish \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#List incident templates
GET/api/v1/incident-templates
API key · readMCP templates_listReturns 200
Reusable title/status/impact/message presets. Bodies support {{component}}, {{duration}}, {{status_page}} and {{title}}. New workspaces start with sensible defaults.
No parameters.
curl https://upbutler.com/api/v1/incident-templates \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Create an incident template
POST/api/v1/incident-templates
API key · writeMCP templates_createReturns 201
| Field | Type | Description |
|---|
namerequired | string | Shown in the "Use template" pickermax length 80 |
kind | string | Default incidentincidentmaintenance |
titlerequired | string | Incident title; placeholders allowedmax length 200 |
status | string | investigatingidentifiedmonitoringresolvedscheduledin_progresscompleted |
impact | string | noneminormajorcriticalmaintenance |
bodyrequired | string | Update text. Placeholders: {{component}}, {{duration}}, {{status_page}}, {{title}}max length 10,000 |
componentIds | string[] | Components affected by defaultmax 200 items |
componentStatus | string | Status the default components get (default partial_outage)operationaldegradedpartial_outagemajor_outagemaintenance |
order | integer | min 0 · max 10,000 |
curl -X POST https://upbutler.com/api/v1/incident-templates \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Payment provider outage",
"title": "Payments delayed on {{component}}",
"status": "identified",
"impact": "major",
"body": "Our payment provider is having issues. {{component}} payments may be delayed; no charges are lost."
}'
#Update an incident template
PATCH/api/v1/incident-templates/:id
API key · writeMCP templates_updateReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | |
name | string | Shown in the "Use template" pickermax length 80 |
kind | string | Default incidentincidentmaintenance |
title | string | Incident title; placeholders allowedmax length 200 |
status | string | investigatingidentifiedmonitoringresolvedscheduledin_progresscompleted |
impact | string | noneminormajorcriticalmaintenance |
body | string | Update text. Placeholders: {{component}}, {{duration}}, {{status_page}}, {{title}}max length 10,000 |
componentIds | string[] | Components affected by defaultmax 200 items |
componentStatus | string | Status the default components get (default partial_outage)operationaldegradedpartial_outagemajor_outagemaintenance |
order | integer | min 0 · max 10,000 |
curl -X PATCH https://upbutler.com/api/v1/incident-templates/id_... \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Delete an incident template
DELETE/api/v1/incident-templates/:id
API key · writeMCP templates_deleteReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | |
curl -X DELETE https://upbutler.com/api/v1/incident-templates/id_... \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Fill in a template
POST/api/v1/incident-templates/:id/render
API key · readMCP templates_renderReturns 200
Returns title, message, status, impact and components ready for POST /incidents or POST /incidents/{id}/updates. With incidentId, the incident's components and duration fill the placeholders; otherwise componentIds (or the template defaults) do.
| Field | Type | Description |
|---|
idrequiredpath | string | |
incidentId | string | |
componentIds | string[] | max 200 items |
curl -X POST https://upbutler.com/api/v1/incident-templates/id_.../render \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Wait for the next page of an agent responder (long-poll)
GET/api/v1/responders/:id/pages
API key · writeMCP responder_wait_for_pageReturns 200
For agents without a public endpoint: be an on-call responder by waiting for pages in a loop (wait → handle → wait). Returns as soon as the responder is paged, or {"page": null} after `wait` seconds; call it again right away. A page carries the incident, a bearer token valid for that incident only (page.token.value), the handoff packet and a ready-made prompt. Then claim the incident with that token (incidents_claim) within page.ackTimeoutMinutes or the next escalation level is paged; a page that is neither confirmed (responder_ack_page) nor claimed is delivered again after 30 seconds. `id` is "me" with a responder key (ub_rsp_…), or the responder id with an API key or OAuth connection. The responder must use pull delivery.
| Field | Type | Description |
|---|
idrequiredpath | string | "me" with a responder key; otherwise the responder id (agr_…) or its exact name |
waitquery | integer | Seconds to wait for a page (default 30 over REST, 50 over MCP; max 60)min 0 · max 60 |
packetquery | string | full = the whole handoff packet (REST default) · summary = the essentials, fetch the rest with incidents_packet (MCP default)fullsummary |
acceptquery | string | Comma-separated extra page types this listener handles. "preview.fix" = also receive failing-preview pages (no incident: page.preview, page.fix.branch and a report token), see /docs/fix-with-claudemax length 100 |
curl "https://upbutler.com/api/v1/responders/me/pages?wait=60" \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Confirm that a page was received
POST/api/v1/responders/:id/pages/:pageId/ack
API key · writeMCP responder_ack_pageReturns 200
Stops the page from being delivered again. This is a delivery receipt, not ownership: the ack timeout keeps running until the incident is claimed with the incident token (POST /incidents/:id/claim).
| Field | Type | Description |
|---|
idrequiredpath | string | "me" with a responder key, else the responder id |
pageIdrequiredpath | string | |
curl -X POST https://upbutler.com/api/v1/responders/id_.../pages/pg_0n3q8kz0b2fd81mka5e/ack \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Incident handoff packet: everything a responder needs
GET/api/v1/incidents/:id/packet
API key · readMCP incidents_packetReturns 200
One compact document: the incident, affected monitors with per-region failing evidence and the last good check, components, recent deploys with timing (suspect = shipped within 30 minutes before), related past incidents and how they were resolved, the AI analysis, the timeline, runbooks, your guardrails and links. Secrets (monitor headers, tokens in URLs) are redacted. Start here when you are paged.
| Field | Type | Description |
|---|
idrequiredpath | string | Incident id (inc_…) |
curl https://upbutler.com/api/v1/incidents/inc_0n3q9a11v8k2h5n0qzc/packet \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Claim an incident (take ownership under a lease)
POST/api/v1/incidents/:id/claim
API key · writeMCP incidents_claimReturns 200
The first claimant owns the incident; anyone else gets 409 with who holds it. Claiming acknowledges the incident (reminders and escalation pause). The claim is a lease: renew it with POST /incidents/:id/claim/renew while you work. If it lapses, the incident is handed back and the next escalation level is paged.
| Field | Type | Description |
|---|
idrequiredpath | string | Incident id (inc_…) |
note | string | e.g. "Looking at the 14:02 deploy"max length 500 |
curl -X POST https://upbutler.com/api/v1/incidents/inc_0n3q9a11v8k2h5n0qzc/claim \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Renew your claim (heartbeat)
POST/api/v1/incidents/:id/claim/renew
API key · writeMCP incidents_claim_renewReturns 200
Extends the lease. Call it every few minutes while you work; when the lease lapses the incident goes back to the humans.
| Field | Type | Description |
|---|
idrequiredpath | string | Incident id (inc_…) |
curl -X POST https://upbutler.com/api/v1/incidents/inc_0n3q9a11v8k2h5n0qzc/claim/renew \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Add an internal timeline note
POST/api/v1/incidents/:id/notes
API key · writeMCP incidents_noteReturns 200
Log what you found or did. Shown on the incident timeline in the dashboard, attributed to you ("Claude (agent) · restarted pod"); never public.
| Field | Type | Description |
|---|
idrequiredpath | string | Incident id (inc_…) |
messagerequired | string | max length 10,000 |
action | string | Short label of the action taken, e.g. "restarted pod", "rolled back 1.4.2"max length 80 |
curl -X POST https://upbutler.com/api/v1/incidents/inc_0n3q9a11v8k2h5n0qzc/notes \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action": "rolled back 1.4.2",
"message": "Deploy 1.4.2 went out 3 minutes before the first failure. Rolled back to 1.4.1 with the rollback workflow."
}'
#Post a public update as a responder
POST/api/v1/incidents/:id/public-updates
API key · writeMCP incidents_publicUpdateReturns 200
For agent responders: follows the responder's public-update mode. direct = published to the status page and sent to subscribers; draft = saved for a human to approve, edit or reject in the dashboard (the team is notified); none = refused. Text that conflicts with the status page AI rules is always held as a draft. People and full API keys publish immediately.
| Field | Type | Description |
|---|
idrequiredpath | string | Incident id (inc_…) |
messagerequired | string | max length 10,000 |
status | string | investigatingidentifiedmonitoring |
curl -X POST https://upbutler.com/api/v1/incidents/inc_0n3q9a11v8k2h5n0qzc/public-updates \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"message": "We are looking into it."
}'
#Approve (and optionally edit) an agent's draft public update
POST/api/v1/incidents/:id/drafts/:draftId/approve
API key · writeMCP incidents_drafts_approveReturns 200
Publishes the draft to the status page, attributed to the agent and marked as approved by you. Send message to publish an edited version.
| Field | Type | Description |
|---|
idrequiredpath | string | |
draftIdrequiredpath | string | |
message | string | Edited text (default: the draft as written)max length 10,000 |
notify | boolean | Notify subscribers (default true) |
curl -X POST https://upbutler.com/api/v1/incidents/inc_0n3q9a11v8k2h5n0qzc/drafts/<draftId>/approve \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Reject an agent's draft public update
POST/api/v1/incidents/:id/drafts/:draftId/reject
API key · writeMCP incidents_drafts_rejectReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | |
draftIdrequiredpath | string | |
curl -X POST https://upbutler.com/api/v1/incidents/inc_0n3q9a11v8k2h5n0qzc/drafts/<draftId>/reject \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Verify the fix: re-check the incident's monitors from every region now
POST/api/v1/incidents/:id/verify
API key · writeMCP incidents_verifyReturns 200
Runs fresh checks of every monitor in the incident from all of its regions (waits up to about a minute for remote regions) and returns pass/fail per monitor and region. A monitor passes when the regions that answered agree it is up (same quorum as outage detection). Agent responders need a passing verify shortly before they can resolve.
| Field | Type | Description |
|---|
idrequiredpath | string | Incident id (inc_…) |
curl -X POST https://upbutler.com/api/v1/incidents/inc_0n3q9a11v8k2h5n0qzc/verify \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Hand the incident back to humans
POST/api/v1/incidents/:id/escalate
API key · writeMCP incidents_escalateReturns 200
For when you cannot fix it (or should not try). Your claim and acknowledgement are removed, your reason goes on the timeline and to the alerted channels, and the next escalation level is paged immediately. An incident token stops working after this.
| Field | Type | Description |
|---|
idrequiredpath | string | Incident id (inc_…) |
reasonrequired | string | What you found and why a human is neededmax length 1,000 |
curl -X POST https://upbutler.com/api/v1/incidents/inc_0n3q9a11v8k2h5n0qzc/escalate \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"reason": "Database is refusing connections; restarting the API did not help and I have no access to the DB host."
}'
#Briefly mute the incident's monitors
POST/api/v1/incidents/:id/mute
API key · writeMCP incidents_muteReturns 200
Silence the monitors of this incident (or some of them) while you work, e.g. during a restart. Checks keep running; no new incidents, alerts or reminders until the mute ends. Agents: at most 60 minutes. A monitor still down when the mute ends is raised then.
| Field | Type | Description |
|---|
idrequiredpath | string | Incident id (inc_…) |
minutesrequired | integer | min 1 · max 1,440 |
monitorIds | string[] | Subset of the incident's monitors (default: all of them)max 50 items |
reason | string | max length 300 |
curl -X POST https://upbutler.com/api/v1/incidents/inc_0n3q9a11v8k2h5n0qzc/mute \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"minutes": 1
}'
#Take an incident over from an agent
POST/api/v1/incidents/:id/takeover
API key · writeMCP incidents_takeoverReturns 200
Ends the agent's claim and incident token and acknowledges the incident in your name.
| Field | Type | Description |
|---|
idrequiredpath | string | Incident id (inc_…) |
curl -X POST https://upbutler.com/api/v1/incidents/inc_0n3q9a11v8k2h5n0qzc/takeover \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Ask the coding agent to fix an incident (Fix with Claude)
POST/api/v1/incidents/:id/fix
API key · writeMCP incidents_fixReturns 200
Pages the workspace's Fix with Claude responder for this incident with the evidence (what changed, suspect deploys, repro command) and an incident-only token. The agent opens a pull request and reports it, or hands back with what it found; it never pushes to the default branch. Counts as one fix attempt (the agent runs on your own Claude usage): the plan and the workspace cap attempts per day, and each responder caps automatic attempts per incident. Works on acknowledged incidents too. 409 when no responder is set up, the agent is already working, or a fix is already in review.
| Field | Type | Description |
|---|
idrequiredpath | string | Incident id (inc_…) |
responderId | string | Which fix responder (default: the one already on the incident, else the first) |
note | string | Shown on the timeline next to the requestmax length 500 |
curl -X POST https://upbutler.com/api/v1/incidents/inc_…/fix \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"note": "Checkout is down since the 14:02 deploy"
}'
#Report the pull request that fixes an incident
POST/api/v1/incidents/:id/pr
API key · writeMCP incidents_link_prReturns 200
For the fixing agent (incident token) or a person: stores the pull request on the incident and shows it on the timeline. When a deploy marker or deploy hook later carries that pull request (PR number, merge commit, or a commit message naming it), UpButler starts a deploy guard, verifies the incident's monitors when the window ends and resolves the incident with "Fixed by <agent> in PR #N, verified after deploy <sha>". The reply says whether the agent may merge the pull request itself (only pure reverts, only when the responder allows it). A PR URL in an agent's note is recognised the same way.
| Field | Type | Description |
|---|
idrequiredpath | string | Incident id (inc_…) |
urlrequired | string (url) | Pull request URL, e.g. https://github.com/acme/shop/pull/213max length 500 |
number | integer | PR number (default: read from the URL)max 1,000,000,000 |
branch | string | Head branch, e.g. upbutler/fix-inc_…max length 200 |
title | string | max length 200 |
summary | string | What was wrong and what the change does; shown on the timelinemax length 4,000 |
revert | boolean | true = the pull request is nothing but a git revert of one commit |
mergeCommit | string | SHA of the merge commit, once known; makes matching the deploy exactmax length 40 |
curl -X POST https://upbutler.com/api/v1/incidents/inc_…/pr \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://github.com/acme/shop/pull/213",
"branch": "upbutler/fix-inc_…",
"revert": true,
"summary": "Commit 4f2a9c1 changed the price rounding and /api/checkout started returning 500. This reverts it."
}'
#What changed: last good vs first bad check, suspect deploys, repro command
GET/api/v1/incidents/:id/evidence
API key · readMCP incidents_evidenceReturns 200
The evidence section of the handoff packet on its own, plus the state of the fix. Per failing monitor: the last good and the first failing check (status, latency, allow-listed headers, a scrubbed and truncated body diff), the regions that fail, and a curl that reproduces it with secret values as environment references. Deploys before the failure are ranked (a deploy between the last good and the first bad check is the prime suspect) with commit, PR, author and GitHub compare links when the repository is known.
| Field | Type | Description |
|---|
idrequiredpath | string | Incident id (inc_…) |
curl https://upbutler.com/api/v1/incidents/inc_0n3q9a11v8k2h5n0qzc/evidence \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#The agent runs behind an incident: task, last steps, spend, kill switch state
GET/api/v1/incidents/:id/runs
API key · readMCP incidents_runs_listReturns 200
For incidents on agent monitors. The same data as the `runs` section of the handoff packet, fresh.
| Field | Type | Description |
|---|
idrequiredpath | string | Incident id (inc_…) |
curl https://upbutler.com/api/v1/incidents/inc_0n3q9a11v8k2h5n0qzc/runs \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Stop the agent runs behind an incident
POST/api/v1/incidents/:id/runs/stop
API key · writeMCP incidents_runs_stopReturns 200
Sets the kill switch on runs of this incident's agent monitors: the given runIds, or every flagged run when omitted. Works with an incident token when the responder allows "stop_runs" (the incident must be claimed first). The stop goes on the incident timeline.
| Field | Type | Description |
|---|
idrequiredpath | string | Incident id (inc_…) |
action | string | stop (default) = end the run · pause = wait and keep polling · slow_down = keep going, wait delaySec between stepsstoppauseslow_down |
reason | string | Shown to the agent and on the timelinemax length 500 |
delaySec | integer | slow_down: seconds between steps (default 30)min 1 · max 3,600 |
runIds | string[] | Default: every flagged run of the incident's agent monitorsmax 100 items |
curl -X POST https://upbutler.com/api/v1/incidents/inc_0n3q9a11v8k2h5n0qzc/runs/stop \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"reason": "Looping on the same tool call and already over budget"
}'
#Alerts
#List alert channels
GET/api/v1/channels
API key · readMCP channels_listReturns 200
No parameters.
curl https://upbutler.com/api/v1/channels \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Create an alert channel
POST/api/v1/channels
API key · writeMCP channels_createReturns 201
Where your team (or your agent) gets alerted. Webhook channels receive Standard Webhooks-signed JSON (headers webhook-id, webhook-timestamp, webhook-signature); the signing secret is returned once in the response. teams posts an Adaptive Card through a Workflows webhook; pagerduty and opsgenie open an alert per incident and acknowledge / close it in step (paid plans); push notifies the browsers and phones of members who enabled it.
| Field | Type | Description |
|---|
namerequired | string | max length 80 |
typerequired | string | emailwebhookslackdiscordtelegramteamspagerdutyopsgeniepush |
emails | string (email)[] | email: recipientsmax 20 items |
url | string (url) | webhook/slack/discord: URL · teams: the webhook URL of a Workflows flowmax length 2,000 |
headers | map<string, string> | webhook: extra headers |
botToken | string | telegram: bot tokenmax length 200 |
chatId | string | telegram: chat idmax length 100 |
integrationKey | string | pagerduty: Events API v2 integration key (routing key) · opsgenie: API key of an API integration. Write-onlymin length 16 · max length 200 |
region | string | pagerduty: us (default) or eu service region · opsgenie: us, eu, or jsm for Jira Service Management Operationsuseujsm |
webhookSecret | string | null | pagerduty: signing secret of a v3 webhook subscription pointed at config.webhookUrl; acknowledge / resolve in PagerDuty then update the incident here. null removes it. Write-onlymin length 8 · max length 200 · nullable |
userIds | string[] | push: members to notify; empty = every member with push enabled on a devicemax 100 items |
threads | boolean | discord: the webhook points at a forum channel. Each incident becomes one post there and its updates and incident room notes go into that post |
events | string[] | Event types to receive (default: alerts). One of: monitor.down, monitor.up, monitor.degraded, monitor.reminder, incident.created, incident.updated, incident.resolved, maintenance.scheduled, maintenance.started, maintenance.updated, maintenance.completed, incident.acknowledged, incident.rollback, incident.upstream, upstream.incident, probe.offline, probe.online, incident.escalated, incident.unacknowledged, component.status_changed, monitor.created, monitor.deleted, monitor.schema_changed, deploy.created, deploy.guard.verdict, preview.verdict, preview.fix_requested, incident.claimed, incident.handed_back, incident.draft_created, incident.verified, incident.fix_requested, incident.fix_pr_opened, incident.fix_verified, responder.test, monitor.muted, monitor.unmuted, run.flagged, run.stop_requested, run.resumed, drill.started, drill.completed, drill.cancelled, digest.weekly, quota.warning, incident.note, incident.approval_requested, incident.approval_decided, test.ping, or "*"max 30 items |
isDefault | boolean | Attach to new monitors automatically (default true) |
enabled | boolean | |
curl -X POST https://upbutler.com/api/v1/channels \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Ops agent",
"type": "webhook",
"url": "https://agent.example.com/hooks/upbutler"
}'
#Update an alert channel
PATCH/api/v1/channels/:id
API key · writeMCP channels_updateReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | |
name | string | max length 80 |
type | string | emailwebhookslackdiscordtelegramteamspagerdutyopsgeniepush |
emails | string (email)[] | email: recipientsmax 20 items |
url | string (url) | webhook/slack/discord: URL · teams: the webhook URL of a Workflows flowmax length 2,000 |
headers | map<string, string> | webhook: extra headers |
botToken | string | telegram: bot tokenmax length 200 |
chatId | string | telegram: chat idmax length 100 |
integrationKey | string | pagerduty: Events API v2 integration key (routing key) · opsgenie: API key of an API integration. Write-onlymin length 16 · max length 200 |
region | string | pagerduty: us (default) or eu service region · opsgenie: us, eu, or jsm for Jira Service Management Operationsuseujsm |
webhookSecret | string | null | pagerduty: signing secret of a v3 webhook subscription pointed at config.webhookUrl; acknowledge / resolve in PagerDuty then update the incident here. null removes it. Write-onlymin length 8 · max length 200 · nullable |
userIds | string[] | push: members to notify; empty = every member with push enabled on a devicemax 100 items |
threads | boolean | discord: the webhook points at a forum channel. Each incident becomes one post there and its updates and incident room notes go into that post |
events | string[] | Event types to receive (default: alerts). One of: monitor.down, monitor.up, monitor.degraded, monitor.reminder, incident.created, incident.updated, incident.resolved, maintenance.scheduled, maintenance.started, maintenance.updated, maintenance.completed, incident.acknowledged, incident.rollback, incident.upstream, upstream.incident, probe.offline, probe.online, incident.escalated, incident.unacknowledged, component.status_changed, monitor.created, monitor.deleted, monitor.schema_changed, deploy.created, deploy.guard.verdict, preview.verdict, preview.fix_requested, incident.claimed, incident.handed_back, incident.draft_created, incident.verified, incident.fix_requested, incident.fix_pr_opened, incident.fix_verified, responder.test, monitor.muted, monitor.unmuted, run.flagged, run.stop_requested, run.resumed, drill.started, drill.completed, drill.cancelled, digest.weekly, quota.warning, incident.note, incident.approval_requested, incident.approval_decided, test.ping, or "*"max 30 items |
isDefault | boolean | Attach to new monitors automatically (default true) |
enabled | boolean | |
rotateSecret | boolean | |
curl -X PATCH https://upbutler.com/api/v1/channels/ch_0n3q8kz3j6d0q2b5ny8 \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Delete an alert channel
DELETE/api/v1/channels/:id
API key · writeMCP channels_deleteReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | |
curl -X DELETE https://upbutler.com/api/v1/channels/ch_0n3q8kz3j6d0q2b5ny8 \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Send a test notification
POST/api/v1/channels/:id/test
API key · writeMCP channels_testReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | |
curl -X POST https://upbutler.com/api/v1/channels/ch_0n3q8kz3j6d0q2b5ny8/test \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Public status
#Public status of a page (no auth)
GET/api/v1/public/pages/:slug
Public — no keyMCP public_statusReturns 200
Overall status, components with uptime, active incidents and maintenance. Small by default; add history=true for the 90-day daily bars (~50x larger). Safe to poll every 30s.
| Field | Type | Description |
|---|
slugrequiredpath | string | |
historyquery | boolean | string | Include the per-day uptime bars (uptimeDays of them: up to 90, fewer on plans with a shorter history window; large; default false) |
curl https://upbutler.com/api/v1/public/pages/acme
#Public incident history of a page
GET/api/v1/public/pages/:slug/incidents
Public — no keyMCP public_incidentsReturns 200
| Field | Type | Description |
|---|
slugrequiredpath | string | |
limitquery | integer | min 1 · max 100 |
beforequery | string (date-time) | pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$ |
curl https://upbutler.com/api/v1/public/pages/acme/incidents
#One public incident with its updates
GET/api/v1/public/pages/:slug/incidents/:id
Public — no keyMCP public_incidentReturns 200
| Field | Type | Description |
|---|
slugrequiredpath | string | |
idrequiredpath | string | |
curl https://upbutler.com/api/v1/public/pages/acme/incidents/inc_0n3q9a11v8k2h5n0qzc
#Subscribe to a status page (email, webhook, Slack, Discord or Telegram)
POST/api/v1/public/pages/:slug/subscribers
Public — no keyMCP public_subscribeReturns 201
Agents: subscribe with {"type":"webhook","url":"https://your-agent/hook"} to receive signed incident.*, maintenance.* and component.status_changed events and automate downtime handling. We first POST {"type":"subscription.verify","challenge":"..."} and your endpoint must echo the challenge. The response contains the signing secret (Standard Webhooks) and a manage token for unsubscribing. Optionally limit to components (ids or keys).
| Field | Type | Description |
|---|
slugrequiredpath | string | |
typerequired | string | telegram: the answer carries telegramUrl (and telegramGroupUrl), a one-time link to UpButler's bot, valid 15 minutes: open it and press Startemailwebhookslackdiscordtelegram |
email | string (email) | pattern ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$ |
url | string (url) | max length 1,000 |
components | string[] | Component ids or keys; omit for everythingmax 200 items |
agent | string | Name of the subscribing agent (shown to the page owner)max length 80 |
incident | string | Incident id: only that incident's updates, until it is resolved ("subscribe to this incident")max length 60 |
language | string | Email language (en, de, fr, es, it, pt, nl, el, pl, tr, ja); default = page language or Accept-Languagemax length 10 |
curl -X POST https://upbutler.com/api/v1/public/pages/fetchlayer/subscribers \
-H "Content-Type: application/json" \
-d '{
"type": "webhook",
"url": "https://my-agent.example.com/upbutler",
"components": [
"reddit"
],
"agent": "scraper-orchestrator"
}'
#View a subscription (requires its manage token)
GET/api/v1/public/subscribers/:id
Public — no keyMCP public_subscriber_getReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | |
tokenrequiredquery | string | |
curl "https://upbutler.com/api/v1/public/subscribers/sub_0n3q9b40t2m8w6k1c5v?token=..."
#Change which components a subscription follows (requires the manage token)
PATCH/api/v1/public/subscribers/:id
Public — no keyMCP public_subscriber_updateReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | |
tokenrequired | string | |
componentsrequired | string[] | Component ids or keys; [] = everythingmax 200 items |
curl -X PATCH https://upbutler.com/api/v1/public/subscribers/sub_0n3q9b40t2m8w6k1c5v \
-H "Content-Type: application/json" \
-d '{
"token": "...",
"components": "..."
}'
#Unsubscribe (requires the manage token)
DELETE/api/v1/public/subscribers/:id
Public — no keyMCP public_unsubscribeReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | |
tokenrequiredquery | string | |
curl -X DELETE "https://upbutler.com/api/v1/public/subscribers/sub_0n3q9b40t2m8w6k1c5v?token=..."
#Public response-time series of a component (p50/p95)
GET/api/v1/public/pages/:slug/components/:component/response-times
Public — no keyMCP public_responseTimesReturns 200
Only for components the page owner published (page settings.showResponseTimes + component showResponseTimes, monitor-backed). 24h = 30-min buckets and 7d = 3-hour buckets with p50/p95 in ms from raw checks; 30d = daily averages (p95 null). Values are averaged across the component's monitors.
| Field | Type | Description |
|---|
slugrequiredpath | string | |
componentrequiredpath | string | Component key or id |
rangequery | string | 24h (default), 7d or 30d24h7d30d |
curl "https://upbutler.com/api/v1/public/pages/fetchlayer/components/api/response-times?range=7d"
GET/api/v1/public/pages/:slug/reports/form
Public — no keyREST onlyReturns 200
No captcha: the client finds n so that sha256(challenge + ":" + n) starts with `difficulty` zero bits and sends it back with the report. A challenge works once and expires after 10 minutes. 403 when the page has reports switched off.
| Field | Type | Description |
|---|
slugrequiredpath | string | |
langquery | string | Language of the form strings; default = page language, or Accept-Language on pages set to automax length 10 |
curl https://upbutler.com/api/v1/public/pages/acme/reports/form
#Report a problem to the team behind a status page (end users)
POST/api/v1/public/pages/:slug/reports
Public — no keyREST onlyReturns 201
For the people using a service, not for monitoring: "something is broken for me". The report goes to the team and is never published. Enough distinct reporters within a few minutes make the team re-check that component from every region. Browsers must send it from the status page or an origin the page owner allowed; every request needs a solved proof-of-work challenge from GET …/reports/form. Limits: 5 reports per reporter and page per hour.
| Field | Type | Description |
|---|
slugrequiredpath | string | |
component | string | Component key or id; omit for "something else"max length 80 |
message | string | What happened, in the user's words (plain text)max length 500 |
email | string | Optional: gets one email when the related incident is resolvedmax length 254 |
language | string | max length 10 |
challenge | string | max length 200 |
solution | string | max length 20 |
website | string | Leave empty (honeypot)max length 200 |
reporter | object | Optional signed reporter id: your own user id and hex HMAC-SHA256(reporter secret, id), computed on your server. Distinct reporters are then counted by id instead of by network address |
reporter.idrequired | string | max length 128 |
reporter.signaturerequired | string | pattern ^[0-9a-fA-F]{64}$ |
curl -X POST https://upbutler.com/api/v1/public/pages/acme/reports \
-H "Content-Type: application/json" \
-d '{
"component": "checkout",
"message": "Payment fails with an error after I enter my card.",
"challenge": "<from /reports/form>",
"solution": "48213"
}'
#Delete the email address a reporter left (requires the token from their email)
DELETE/api/v1/public/reports/:id/email
Public — no keyREST onlyReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | |
tokenrequiredquery | string | |
curl -X DELETE "https://upbutler.com/api/v1/public/reports/id_.../email?token=..."
#Workspace
- GET
/workspaceCurrent workspace, plan, limits and usage - GET
/workspace/quotaEvery metered plan limit: used, limit, percent and warning threshold - PATCH
/workspaceRename the workspace - GET
/membersList workspace members and pending invites - POST
/members/invitesInvite a teammate by email - DELETE
/members/invites/:idRevoke a pending invite - DELETE
/members/:userIdRemove a member - GET
/keysList API keys - POST
/keysCreate an API key - DELETE
/keys/:idRevoke an API key - PATCH
/workspace/securityRequire two-factor authentication for every member (owners only) - GET
/auditAudit log: sign-ins, 2FA changes, keys, members, billing, deletions, domains - GET
/connectionsList connected apps (OAuth connections to the MCP server) - DELETE
/connections/:idDisconnect an app
#Current workspace, plan, limits and usage
GET/api/v1/workspace
API key · readMCP workspace_getReturns 200
Useful first call for agents: shows what the key can do and how much quota is left.
No parameters.
curl https://upbutler.com/api/v1/workspace \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Every metered plan limit: used, limit, percent and warning threshold
GET/api/v1/workspace/quota
API key · readMCP workspace_quotaReturns 200
One row per metered limit of the plan (monitors, status pages, components and email subscribers on the fullest page, members, API keys, emails, AI reports, agent runs and preview runs this month, fix attempts in the last 24 hours, …). `threshold` is 80 or 100 once that share is used; each threshold raises one `quota.warning` event and one email to owners and admins per limit and period. `warnings` lists the ones already raised.
No parameters.
curl https://upbutler.com/api/v1/workspace/quota \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Rename the workspace
PATCH/api/v1/workspace
API key · writeMCP workspace_updateReturns 200
| Field | Type | Description |
|---|
namerequired | string | max length 80 |
curl -X PATCH https://upbutler.com/api/v1/workspace \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Search API"
}'
#List workspace members and pending invites
GET/api/v1/members
API key · readMCP members_listReturns 200
No parameters.
curl https://upbutler.com/api/v1/members \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Invite a teammate by email
POST/api/v1/members/invites
API key · writeREST onlyReturns 200
| Field | Type | Description |
|---|
emailrequired | string (email) | pattern ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$ |
role | string | adminmember |
curl -X POST https://upbutler.com/api/v1/members/invites \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]"
}'
#Revoke a pending invite
DELETE/api/v1/members/invites/:id
API key · writeREST onlyReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | |
curl -X DELETE https://upbutler.com/api/v1/members/invites/id_... \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Remove a member
DELETE/api/v1/members/:userId
API key · writeREST onlyReturns 200
| Field | Type | Description |
|---|
userIdrequiredpath | string | |
curl -X DELETE https://upbutler.com/api/v1/members/usr_0n3q8jy7w2e4r6t8y0u \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#List API keys
GET/api/v1/keys
API key · readMCP keys_listReturns 200
No parameters.
curl https://upbutler.com/api/v1/keys \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Create an API key
POST/api/v1/keys
API key · writeMCP keys_createReturns 201
The secret is returned once. Give agents their own key (with agent set) so their actions are attributed in incident timelines.
| Field | Type | Description |
|---|
namerequired | string | max length 80 |
scopes | string[] | readwrite |
agent | string | Name of the agent using this key, e.g. "deploy-bot"max length 80 |
expiresInDays | integer | min 1 · max 3,650 |
curl -X POST https://upbutler.com/api/v1/keys \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Search API"
}'
#Revoke an API key
DELETE/api/v1/keys/:id
API key · writeMCP keys_revokeReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | |
curl -X DELETE https://upbutler.com/api/v1/keys/key_0n3q8jy9x1c4v7b2n6m \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Require two-factor authentication for every member (owners only)
PATCH/api/v1/workspace/security
API key · writeREST onlyReturns 200
| Field | Type | Description |
|---|
require2farequired | boolean | |
curl -X PATCH https://upbutler.com/api/v1/workspace/security \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"require2fa": true
}'
#Audit log: sign-ins, 2FA changes, keys, members, billing, deletions, domains
GET/api/v1/audit
API key · readMCP audit_listReturns 200
Newest first, kept 400 days. Filter by action (exact like "api_key.created" or a prefix like "auth" / "member."), actor id or time range; page with ?before=<next>. Owners and admins (or keys with the write scope).
| Field | Type | Description |
|---|
actionquery | string | max length 60 |
actorIdquery | string | max length 60 |
fromquery | any | |
toquery | any | |
beforequery | string | max length 60 |
limitquery | integer | min 1 · max 200 |
curl https://upbutler.com/api/v1/audit \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#List connected apps (OAuth connections to the MCP server)
GET/api/v1/connections
API key · readREST onlyReturns 200
No parameters.
curl https://upbutler.com/api/v1/connections \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Disconnect an app
DELETE/api/v1/connections/:id
API key · writeREST onlyReturns 200
Revokes the connection and every token issued for it, effective immediately. Owners and admins can disconnect any app; members only their own.
| Field | Type | Description |
|---|
idrequiredpath | string | |
curl -X DELETE https://upbutler.com/api/v1/connections/id_... \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Events
#Poll the event stream
GET/api/v1/events
API key · readMCP events_listReturns 200
Every state change in the workspace (monitor.down/up/degraded, incident.*, maintenance.*, component.status_changed …), newest first. Agents without a public webhook endpoint can poll with ?after=<last event id> to get only new events (oldest first). For push instead of polling, open GET /api/v1/stream (Server-Sent Events, same auth; resume with Last-Event-ID; ?types= filter; ?checks=1 for live check results).
| Field | Type | Description |
|---|
afterquery | string | Return events after this id, oldest first |
typesquery | string | Comma-separated event types, e.g. "monitor.down,monitor.up" |
limitquery | integer | min 1 · max 500 |
curl https://upbutler.com/api/v1/events \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Billing
#Available plans and limits
GET/api/v1/plans
Public — no keyMCP plans_listReturns 200
No parameters.
curl https://upbutler.com/api/v1/plans
#Start a checkout to upgrade the workspace
POST/api/v1/billing/checkout
API key · writeMCP billing_checkoutReturns 200
Returns a Polar checkout URL. Agents: hand this URL to your human — payment needs a person.
| Field | Type | Description |
|---|
planrequired | string | starterprobusiness |
interval | string | monthyear |
curl -X POST https://upbutler.com/api/v1/billing/checkout \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"plan": "pro",
"interval": "month"
}'
#Open the billing portal (invoices, payment method, cancel)
POST/api/v1/billing/portal
API key · writeREST onlyReturns 200
No parameters.
curl -X POST https://upbutler.com/api/v1/billing/portal \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#What a lower plan would pause, slow and hide
GET/api/v1/billing/downgrade-preview
API key · readMCP billing_downgrade_previewReturns 200
Counts what moving this workspace to a plan would change, with the rules that are applied when a trial ends or a subscription is cancelled: monitors paused and slowed, components hidden, custom domains removed, agent responders switched off, spend monitors paused. Nothing is changed and nothing is ever deleted.
| Field | Type | Description |
|---|
planquery | string | Target plan (default free)freestarterprobusiness |
curl https://upbutler.com/api/v1/billing/downgrade-preview \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Import
#Dry run: what an import would create
POST/api/v1/import/preview
API key · writeMCP import_previewReturns 200
Reads your UptimeRobot, Better Stack or Statuspage.io account and returns every item with action create | exists (already imported) | skip (with reason), plus plan-limit warnings. Nothing is written. Statuspage.io works with just a public URL.
| Field | Type | Description |
|---|
sourcerequired | string | Where to import fromuptimerobotbetterstackstatuspage |
apiKey | string | UptimeRobot read-only API key, Better Stack Uptime API token, or Statuspage.io API key. Used for this request only and never stored.min length 4 · max length 500 |
pageId | string | Statuspage.io page id (with apiKey)max length 100 |
url | string | Statuspage.io: any public status page URL (no key needed), e.g. https://www.githubstatus.commax length 500 |
monitors | boolean | Import monitors and heartbeats (default true) |
channels | boolean | Import alert contacts as alert channels (default true) |
pages | boolean | Import status pages, groups and components (default true) |
incidents | boolean | Statuspage.io: import past incidents and maintenance (default true) |
mirror | boolean | Statuspage.io: add a manifest monitor that keeps mirroring their components.json (default false) |
targetPageId | string | Import components into this existing status page instead of creating one |
exclude | string[] | Refs from the preview ("monitor:123") to leave outmax 2000 items |
curl -X POST https://upbutler.com/api/v1/import/preview \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"source": "statuspage",
"url": "https://www.githubstatus.com",
"mirror": true
}'
#Run an import (background job)
POST/api/v1/import
API key · writeMCP import_applyReturns 202
Starts the import and returns the job right away; poll import.status. Idempotent: re-running creates only what is new. Credentials are kept in memory for the job and never stored.
| Field | Type | Description |
|---|
sourcerequired | string | Where to import fromuptimerobotbetterstackstatuspage |
apiKey | string | UptimeRobot read-only API key, Better Stack Uptime API token, or Statuspage.io API key. Used for this request only and never stored.min length 4 · max length 500 |
pageId | string | Statuspage.io page id (with apiKey)max length 100 |
url | string | Statuspage.io: any public status page URL (no key needed), e.g. https://www.githubstatus.commax length 500 |
monitors | boolean | Import monitors and heartbeats (default true) |
channels | boolean | Import alert contacts as alert channels (default true) |
pages | boolean | Import status pages, groups and components (default true) |
incidents | boolean | Statuspage.io: import past incidents and maintenance (default true) |
mirror | boolean | Statuspage.io: add a manifest monitor that keeps mirroring their components.json (default false) |
targetPageId | string | Import components into this existing status page instead of creating one |
exclude | string[] | Refs from the preview ("monitor:123") to leave outmax 2000 items |
curl -X POST https://upbutler.com/api/v1/import \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"source": "uptimerobot",
"apiKey": "ur123456-..."
}'
#Progress and result of an import job
GET/api/v1/import/jobs/:id
API key · readMCP import_statusReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | Import job id (imp_...) |
curl https://upbutler.com/api/v1/import/jobs/id_... \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Recent import jobs
GET/api/v1/import/jobs
API key · readMCP import_jobsReturns 200
| Field | Type | Description |
|---|
limitquery | integer | min 1 · max 100 |
curl https://upbutler.com/api/v1/import/jobs \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#On-call
#Who is on call right now
GET/api/v1/oncall/current
API key · readMCP oncall_currentReturns 200
For every schedule (or one with scheduleId): the person on call now, until when, and whether it is an override. Agents: use this to decide whom to tell about a problem.
| Field | Type | Description |
|---|
scheduleIdquery | string | |
curl https://upbutler.com/api/v1/oncall/current \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#List on-call schedules
GET/api/v1/oncall/schedules
API key · readMCP oncall_schedules_listReturns 200
| Field | Type | Description |
|---|
daysquery | integer | Include upcoming shifts for this many daysmin 0 · max 42 |
curl https://upbutler.com/api/v1/oncall/schedules \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Get a schedule with upcoming shifts
GET/api/v1/oncall/schedules/:id
API key · readMCP oncall_schedules_getReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | |
daysquery | integer | Default 14min 1 · max 42 |
curl https://upbutler.com/api/v1/oncall/schedules/id_... \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Create a weekly on-call rotation (Business plan)
POST/api/v1/oncall/schedules
API key · writeMCP oncall_schedules_createReturns 201
| Field | Type | Description |
|---|
namerequired | string | max length 80 |
timezonerequired | string | IANA timezone, e.g. "Europe/Berlin"max length 64 |
handoffDayrequired | integer | Handoff weekday: 0 = Monday … 6 = Sundaymin 0 · max 6 |
handoffTimerequired | string | Local handoff time "HH:MM" (24h)pattern ^\d{1,2}:\d{2}$ |
participantsrequired | string[] | Ordered member user ids (or agent responder ids, agr_…); each is on call for one weekmax 50 items |
startDay | string | Local date whose rotation week the first participant takes (default: the current week)pattern ^\d{4}-\d{2}-\d{2}$ |
curl -X POST https://upbutler.com/api/v1/oncall/schedules \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Primary",
"timezone": "Europe/Berlin",
"handoffDay": 0,
"handoffTime": "09:00",
"participants": [
"usr_…",
"usr_…"
]
}'
#Update a schedule
PATCH/api/v1/oncall/schedules/:id
API key · writeMCP oncall_schedules_updateReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | |
name | string | max length 80 |
timezone | string | IANA timezone, e.g. "Europe/Berlin"max length 64 |
handoffDay | integer | Handoff weekday: 0 = Monday … 6 = Sundaymin 0 · max 6 |
handoffTime | string | Local handoff time "HH:MM" (24h)pattern ^\d{1,2}:\d{2}$ |
participants | string[] | Ordered member user ids (or agent responder ids, agr_…); each is on call for one weekmax 50 items |
startDay | string | Local date whose rotation week the first participant takes (default: the current week)pattern ^\d{4}-\d{2}-\d{2}$ |
curl -X PATCH https://upbutler.com/api/v1/oncall/schedules/id_... \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Delete a schedule
DELETE/api/v1/oncall/schedules/:id
API key · writeMCP oncall_schedules_deleteReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | |
curl -X DELETE https://upbutler.com/api/v1/oncall/schedules/id_... \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Put someone on call for a period (override)
POST/api/v1/oncall/schedules/:id/overrides
API key · writeMCP oncall_overrides_createReturns 201
Overrides win over the rotation; the most recently created one wins when they overlap.
| Field | Type | Description |
|---|
idrequiredpath | string | |
userIdrequired | string | |
startrequired | any | |
endrequired | any | |
note | string | max length 200 |
curl -X POST https://upbutler.com/api/v1/oncall/schedules/id_.../overrides \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"userId": "...",
"start": {},
"end": {}
}'
#Remove an override
DELETE/api/v1/oncall/schedules/:id/overrides/:overrideId
API key · writeMCP oncall_overrides_deleteReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | |
overrideIdrequiredpath | string | |
curl -X DELETE https://upbutler.com/api/v1/oncall/schedules/id_.../overrides/<overrideId> \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Members with their paging contact status
GET/api/v1/oncall/members
API key · readMCP oncall_membersReturns 200
No parameters.
curl https://upbutler.com/api/v1/oncall/members \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#List escalation policies
GET/api/v1/escalation-policies
API key · readMCP escalation_listReturns 200
No parameters.
curl https://upbutler.com/api/v1/escalation-policies \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Create an escalation policy (Business plan)
POST/api/v1/escalation-policies
API key · writeMCP escalation_createReturns 201
Ordered levels: level 1 is paged as soon as an incident opens; each next level after `afterMinutes` if nobody acknowledged. Applies to incidents of `monitorIds`/`pageIds`, or to everything when isDefault. Without any policy, alerts follow each monitor's channels and reminders.
| Field | Type | Description |
|---|
namerequired | string | max length 80 |
isDefault | boolean | Use for incidents no monitor/page-specific policy claims (the first policy becomes default) |
monitorIds | string[] | max 250 items |
pageIds | string[] | max 20 items |
levelsrequired | object[] | max 10 items |
levels[].afterMinutesrequired | integer | Wait after the previous level (ignored for level 1)min 0 · max 1,440 |
levels[].targetsrequired | object[] | max 20 items |
levels[].targets[].typerequired | "channel" | |
levels[].targets[].idrequired | string | Alert channel id |
repeat | integer | Repeat the whole chain this many times while unacknowledgedmin 0 · max 5 |
repeatAfterMinutes | integer | min 1 · max 1,440 |
curl -X POST https://upbutler.com/api/v1/escalation-policies \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Default",
"levels": [
{
"afterMinutes": 0,
"targets": [
{
"type": "schedule",
"id": "sch_…"
}
]
},
{
"afterMinutes": 15,
"targets": [
{
"type": "channel",
"id": "ch_…"
}
]
}
],
"repeat": 1
}'
#Update an escalation policy
PATCH/api/v1/escalation-policies/:id
API key · writeMCP escalation_updateReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | |
name | string | max length 80 |
isDefault | boolean | Use for incidents no monitor/page-specific policy claims (the first policy becomes default) |
monitorIds | string[] | max 250 items |
pageIds | string[] | max 20 items |
levels | object[] | max 10 items |
levels[].afterMinutesrequired | integer | Wait after the previous level (ignored for level 1)min 0 · max 1,440 |
levels[].targetsrequired | object[] | max 20 items |
levels[].targets[].typerequired | "channel" | |
levels[].targets[].idrequired | string | Alert channel id |
repeat | integer | Repeat the whole chain this many times while unacknowledgedmin 0 · max 5 |
repeatAfterMinutes | integer | min 1 · max 1,440 |
curl -X PATCH https://upbutler.com/api/v1/escalation-policies/id_... \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Delete an escalation policy
DELETE/api/v1/escalation-policies/:id
API key · writeMCP escalation_deleteReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | |
curl -X DELETE https://upbutler.com/api/v1/escalation-policies/id_... \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Private probes
#List private probes
GET/api/v1/probes
API key · readMCP probes_listReturns 200
Probes you run inside your own network ("private locations"), with status (online / offline / never_connected), last seen, version and checks run. Use a probe id or name in a monitor's "regions" to check internal targets.
No parameters.
curl https://upbutler.com/api/v1/probes \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Create a private probe
POST/api/v1/probes
API key · writeMCP probes_createReturns 201
Registers a probe and returns its token ONCE, with the docker command that starts it. The probe runs on your machine and makes outbound HTTPS calls only. Jobs carry what a check needs, including the secrets of the monitors assigned to this probe (headers, API keys, proxy URLs), decrypted for that job and sent over TLS.
| Field | Type | Description |
|---|
namerequired | string | Name of the location, e.g. "office-berlin" or "prod-vpc". upbutler.yaml refers to probes by this namemax length 60 · pattern ^[A-Za-z0-9][A-Za-z0-9 ._-]*$ |
curl -X POST https://upbutler.com/api/v1/probes \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "prod-vpc"
}'
#Rename a private probe
PATCH/api/v1/probes/:id
API key · writeMCP probes_updateReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | Private probe id (prv-...) |
namerequired | string | Name of the location, e.g. "office-berlin" or "prod-vpc". upbutler.yaml refers to probes by this namemax length 60 · pattern ^[A-Za-z0-9][A-Za-z0-9 ._-]*$ |
curl -X PATCH https://upbutler.com/api/v1/probes/id_... \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Search API"
}'
#Rotate a private probe token
POST/api/v1/probes/:id/rotate
API key · writeMCP probes_rotateReturns 200
Issues a new token (returned once) and revokes the old one at once: the running probe gets 401 until it is restarted with the new token, and its monitors report "no data" meanwhile.
| Field | Type | Description |
|---|
idrequiredpath | string | Private probe id (prv-...) |
curl -X POST https://upbutler.com/api/v1/probes/id_.../rotate \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Delete a private probe
DELETE/api/v1/probes/:id
API key · writeMCP probes_deleteReturns 200
Revokes the token and removes the probe. Refused (409) while monitors still list it; details.monitors names them.
| Field | Type | Description |
|---|
idrequiredpath | string | Private probe id (prv-...) |
curl -X DELETE https://upbutler.com/api/v1/probes/id_... \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Deploys
#Record a deploy
POST/api/v1/deploys
API key · writeMCP deploys_createReturns 201
Mark a release so incidents can be correlated with it (AI reports, charts, incident timelines). Minimal input {"version":"1.4.2"} applies to the whole workspace; narrow it with monitorIds, service (matches monitor tags/names) or pageId. Emits deploy.created.
| Field | Type | Description |
|---|
version | string | Release version or tag, e.g. "1.4.2"max length 100 |
commit | string | Commit SHA (shown shortened)max length 80 |
url | string (url) | Link to the release, CI run or PRmax length 2,000 |
environment | string | e.g. "production", "staging"max length 40 |
description | string | max length 2,000 |
service | string | Service name; monitors tagged or named like this are linked automaticallymax length 120 |
branch | string | Git branchmax length 200 |
pr | integer | Pull request numbermax 1,000,000,000 |
author | string | Who shipped itmax length 120 |
provider | string | Where it was deployed, e.g. "vercel", "fly"max length 40 |
repo | string | GitHub repository as owner/name; links the suspect deploy to its commit and diffpattern ^[A-Za-z0-9][A-Za-z0-9-]{0,38}\/[A-Za-z0-9._-]{1,100}$ |
providerRef | object | The provider's own project and deployment ids (deploy hooks fill this in); used by Roll back |
providerRef.projectId | string | max length 120 |
providerRef.deploymentId | string | max length 120 |
providerRef.teamId | string | max length 120 |
providerRef.rollback | boolean | |
monitorIds | string[] | Limit the deploy to these monitors (default: whole workspace)max 100 items |
monitorId | string | max length 60 |
pageId | string | Limit the deploy to one status pagemax length 60 |
pageIds | string[] | max 100 items |
at | string (date-time) | When it went out (ISO 8601, default now)pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$ |
curl -X POST https://upbutler.com/api/v1/deploys \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"version": "1.4.2",
"commit": "abc1234def",
"environment": "production",
"service": "api"
}'
#List deploys
GET/api/v1/deploys
API key · readMCP deploys_listReturns 200
Newest first. monitorId/pageId include workspace-wide deploys; incidentId returns the deploys from the hour before the incident through its end.
| Field | Type | Description |
|---|
monitorIdquery | string | |
pageIdquery | string | |
incidentIdquery | string | |
environmentquery | string | |
sincequery | string (date-time) | pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$ |
untilquery | string (date-time) | pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$ |
limitquery | integer | min 1 · max 500 |
curl https://upbutler.com/api/v1/deploys \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Delete a deploy marker
DELETE/api/v1/deploys/:id
API key · writeMCP deploys_deleteReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | |
curl -X DELETE https://upbutler.com/api/v1/deploys/id_... \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#List deploy guards
GET/api/v1/deploys/guards
API key · readMCP deploys_guards_listReturns 200
Newest first, with their verdicts. The first entry answers "did the last deploy break anything".
| Field | Type | Description |
|---|
statusquery | string | watchingregressionclearcancelled |
limitquery | integer | min 1 · max 100 |
curl https://upbutler.com/api/v1/deploys/guards \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Watch monitors after a deploy and get a regression / clear verdict
POST/api/v1/deploys/guard
API key · writeMCP deploys_guardReturns 201
Agent deploy flow: ship → guard → verdict → roll back. Watches the given monitors/components (default: the deploy's monitors, else every monitor) for `minutes` (default 10, max 120). Verdict "regression" arrives as soon as a monitor that was healthy at the start fails, "clear" when the window ends quietly. It is POSTed to callbackUrl as a signed webhook (type deploy.guard.verdict; signing secret returned once here), emitted as an event, and can be polled at GET /deploys/guards/:id. Pass `deploy` to record the deploy marker in the same call, or deployId for an existing one.
| Field | Type | Description |
|---|
deployId | string | An existing deploy marker (dep_…) |
deploy | object | Record the deploy now, e.g. {"version":"1.4.2","commit":"abc1234"} |
deploy.version | string | Release version or tag, e.g. "1.4.2"max length 100 |
deploy.commit | string | Commit SHA (shown shortened)max length 80 |
deploy.url | string (url) | Link to the release, CI run or PRmax length 2,000 |
deploy.environment | string | e.g. "production", "staging"max length 40 |
deploy.description | string | max length 2,000 |
deploy.service | string | Service name; monitors tagged or named like this are linked automaticallymax length 120 |
deploy.branch | string | Git branchmax length 200 |
deploy.pr | integer | Pull request numbermax 1,000,000,000 |
deploy.author | string | Who shipped itmax length 120 |
deploy.provider | string | Where it was deployed, e.g. "vercel", "fly"max length 40 |
deploy.repo | string | GitHub repository as owner/name; links the suspect deploy to its commit and diffpattern ^[A-Za-z0-9][A-Za-z0-9-]{0,38}\/[A-Za-z0-9._-]{1,100}$ |
deploy.providerRef | object | The provider's own project and deployment ids (deploy hooks fill this in); used by Roll back |
deploy.providerRef.projectId | string | max length 120 |
deploy.providerRef.deploymentId | string | max length 120 |
deploy.providerRef.teamId | string | max length 120 |
deploy.providerRef.rollback | boolean | |
deploy.monitorIds | string[] | Limit the deploy to these monitors (default: whole workspace)max 100 items |
deploy.monitorId | string | max length 60 |
deploy.pageId | string | Limit the deploy to one status pagemax length 60 |
deploy.pageIds | string[] | max 100 items |
deploy.at | string (date-time) | When it went out (ISO 8601, default now)pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$ |
monitorIds | string[] | max 100 items |
componentIds | string[] | Watch the monitors behind these componentsmax 100 items |
minutes | integer | min 1 · max 120 |
callbackUrl | string (url) | Receives the signed verdictmax length 2,000 |
curl -X POST https://upbutler.com/api/v1/deploys/guard \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"deploy": {
"version": "1.4.2",
"commit": "abc1234def",
"service": "api"
},
"minutes": 10,
"callbackUrl": "https://ci.example.com/hooks/upbutler"
}'
#Get a deploy guard and its verdict
GET/api/v1/deploys/guards/:id
API key · readMCP deploys_guards_getReturns 200
status: watching | regression | clear | cancelled. Poll this when you have no callback URL.
| Field | Type | Description |
|---|
idrequiredpath | string | |
curl https://upbutler.com/api/v1/deploys/guards/id_... \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Stop a deploy guard
DELETE/api/v1/deploys/guards/:id
API key · writeMCP deploys_guards_cancelReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | |
curl -X DELETE https://upbutler.com/api/v1/deploys/guards/id_... \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Deploy hooks
#List deploy hooks, with the last delivery and the last guard verdict
GET/api/v1/deploy-hooks
API key · readMCP deploy_hooks_listReturns 200
Deploy hooks are the URLs a hosting provider (Vercel, Railway, Netlify, Cloudflare, GitHub, or any script) posts deploys to; each production deploy becomes a deploy marker and starts a deploy guard automatically. Use this to see whether deploys are reported without your help (then do not call deploys_create yourself), when the last one arrived and what the last guard verdict was. An empty list means nothing reports deploys: record them with deploys_guard, or create a hook.
No parameters.
curl https://upbutler.com/api/v1/deploy-hooks \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Create a deploy hook URL
POST/api/v1/deploy-hooks
API key · writeMCP deploy_hooks_createReturns 201
Returns `url` (https://upbutler.com/hooks/deploy/<token>) to paste into the hosting provider's webhook settings. One hook accepts every provider and project. The full URL is returned only here; later reads show a hint. Store it in the hosting provider now.
| Field | Type | Description |
|---|
name | string | Label, e.g. "Vercel production"max length 80 |
service | string | Per-service hook: treat every delivery as a deploy of this project, whatever the payload namesmax length 120 |
productionEnvironments | string[] | Environment names that count as production when the provider doesn't say (default production, prod, live, main)max 10 items |
includePreviews | boolean | Also mark and guard preview / staging deploys (default false) |
guard | object | Deploy guard started on each production deploy (default on, 10 minutes) |
guard.enabled | boolean | |
guard.minutes | integer | min 1 · max 120 |
secrets | map<string, string | null> | Signing secret per provider (vercel, github, netlify, cloudflare, railway, coolify, generic). With one set, deliveries from that provider must be signed; null removes it. Write-only. |
curl -X POST https://upbutler.com/api/v1/deploy-hooks \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Production deploys"
}'
#Recent deploy hook deliveries
GET/api/v1/deploy-hooks/deliveries
API key · readMCP deploy_hooks_deliveriesReturns 200
What arrived on the deploy hooks, newest first: accepted (marker + guard), preview (a preview deploy whose checks were queued; previewRunId names the run), ignored (still building, failed build, duplicate, a preview that could not be checked) or rejected (bad signature, unreadable body), with the reason. Kept for 30 days.
| Field | Type | Description |
|---|
hookIdquery | string | |
outcomequery | string | acceptedignoredrejectedpreview |
limitquery | integer | min 1 · max 200 |
curl https://upbutler.com/api/v1/deploy-hooks/deliveries \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Get a deploy hook
GET/api/v1/deploy-hooks/:id
API key · readMCP deploy_hooks_getReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | |
curl https://upbutler.com/api/v1/deploy-hooks/id_... \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Update a deploy hook
PATCH/api/v1/deploy-hooks/:id
API key · writeMCP deploy_hooks_updateReturns 200
Rename it, change the guard window, include previews, pin it to one service, or set a signing secret per provider (vercel, railway, netlify, cloudflare, github, coolify, generic; null removes one). Once a provider has a secret, its deliveries must be signed.
| Field | Type | Description |
|---|
idrequiredpath | string | |
name | string | Label, e.g. "Vercel production"max length 80 |
service | string | null | max length 120 · nullable |
productionEnvironments | string[] | Environment names that count as production when the provider doesn't say (default production, prod, live, main)max 10 items |
includePreviews | boolean | Also mark and guard preview / staging deploys (default false) |
guard | object | Deploy guard started on each production deploy (default on, 10 minutes) |
guard.enabled | boolean | |
guard.minutes | integer | min 1 · max 120 |
secrets | map<string, string | null> | Signing secret per provider (vercel, github, netlify, cloudflare, railway, coolify, generic). With one set, deliveries from that provider must be signed; null removes it. Write-only. |
curl -X PATCH https://upbutler.com/api/v1/deploy-hooks/dhk_… \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"guard": {
"minutes": 15
},
"secrets": {
"github": "the-secret-you-typed-into-github"
}
}'
#Rotate a deploy hook URL
POST/api/v1/deploy-hooks/:id/rotate
API key · writeMCP deploy_hooks_rotateReturns 200
Issues a new token and retires the old URL immediately. The full URL is returned only here; later reads show a hint. Store it in the hosting provider now.
| Field | Type | Description |
|---|
idrequiredpath | string | |
curl -X POST https://upbutler.com/api/v1/deploy-hooks/id_.../rotate \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Delete a deploy hook
DELETE/api/v1/deploy-hooks/:id
API key · writeMCP deploy_hooks_deleteReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | |
curl -X DELETE https://upbutler.com/api/v1/deploy-hooks/id_... \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#List project → monitor mappings
GET/api/v1/deploy-mappings
API key · readMCP deploy_mappings_listReturns 200
Which monitors a deploy of each project is guarded against. Without a mapping a deploy watches the monitors tagged or named like the project, else the http monitors on the deploy's domain, else the "*" default mapping, else every monitor.
No parameters.
curl https://upbutler.com/api/v1/deploy-mappings \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Preview which monitors a deploy would be guarded against
GET/api/v1/deploy-mappings/resolve
API key · readMCP deploy_mappings_resolveReturns 200
Dry run of the mapping for a project name and/or the URL it is served from. source says how they were chosen: mapping, tag, domain, default ("*" mapping) or workspace (every monitor).
| Field | Type | Description |
|---|
projectquery | string | max length 120 |
urlquery | string | A public URL of the deployed site, to match http monitors by domainmax length 2,000 |
curl https://upbutler.com/api/v1/deploy-mappings/resolve \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Set the monitors a project's deploys are guarded against
PUT/api/v1/deploy-mappings/:project
API key · writeMCP deploy_mappings_putReturns 200
Replaces the mapping for one project / service name (as the provider sends it; case-insensitive). Give monitorIds, componentIds and/or tags. Project "*" sets the workspace default. guard: false keeps the marker and skips the guard.
| Field | Type | Description |
|---|
projectrequiredpath | string | Project / service / site / repository name as the provider sends it (case-insensitive). "*" = the workspace defaultmax length 120 |
monitorIds | string[] | Monitors to watch after a deploy of this projectmax 200 items |
componentIds | string[] | Status page components; their monitors are watchedmax 100 items |
tags | string[] | Watch every monitor carrying one of these tagsmax 20 items |
guard | boolean | false = record the deploy marker but start no guard |
minutes | integer | Guard window for this projectmin 1 · max 120 |
curl -X PUT https://upbutler.com/api/v1/deploy-mappings/acme-web \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"tags": [
"web"
],
"minutes": 15
}'
#Remove a project mapping
DELETE/api/v1/deploy-mappings/:project
API key · writeMCP deploy_mappings_deleteReturns 200
| Field | Type | Description |
|---|
projectrequiredpath | string | |
curl -X DELETE https://upbutler.com/api/v1/deploy-mappings/<project> \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Preview checks
#Get the preview check settings
GET/api/v1/previews/settings
API key · readMCP previews_settings_getReturns 200
Whether preview deploys are checked, with which monitors, which preview hosts are trusted, whether stored request headers go to previews, and whether a GitHub commit status is posted. Secrets are never returned. usage is this month's preview runs against the plan allowance.
No parameters.
curl https://upbutler.com/api/v1/previews/settings \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Change the preview check settings
PATCH/api/v1/previews/settings
API key · writeMCP previews_settings_updateReturns 200
Only the fields sent are changed. allowedHosts adds preview hosts beyond the provider pattern bound to the project (a wildcard must pin your own name: "acme-*.vercel.app", never "*.vercel.app"). sendHeaders: true sends the monitors' stored request headers to previews; leave it off unless your previews are private, since a preview runs unreviewed pull request code. github.token is a fine-grained token with "Commit statuses: Read and write"; vercelBypassSecret is Vercel's Protection Bypass for Automation secret. Both are stored encrypted and never returned.
| Field | Type | Description |
|---|
enabled | boolean | Run checks against preview deploys reported by a deploy hook (default true) |
monitorIds | string[] | Only run these monitors. Empty = automatic: the HTTP monitors mapped to the deployed project on its production domainmax 200 items |
exclude | string[] | Monitors never run against a preview (the monitor tag "no-preview" does the same)max 200 items |
sendHeaders | boolean | Send the monitors' stored request headers (API keys, cookies) to previews. Default false: a preview runs unreviewed pull request code |
allowedHosts | string[] | Extra preview hosts to trust, besides the provider pattern bound to the project: "*.preview.acme.dev", "acme-*.vercel.app"max 30 items |
urlTemplate | string | null | Where a preview lives when the provider payload does not say (Railway, Workers Builds, custom domains): "https://pr-{pr}.preview.acme.dev". Placeholders: {pr} {branch} {commit} {commit7} {project} {deploymentId} {deploymentId8}. null removes itmax length 300 · nullable |
vercelBypassSecret | string | null | Vercel "Protection Bypass for Automation" secret, sent as x-vercel-protection-bypass to Vercel previews only. Stored encrypted, never returned. null removes itmin length 8 · max length 200 · nullable |
github | object | Report the verdict as a GitHub commit status on the pull request |
github.token | string | null | Fine-grained GitHub token with "Commit statuses: Read and write" on the repository. Stored encrypted, never returned. null disconnectsmin length 20 · max length 400 · nullable |
github.context | string | Name of the commit status (default "UpButler / preview")max length 100 |
curl -X PATCH https://upbutler.com/api/v1/previews/settings \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"allowedHosts": [
"pr-*.preview.acme.dev"
],
"exclude": [
"mon_…"
]
}'
#List preview check runs
GET/api/v1/previews
API key · readMCP previews_listReturns 200
Newest first. Filter by pull request, commit (a prefix is enough), branch, project or state (pending, pass, fail, error). Kept for 90 days.
| Field | Type | Description |
|---|
prquery | integer | |
commitquery | string | pattern ^[0-9a-fA-F]{7,64}$ |
branchquery | string | max length 200 |
projectquery | string | max length 120 |
statequery | string | pendingpassfailerror |
limitquery | integer | min 1 · max 200 |
curl https://upbutler.com/api/v1/previews \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Check a preview deployment now
POST/api/v1/previews
API key · writeMCP previews_runReturns 200
Runs the project's HTTP monitors once against the given preview URL (origin swapped, path, query and assertions kept) and returns the verdict: state pass, fail or error, with each check diffed against its latest production result. Use it from CI or when no deploy hook reports previews; with a hook connected the run starts by itself and previews_get is enough. Monitor state, incidents and alerts are never touched. Counts against the plan's preview runs per month.
| Field | Type | Description |
|---|
urlrequired | string (url) | The preview deployment to check, e.g. https://acme-web-git-fix-acme.vercel.app. Its host must match the provider pattern for the project or the allowed preview hostsmax length 2,000 |
project | string | Project / service name as in the deploy mappings; picks the monitors and binds the hostmax length 120 |
commit | string | Commit SHA (the full 40 characters to get a GitHub commit status)max length 80 |
branch | string | max length 200 |
pr | integer | Pull request numbermax 1,000,000,000 |
repo | string | GitHub repository as owner/name (default: the repository linked to the project)pattern ^[A-Za-z0-9][A-Za-z0-9-]{0,38}\/[A-Za-z0-9._-]{1,100}$ |
wait | boolean | string | Wait for the verdict (default true; false returns the queued run at once) |
curl -X POST https://upbutler.com/api/v1/previews \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://acme-web-git-fix-rounding-acme.vercel.app",
"project": "acme-web",
"pr": 212,
"commit": "abc1234def5678901234567890abcdef12345678"
}'
#Is my pull request's preview green? The verdict of a preview check run
GET/api/v1/previews/:id
API key · readMCP previews_getReturns 200
Pass a run id, or id "latest" with pr, commit or branch to get the newest run for it. state is pending (ask again in ~20 s), pass, fail (do not merge: run.checks names what broke, with the production result next to it), error (the preview could not be tested, e.g. deployment protection) or none (found: false; summary says why no run exists: no deploy hook, the preview is not deployed yet, or the hook refused its URL). After `gh pr create` or a push to a branch, poll this until state is not pending.
| Field | Type | Description |
|---|
idrequiredpath | string | A run id (pvr_…) or "latest"max length 60 |
prquery | integer | Pull request number (with id "latest") |
commitquery | string | Commit SHA or a prefix of it (with id "latest")pattern ^[0-9a-fA-F]{7,64}$ |
branchquery | string | Branch name (with id "latest")max length 200 |
projectquery | string | max length 120 |
curl "https://upbutler.com/api/v1/previews/latest?pr=212" \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#The checks of one preview run
GET/api/v1/previews/:id/checks
API key · readREST onlyReturns 200
Every check with its preview result, the monitor's latest production result and the diff between them (status, latency, failed assertions).
| Field | Type | Description |
|---|
idrequiredpath | string | max length 60 |
curl https://upbutler.com/api/v1/previews/id_.../checks \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Ask the Fix with Claude responder to repair a failing preview
POST/api/v1/previews/:id/fix
API key · writeMCP previews_fixReturns 200
For a run whose state is fail: pages the Fix with Claude responder with the failing checks and their production diff, and asks it to push ONE fix commit to that pull request's own head branch (never the default branch, never a fork, never a new pull request). The push starts a new preview deploy, which is checked again. Counts as one fix attempt against the daily limit. This happens by itself for pull requests a Fix with Claude responder opened, and for every pull request when the workspace turned on fixFailingPreviews (PATCH /fix); a request made here is not bound by the automatic attempts per pull request.
| Field | Type | Description |
|---|
idrequiredpath | string | A failing preview run (pvr_…)max length 60 |
responderId | string | Which Fix with Claude responder (default: the one that opened the pull request, else the first)max length 120 |
curl -X POST https://upbutler.com/api/v1/previews/pvr_abc/fix \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#The coding agent reports what it did about a failing preview
POST/api/v1/previews/:id/fix-report
Public — no keyREST onlyReturns 200
Called by the Fix with Claude workflow, the listener or a routine with the token from the preview.fix page (valid for that one run, two hours). No API key: the token in the body is the credential. outcome: started | pushed (with the commit) | not_confident | failed.
| Field | Type | Description |
|---|
idrequiredpath | string | max length 60 |
tokenrequired | string | min length 20 · max length 600 |
outcomerequired | string | startedpushednot_confidentfailed |
commit | string | The commit pushed to the pull request branch (with outcome "pushed")pattern ^[0-9a-fA-F]{7,64}$ |
summary | string | Cause and fix, or what was ruled out. No secretsmax length 4,000 |
curl -X POST https://upbutler.com/api/v1/previews/id_.../fix-report \
-H "Content-Type: application/json" \
-d '{
"token": "...",
"outcome": "started"
}'
#Digest
#Weekly digest settings
GET/api/v1/digest/settings
API key · readMCP digest_settingsReturns 200
Workspace timezone, who receives the Monday 08:00 email, when the next one goes out and the last runs. Webhook channels subscribed to "digest.weekly" get the full JSON.
No parameters.
curl https://upbutler.com/api/v1/digest/settings \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Change the workspace timezone or your weekly digest opt-in
PATCH/api/v1/digest/settings
API key · writeMCP digest_settings_updateReturns 200
subscribed applies to the signed-in member (owners are subscribed by default). timezone (IANA, e.g. "Europe/Berlin") needs owner/admin and also sets when Monday 08:00 is.
| Field | Type | Description |
|---|
subscribed | boolean | |
timezone | string | max length 60 |
curl -X PATCH https://upbutler.com/api/v1/digest/settings \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Build the weekly digest on demand
POST/api/v1/digest/preview
API key · readMCP digest_previewReturns 200
Returns the digest JSON (same shape as the digest.weekly event) and, with format=html, the rendered email. period=last_week is exactly what Monday's email covers; last_7_days is rolling. ai=true writes the "what to look at" section with AI (uses one AI report from the monthly quota); otherwise a rule-based version is returned.
| Field | Type | Description |
|---|
period | string | last_weeklast_7_days |
ai | boolean | |
format | string | jsonhtml |
curl -X POST https://upbutler.com/api/v1/digest/preview \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#What UpButler did: deploys guarded, regressions caught, incidents agents handled
GET/api/v1/digest/value
API key · readMCP digest_valueReturns 200
The value section of the weekly digest on its own: deploys shipped and how many were guarded, regressions caught after a deploy and how fast, incidents agent responders took, fixes by pull request, rollbacks, agent runs stopped, monitors added, spend watched. Counted from records; sections with nothing in them are absent. period=last_7_days (default) is rolling, last_week is what Monday's email covers, trial is the reverse trial so far.
| Field | Type | Description |
|---|
periodquery | string | last_7_dayslast_weektrial |
curl https://upbutler.com/api/v1/digest/value \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Agent responders
#List agent responders
GET/api/v1/responders
API key · readMCP responders_listReturns 200
AI agents that can be on call. Add one to an escalation policy level (target type "agent") or an on-call rotation to have it paged. Also returns the delivery presets and body template variables.
No parameters.
curl https://upbutler.com/api/v1/responders \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Get an agent responder
GET/api/v1/responders/:id
API key · readMCP responders_getReturns 200
With a responder key, use id "me" to read your own settings and guardrails.
| Field | Type | Description |
|---|
idrequiredpath | string | Responder id (agr_…), or "me" with a responder key |
curl https://upbutler.com/api/v1/responders/id_... \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Create an agent responder
POST/api/v1/responders
API key · writeMCP responders_createReturns 201
Registers an AI agent that can be paged. When escalation reaches it, UpButler POSTs a signed page to delivery.url with the incident handoff packet and a 2-hour bearer token that only works on that incident. The Standard Webhooks signing secret is returned once as signingSecret.
| Field | Type | Description |
|---|
namerequired | string | Shown on incident timelines, e.g. "Claude"max length 80 |
description | string | max length 500 |
enabled | boolean | |
deliveryrequired | object | |
delivery.preset | string | Push: webhook = full signed payload · github_actions = repository_dispatch · claude_code = Claude Code routine API trigger · custom = your bodyTemplate. Pull: pull = no endpoint, the agent waits for pages with its responder key (long-poll, SSE, MCP, SDK or CLI)webhookgithub_actionsclaude_codecustompull |
delivery.url | string (url) | Where the page is POSTed (push presets; not used for pull)max length 2,000 |
delivery.headers | map<string, string | null> | Extra request headers, e.g. {"authorization":"Bearer …"}. Stored encrypted; never returned |
delivery.bodyTemplate | string | null | JSON body template with {{placeholders}} (required for preset custom). Variables: prompt, token, token_expires_at, incident.id, incident.title, incident.status, incident.impact, incident.url, responder.name, api.base, api.packet, api.mcp, payload, packetmax length 20,000 · nullable |
ackTimeoutMinutes | integer | No claim within this time → the next escalation level is paged (default 5)min 1 · max 120 |
maxConcurrentIncidents | integer | Skipped when already working on this many incidents (default 3)min 1 · max 50 |
allowedActions | string[] | What the incident token may do besides reading the packet and claiming (default: everything except "rollback", which changes production and must be listed explicitly)notepublic_updateverifyresolveescalatemutestop_runsrollback |
publicUpdates | string | direct = publishes to the status page · draft = a human approves first (default) · nonedirectdraftnone |
verifyWindowMinutes | integer | Resolving needs a passing verify at most this old (default 10)min 1 · max 120 |
leaseMinutes | integer | Claim lease; the agent renews it while working (default 15)min 2 · max 120 |
curl -X POST https://upbutler.com/api/v1/responders \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Claude",
"delivery": {
"preset": "claude_code",
"url": "https://api.anthropic.com/v1/claude_code/routines/trig_…/fire",
"headers": {
"authorization": "Bearer sk-ant-oat01-…"
}
},
"ackTimeoutMinutes": 5,
"publicUpdates": "draft"
}'
#Update an agent responder
PATCH/api/v1/responders/:id
API key · writeMCP responders_updateReturns 200
delivery.headers replaces all headers (send the masked value back to keep one). rotateSecret=true returns a new signingSecret once. Pull responders: rotateKey=true returns a new responderKey once and the old key stops working; switching to preset "pull" issues the first key, switching away revokes it.
| Field | Type | Description |
|---|
idrequiredpath | string | |
name | string | Shown on incident timelines, e.g. "Claude"max length 80 |
description | string | max length 500 |
enabled | boolean | |
ackTimeoutMinutes | integer | No claim within this time → the next escalation level is paged (default 5)min 1 · max 120 |
maxConcurrentIncidents | integer | Skipped when already working on this many incidents (default 3)min 1 · max 50 |
allowedActions | string[] | What the incident token may do besides reading the packet and claiming (default: everything except "rollback", which changes production and must be listed explicitly)notepublic_updateverifyresolveescalatemutestop_runsrollback |
publicUpdates | string | direct = publishes to the status page · draft = a human approves first (default) · nonedirectdraftnone |
verifyWindowMinutes | integer | Resolving needs a passing verify at most this old (default 10)min 1 · max 120 |
leaseMinutes | integer | Claim lease; the agent renews it while working (default 15)min 2 · max 120 |
delivery | object | |
delivery.preset | string | Push: webhook = full signed payload · github_actions = repository_dispatch · claude_code = Claude Code routine API trigger · custom = your bodyTemplate. Pull: pull = no endpoint, the agent waits for pages with its responder key (long-poll, SSE, MCP, SDK or CLI)webhookgithub_actionsclaude_codecustompull |
delivery.url | string (url) | Where the page is POSTed (push presets; not used for pull)max length 2,000 |
delivery.headers | map<string, string | null> | Extra request headers, e.g. {"authorization":"Bearer …"}. Stored encrypted; never returned |
delivery.bodyTemplate | string | null | JSON body template with {{placeholders}} (required for preset custom). Variables: prompt, token, token_expires_at, incident.id, incident.title, incident.status, incident.impact, incident.url, responder.name, api.base, api.packet, api.mcp, payload, packetmax length 20,000 · nullable |
rotateSecret | boolean | |
rotateKey | boolean | |
curl -X PATCH https://upbutler.com/api/v1/responders/id_... \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Delete an agent responder
DELETE/api/v1/responders/:id
API key · writeMCP responders_deleteReturns 200
Its incident tokens stop working immediately. Remove it from escalation policies and schedules first.
| Field | Type | Description |
|---|
idrequiredpath | string | |
curl -X DELETE https://upbutler.com/api/v1/responders/id_... \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Send a test page
POST/api/v1/responders/:id/test
API key · writeMCP responders_testReturns 200
Sends a test page (type "responder.test", example packet, no token) through the same delivery path as a real page. Push responders: returns the HTTP outcome. Pull responders: the page is queued and the listener receives it on its next wait; `listening` tells whether one is connected.
| Field | Type | Description |
|---|
idrequiredpath | string | |
curl -X POST https://upbutler.com/api/v1/responders/id_.../test \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Runbooks
#List runbooks
GET/api/v1/runbooks
API key · readMCP runbooks_listReturns 200
No parameters.
curl https://upbutler.com/api/v1/runbooks \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Get the runbook of a monitor, a component or the workspace
GET/api/v1/runbooks/:target
API key · readMCP runbooks_getReturns 200
| Field | Type | Description |
|---|
targetrequiredpath | string | "default" (workspace), a monitor id (mon_…) or a component id (cmp_…) |
curl https://upbutler.com/api/v1/runbooks/<target> \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Write a runbook
PUT/api/v1/runbooks/:target
API key · writeMCP runbooks_setReturns 200
Markdown instructions for whoever responds: what to check, how to restart, when to roll back, when to give up and escalate. Included in the incident handoff packet of every incident on that monitor/component; the "default" runbook is included in all of them.
| Field | Type | Description |
|---|
targetrequiredpath | string | "default", mon_… or cmp_… |
markdownrequired | string | max length 20,000 |
title | string | max length 120 |
curl -X PUT https://upbutler.com/api/v1/runbooks/<target> \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"markdown": "## API down\n1. Check the last deploy (packet.deploys). If one shipped <30 min before: roll back with `gh workflow run rollback.yml`.\n2. Otherwise restart: `kubectl rollout restart deploy/api`.\n3. Verify. Still failing after 10 minutes → escalate."
}'
#Delete a runbook
DELETE/api/v1/runbooks/:target
API key · writeMCP runbooks_deleteReturns 200
| Field | Type | Description |
|---|
targetrequiredpath | string | |
curl -X DELETE https://upbutler.com/api/v1/runbooks/<target> \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Fix with Claude
#Fix with Claude: responders, linked repositories and attempt limits
GET/api/v1/fix
API key · readMCP fix_getReturns 200
No parameters.
curl https://upbutler.com/api/v1/fix \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Set the workspace limits for Fix with Claude
PATCH/api/v1/fix
API key · writeMCP fix_updateReturns 200
The spend guard for your own Claude usage: at most this many fix attempts are started per 24 hours across the workspace (default 5). The plan sets the ceiling: Free 3, Starter 10, Pro 50, Business unlimited. null restores the default. fixFailingPreviews (default false): when a preview check run fails on ANY pull request, page the Fix with Claude responder to push a fix commit to that pull request's branch (never the default branch). Pull requests the responder opened itself are handed back to it regardless of this switch.
| Field | Type | Description |
|---|
maxAttemptsPerDay | integer | null | min 0 · max 1,000,000 · nullable |
fixFailingPreviews | boolean | |
curl -X PATCH https://upbutler.com/api/v1/fix \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Link a project to its GitHub repository
PUT/api/v1/fix/repos
API key · writeMCP fix_repos_setReturns 200
Tells UpButler which repository is behind a project, so evidence links to commits and diffs and the fixing agent knows where to open the pull request. `project` is the project id of an upbutler.yaml or a hosting project name; omit it for the workspace default. Also set by `repo:` in upbutler.yaml, by `upbutler init` (from the git remote) and learned from deploy hook payloads that name the repository. No GitHub App is involved.
| Field | Type | Description |
|---|
project | string | Project (default "*": the whole workspace)max length 120 |
reporequired | string | GitHub repository: owner/name or its github.com URLmin length 3 · max length 200 |
defaultBranch | string | Default branch pull requests are opened against (default main)pattern ^[A-Za-z0-9._/-]{1,200}$ |
curl -X PUT https://upbutler.com/api/v1/fix/repos \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"repo": "acme/shop",
"defaultBranch": "main"
}'
#Remove a repository link
DELETE/api/v1/fix/repos/:project
API key · writeMCP fix_repos_deleteReturns 200
| Field | Type | Description |
|---|
projectrequiredpath | string | Project name, or "*" (URL-encoded %2A) for the default |
curl -X DELETE https://upbutler.com/api/v1/fix/repos/<project> \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Preview the files and commands of a Fix with Claude delivery
GET/api/v1/fix/recipe
API key · readMCP fix_recipeReturns 200
Returns what the customer adds on their side without creating anything: github_actions = the workflow file `.github/workflows/upbutler-fix.yml`; local = the listener command; routine = the instructions to paste into a Claude Code routine.
| Field | Type | Description |
|---|
deliveryrequiredquery | string | github_actionslocalroutine |
repoquery | string | GitHub repository: owner/name or its github.com URLmin length 3 · max length 200 |
claudeAuthquery | string | GitHub Actions: Claude API key (default) or a Claude subscription token from `claude setup-token`api_keyoauth |
githubAuthquery | string | GitHub Actions: the workflow's own GITHUB_TOKEN (default) or the Claude GitHub Apptokenapp |
curl "https://upbutler.com/api/v1/fix/recipe?delivery=github_actions" \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Turn on Fix with Claude: create the responder and get the files to add
POST/api/v1/fix/setup
API key · writeMCP fix_setupReturns 201
One call per delivery. github_actions: needs `repo` and a fine-grained GitHub token with "Contents: Read and write" on that repository (stored encrypted, used only to send the repository_dispatch event); returns `.github/workflows/upbutler-fix.yml` to commit. local: creates a pull responder and returns its responder key once; run `npx upbutler responder listen --fix` in the repository on an always-on machine. routine: needs the API trigger URL and token of a Claude Code routine; returns the instructions to paste into the routine. The responder gets a narrow set of actions (notes, verify, hand back; it cannot resolve or post public updates) and, unless autoPage is false and when no default escalation policy exists yet, is paged first for every incident with your default alert channels as the fallback. Pass responderId to change an existing fix responder.
| Field | Type | Description |
|---|
deliveryrequired | string | github_actionslocalroutine |
responderId | string | Reconfigure this responder instead of creating one |
name | string | Shown on timelines (default "Claude")max length 80 |
repo | string | GitHub repository: owner/name or its github.com URLmin length 3 · max length 200 |
defaultBranch | string | Default branch pull requests are opened against (default main)pattern ^[A-Za-z0-9._/-]{1,200}$ |
project | string | Link the repo to this project instead of the whole workspacemax length 120 |
githubToken | string | github_actions: fine-grained token that may send repository_dispatch to the repo. Write-onlymin length 20 · max length 400 |
routineUrl | string (url) | routine: https://api.anthropic.com/v1/claude_code/routines/trig_…/firemax length 300 |
routineToken | string | routine: the trigger token (sk-ant-oat01-…). Write-onlymin length 20 · max length 400 |
claudeAuth | string | api_keyoauth |
githubAuth | string | tokenapp |
autoMergeReverts | boolean | Allow the agent to merge its own pull request when it is a pure revert (default false: people merge) |
maxAttemptsPerIncident | integer | Automatic fix attempts per incident (default 1)min 1 · max 5 |
autoPage | boolean | Create a default escalation policy "agent first, then your alert channels" when the workspace has none (default true) |
curl -X POST https://upbutler.com/api/v1/fix/setup \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"delivery": "github_actions",
"repo": "acme/shop",
"githubToken": "github_pat_…"
}'
#Change the fix policy of a responder
PATCH/api/v1/fix/responders/:id
API key · writeMCP fix_policyReturns 200
enabled: false turns the responder back into an ordinary agent responder (pages carry no fix instructions). autoMergeReverts: the agent may merge its own pull request when it is a pure revert; UpButler never merges anything itself, the merge is done by the agent or the workflow with your GitHub token. maxAttemptsPerIncident caps automatic attempts (escalation and re-pages after a failed fix).
| Field | Type | Description |
|---|
idrequiredpath | string | |
enabled | boolean | |
autoMergeReverts | boolean | |
maxAttemptsPerIncident | integer | min 1 · max 5 |
curl -X PATCH https://upbutler.com/api/v1/fix/responders/id_... \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Test Fix with Claude end to end with a synthetic incident
POST/api/v1/fix/test
API key · writeMCP fix_testReturns 200
Creates a private synthetic incident ("nothing is down"), pages the responder for it through the real delivery path with a real incident token, and waits for the other side to answer with a note (action "fix-test"). The workflow, the listener and the routine instructions all answer test pages without changing any code. Nobody is alerted and no fix attempt is counted. Poll GET /fix: the responder's fix.lastTest shows the result; the synthetic incident is removed when the test ends (20 minutes at most).
| Field | Type | Description |
|---|
responderIdrequired | string | |
curl -X POST https://upbutler.com/api/v1/fix/test \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"responderId": "..."
}'
#Agent Runs
#Start an agent run (no API key needed with the monitor's ar_ token)
POST/api/v1/runs
Public — no keyMCP runs_startReturns 201
Tell UpButler an agent started working. Returns the run id and token URLs for progress and end. Authenticate with the agent monitor's ingest token (body "token" or "Authorization: Bearer ar_…") or with an API key; with an API key the monitor is found by name and created on first use. Kill-switch contract: every response has `continue`. When it is false, stop working and call POST /runs/{id}/end (action "pause": wait retryAfterSec and ping again instead). With action "slow_down", wait retryAfterSec between steps.
| Field | Type | Description |
|---|
token | string | Ingest token of the agent monitor (ar_…). Or send it as "Authorization: Bearer ar_…". Not needed with an API keymax length 100 |
monitor | string | With an API key: the agent monitor (id or name). Created when it does not exist. Default: the agent namemax length 120 |
agent | string | Which agent this is, e.g. "triage-bot". Runs of a fleet share one monitor and differ by agentmax length 80 |
runId | string | Your own id for this run. Starting twice with the same one returns the same run (safe to retry)max length 120 |
task | string | What the run is doing, in a sentence. Shown in alerts and to respondersmax length 500 |
budget | object | Hard limits for this run: usd, tokens, steps, durationSec |
budget.usd | number | Spend in USD, as reported by the agentmax 1,000,000 |
budget.tokens | integer | max 1,000,000,000,000 |
budget.steps | integer | max 1,000,000 |
budget.durationSec | integer | max 2,592,000 |
expectedDurationSec | integer | min 1 · max 2,592,000 |
metadata | map<string, any> | Small JSON object kept with the run (max 4 KB) |
curl -X POST https://upbutler.com/api/v1/runs \
-H "Content-Type: application/json" \
-d '{
"token": "ar_…",
"agent": "triage-bot",
"task": "Triage ticket #4812",
"budget": {
"usd": 2,
"steps": 60
},
"expectedDurationSec": 300
}'
#Report progress of a run and read the kill switch
POST/api/v1/runs/:id/progress
Public — no keyMCP runs_progressReturns 200
Call it at every step (or at least every few minutes). Send what changed: step, message, spend since the last ping (usd, tokens), tool calls. An empty body is a keepalive. Kill-switch contract: every response has `continue`. When it is false, stop working and call POST /runs/{id}/end (action "pause": wait retryAfterSec and ping again instead). With action "slow_down", wait retryAfterSec between steps. Agents MUST honour continue:false; the SDK helpers do it for you.
| Field | Type | Description |
|---|
step | string | number | Step label ("search") or counter (12). Labels count as one step each; a number sets the step countmax length 120 |
message | string | max length 500 |
status | string | The agent's own state label, e.g. "planning"max length 60 |
usd | number | Spend since the last ping (added to the total)min 0 · max 100,000 |
tokens | integer | Tokens since the last ping (added to the total)min 0 · max 10,000,000,000 |
toolCalls | string[] | integer | Tool names called in this step, or just how manymax 50 items · min 0 · max 10,000 |
fingerprint | string | What makes this step "the same as before" for loop detection, e.g. a hash of tool name + arguments. Default: step label + status + message + tool namesmax length 200 |
totals | object | Running totals instead of deltas, for agents that already keep them |
totals.usd | number | min 0 |
totals.tokens | integer | min 0 |
totals.steps | integer | min 0 |
idrequiredpath | string | Run token (rt_…) from runs.start, or the run id with an API key |
curl -X POST https://upbutler.com/api/v1/runs/rt_…/progress \
-H "Content-Type: application/json" \
-d '{
"step": "search",
"message": "Looking up similar tickets",
"toolCalls": [
"search_tickets"
],
"usd": 0.012,
"tokens": 1840
}'
#Read the kill switch of a run without reporting progress
GET/api/v1/runs/:id/signal
Public — no keyMCP runs_signalReturns 200
For polling between steps or from a watchdog thread. It does not count as progress, so a run that only polls is still flagged as stuck. Kill-switch contract: every response has `continue`. When it is false, stop working and call POST /runs/{id}/end (action "pause": wait retryAfterSec and ping again instead). With action "slow_down", wait retryAfterSec between steps.
| Field | Type | Description |
|---|
idrequiredpath | string | Run token (rt_…) or the run id with an API key |
curl https://upbutler.com/api/v1/runs/id_.../signal
#End a run: success, failed or cancelled
POST/api/v1/runs/:id/end
Public — no keyMCP runs_endReturns 200
Always end a run, also when it failed or was told to stop (status "cancelled"). A run that never ends is flagged as stuck and later closed as lost.
| Field | Type | Description |
|---|
idrequiredpath | string | Run token (rt_…) or the run id with an API key |
status | string | Default successsuccessfailedcancelled |
summary | string | max length 2,000 |
error | string | max length 2,000 |
usd | number | Final spend not reported yetmin 0 · max 100,000 |
tokens | integer | min 0 · max 10,000,000,000 |
curl -X POST https://upbutler.com/api/v1/runs/rt_…/end \
-H "Content-Type: application/json" \
-d '{
"status": "success",
"summary": "Ticket routed to billing"
}'
#List the runs of an agent monitor, with a fleet summary
GET/api/v1/monitors/:id/runs
API key · readMCP runs_listReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | Agent monitor id |
statusquery | string | flagged = running with an active detectionrunningflaggedsuccessfailedcancelledstoppedlost |
agentquery | string | max length 80 |
limitquery | integer | min 1 · max 200 |
beforequery | string | Run id to page from (nextBefore of the previous page) |
summaryquery | boolean | string | Include the fleet summary (default true) |
curl https://upbutler.com/api/v1/monitors/id_.../runs \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Get a run with its timeline
GET/api/v1/runs/:id
API key · readMCP runs_getReturns 200
Totals, budget use, active detections, the kill switch state and the last 500 timeline events (progress, detections, stop actions).
| Field | Type | Description |
|---|
idrequiredpath | string | Run id (run_…) |
curl https://upbutler.com/api/v1/runs/id_... \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Kill switch: tell a running agent to stop, pause or slow down
POST/api/v1/runs/:id/stop
API key · writeMCP runs_stopReturns 200
The agent reads it in its next progress response ({continue:false, action, reason}); a stop webhook, if the monitor has one, is sent right away. A stop cannot be forced: it relies on the agent honouring the contract, which the SDKs do.
| Field | Type | Description |
|---|
idrequiredpath | string | Run id (run_…) |
action | string | stop (default) = end the run · pause = wait and keep polling · slow_down = keep going, wait delaySec between stepsstoppauseslow_down |
reason | string | Shown to the agent and on the timelinemax length 500 |
delaySec | integer | slow_down: seconds between steps (default 30)min 1 · max 3,600 |
curl -X POST https://upbutler.com/api/v1/runs/run_…/stop \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action": "stop",
"reason": "Looping on the same search"
}'
#Lift a stop, pause or slow-down that the agent has not acted on yet
POST/api/v1/runs/:id/resume
API key · writeMCP runs_resumeReturns 200
The next progress response says continue:true again. Automatic (policy) stops leave this run alone afterwards. A run that already ended cannot be resumed.
| Field | Type | Description |
|---|
idrequiredpath | string | |
curl -X POST https://upbutler.com/api/v1/runs/id_.../resume \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Kill switch for a whole fleet: stop every running (or every flagged) run of a monitor
POST/api/v1/monitors/:id/runs/stop
API key · writeMCP runs_stopAllReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | Agent monitor id |
action | string | stop (default) = end the run · pause = wait and keep polling · slow_down = keep going, wait delaySec between stepsstoppauseslow_down |
reason | string | Shown to the agent and on the timelinemax length 500 |
delaySec | integer | slow_down: seconds between steps (default 30)min 1 · max 3,600 |
onlyFlagged | boolean | string | Only runs with an active detection (default false: all running runs) |
curl -X POST https://upbutler.com/api/v1/monitors/id_.../runs/stop \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Rotate and reveal the signing secret of the stop webhook
POST/api/v1/monitors/:id/runs/webhook-secret
API key · writeREST onlyReturns 200
The stop webhook is signed per Standard Webhooks. The secret is only shown here, once per rotation.
| Field | Type | Description |
|---|
idrequiredpath | string | |
curl -X POST https://upbutler.com/api/v1/monitors/id_.../runs/webhook-secret \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Setup
#Apply an upbutler.yaml: create and update monitors, heartbeats and status pages to match the file
POST/api/v1/setup/apply
API key · writeMCP setup_applyReturns 200
Declarative setup. Idempotent: entries are matched by their stable id, only declared fields are compared and written, and a second apply changes nothing. dryRun: true returns the diff (create / update / delete_candidate) and any plan-limit blockers without writing. Resources that left the file are only listed, never deleted, unless prune: true; prune only touches resources this project created or adopted. Returns heartbeat ping URLs, status page URLs and a block for AGENTS.md. Never send secrets you do not want stored: header values and API keys in the file are stored encrypted like any monitor secret.
| Field | Type | Description |
|---|
config | any | The parsed upbutler.yaml (schema: /schemas/upbutler.yaml.json) |
yaml | string | The file as YAML text, instead of configmax length 400,000 |
dryRun | boolean | string | Return the diff without changing anything |
prune | boolean | string | Delete resources of this project that are no longer in the file (default false) |
curl -X POST https://upbutler.com/api/v1/setup/apply \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"dryRun": true,
"config": {
"version": 1,
"project": "acme",
"monitors": [
{
"id": "homepage",
"url": "https://acme.com/"
}
],
"heartbeats": [
{
"id": "nightly-backup",
"periodSec": 86400
}
]
}
}'
#Export the workspace as an upbutler.yaml
GET/api/v1/setup/export
API key · readMCP setup_exportReturns 200
For workspaces set up by hand: returns the monitors, heartbeats, status pages and components as a declarative file (`config` as JSON, `yaml` as text). Applying the export changes nothing. Secrets (header values, API keys) are never exported.
| Field | Type | Description |
|---|
projectquery | string | Project id to write (default: the one already in use, else the workspace name)pattern ^[a-z0-9][a-z0-9_.-]{0,62}$ |
curl https://upbutler.com/api/v1/setup/export \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Alert actions
#List hosting accounts connected for rollbacks, and the alert action settings
GET/api/v1/integrations
API key · readMCP integrations_listReturns 200
A connected hosting account (Vercel, Netlify) is what lets "Roll back" in an alert put the previous production deployment back. Also returns which actions alerts carry and whether the plan includes rollback.
No parameters.
curl https://upbutler.com/api/v1/integrations \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Connect a hosting account (or replace its token)
POST/api/v1/integrations
API key · writeREST onlyReturns 201
The token is tested against the provider before it is saved; the response lists the projects it can see. The token is stored encrypted and is never returned: reads show only its last four characters. Vercel: create a token scoped to the team or the one project (https://vercel.com/docs/accounts/access-tokens); full-account tokens need teamId. Netlify: a personal access token.
| Field | Type | Description |
|---|
providerrequired | string | Hosting providervercelnetlify |
tokenrequired | string | API token. Stored encrypted and never returned by any endpointmin length 8 · max length 500 |
teamId | string | Vercel only: team id (team_…) or slug the projects live in. Needed for full-account tokensmax length 120 |
curl -X POST https://upbutler.com/api/v1/integrations \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"provider": "vercel",
"token": "vcp_…",
"teamId": "team_…"
}'
#Test a connected hosting account
POST/api/v1/integrations/:provider/test
API key · writeMCP integrations_testReturns 200
Calls the provider with the saved token, refreshes the project list and reports whether the token still works.
| Field | Type | Description |
|---|
providerrequiredpath | string | vercelnetlify |
curl -X POST https://upbutler.com/api/v1/integrations/<provider>/test \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Map project names to provider projects
PUT/api/v1/integrations/:provider/projects
API key · writeMCP integrations_projectsReturns 200
Only needed for deploys that do not come through the provider's own deploy hook (those carry the provider project id already), or when the name on your deploy markers differs from the provider's project name.
| Field | Type | Description |
|---|
providerrequiredpath | string | vercelnetlify |
projectsrequired | object[] | max 200 items |
projects[].servicerequired | string | Project / service name as your deploy markers carry itmax length 120 |
projects[].projectIdrequired | string | The provider's project (Vercel) or site (Netlify) idmax length 120 |
curl -X PUT https://upbutler.com/api/v1/integrations/vercel/projects \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"projects": [
{
"service": "web",
"projectId": "prj_…"
}
]
}'
#Disconnect a hosting account
DELETE/api/v1/integrations/:provider
API key · writeREST onlyReturns 200
Deletes the stored token. Roll back buttons then lead to the set-up page.
| Field | Type | Description |
|---|
providerrequiredpath | string | vercelnetlify |
curl -X DELETE https://upbutler.com/api/v1/integrations/<provider> \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Choose which actions alerts carry
PATCH/api/v1/alert-actions
API key · writeMCP alert_actions_updateReturns 200
Turn Roll back, Let Claude fix and Mute 1h on or off for every alert of the workspace, and decide whether a rollback needs a signed-in member (default: the signed link is enough in email, Slack, Discord and Telegram; links delivered through webhook channels always need a sign-in). Read the current values with GET /integrations.
| Field | Type | Description |
|---|
rollback | boolean | Show "Roll back" on alerts that follow a deploy |
fix | boolean | Show "Let Claude fix" on alerts |
mute | boolean | Show "Mute 1h" on alerts |
rollbackRequiresSignIn | boolean | Only signed-in members can confirm a rollback from any alert link. Links delivered through webhook channels always need a sign-in |
fixSetupHint | boolean | Show "Set up Claude fixes" on the first alerts while no Fix-with-Claude responder exists |
curl -X PATCH https://upbutler.com/api/v1/alert-actions \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"rollback": true,
"fix": true,
"mute": true,
"rollbackRequiresSignIn": false,
"fixSetupHint": true
}'
#What can be done about an incident, in plain words
GET/api/v1/incidents/:id/actions
API key · readMCP incidents_actionsReturns 200
Returns the incident as one plain sentence (`summaryPlain`: what users see, since when, the deploy it followed), the suspect deploy, and what is possible: roll back (state `ready`, `connect`, `map` or `none`; pass preview=true to ask the provider which deployment would be restored), let Claude fix, mute. Use it before proposing a rollback to a human. Readable with an incident token when the responder may roll back.
| Field | Type | Description |
|---|
idrequiredpath | string | |
previewquery | boolean | Also ask the hosting provider which deployment a rollback would restore |
curl https://upbutler.com/api/v1/incidents/inc_0n3q9a11v8k2h5n0qzc/actions \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Roll production back to the deployment before the incident's suspect deploy
POST/api/v1/incidents/:id/rollback
API key · writeMCP incidents_rollbackReturns 201
Asks the hosting provider (Vercel instant rollback, Netlify restore deploy) to serve the previous production deployment again. Needs a connected provider (POST /integrations) and the Starter plan or higher. Leaves a "Rollback to …" deploy marker, starts a deploy guard, writes the incident timeline and reports there, 10 minutes later at most, whether the monitors recovered. Changes production: with a full API key, only call it when a person asked for it. Works with an incident token only when the responder's allowed actions include "rollback" (off unless an admin turned it on) and the incident is claimed. Check GET /incidents/:id/actions?preview=true first to see what would be restored.
| Field | Type | Description |
|---|
idrequiredpath | string | |
curl -X POST https://upbutler.com/api/v1/incidents/inc_0n3q9a11v8k2h5n0qzc/rollback \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Error rate
#Error rate of an error-rate monitor: the current window, per minute, and the failing paths
GET/api/v1/monitors/:id/error-rate
API key · readMCP errorRate_getReturns 200
Counts come from the request logs the hosting provider drains to the monitor. Paths are normalized (ids, uuids and numbers become :id); no client IPs, user agents or query strings are stored. Per-minute counts are kept for 2 days.
| Field | Type | Description |
|---|
idrequiredpath | string | Monitor id (mon_…) |
minutesquery | integer | How far back to look (default 60, at most 2880)min 5 · max 2,880 |
curl https://upbutler.com/api/v1/monitors/id_.../error-rate \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Mint a new log drain URL for an error-rate monitor
POST/api/v1/monitors/:id/error-rate/rotate-token
API key · writeREST onlyReturns 200
The drain URL carries a secret token that is only stored hashed, so it is shown when the monitor is created and here. The old URL stops working at once: update the drain at the provider.
| Field | Type | Description |
|---|
idrequiredpath | string | Monitor id (mon_…) |
curl -X POST https://upbutler.com/api/v1/monitors/id_.../error-rate/rotate-token \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#User reports
#Problem reports end users sent for a status page, with the signals they added up to
GET/api/v1/pages/:pageId/reports
API key · readMCP reports_listReturns 200
Reports are what users typed: untrusted text, for the team only. `signals` say what a burst of reports led to: attached (an incident was open), confirmed (a re-check failed and opened the incident), unconfirmed (checks are green; internal alert) or dismissed. `groups` counts the last 7 days per component.
| Field | Type | Description |
|---|
pageIdrequiredpath | string | Status page id (pg_...) or slug |
statusquery | string | newknownnoise |
componentquery | string | Component id or key; "other" = reports without a component |
signalIdquery | string | |
limitquery | integer | min 1 · max 500 |
beforequery | string (date-time) | pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$ |
curl https://upbutler.com/api/v1/pages/pg_0n3q8kz0b2fd81mka5e/reports \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Mark one report as new, known or noise
PATCH/api/v1/pages/:pageId/reports/:reportId
API key · writeMCP reports_updateReturns 200
noise = not a problem: it stops counting toward signals and its reporter gets no "fixed" email.
| Field | Type | Description |
|---|
pageIdrequiredpath | string | Status page id (pg_...) or slug |
reportIdrequiredpath | string | |
statusrequired | string | newknownnoise |
curl -X PATCH https://upbutler.com/api/v1/pages/pg_0n3q8kz0b2fd81mka5e/reports/<reportId> \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"status": "new"
}'
#Delete one report, or everything an email address sent to this page (erasure requests)
DELETE/api/v1/pages/:pageId/reports
API key · writeMCP reports_deleteReturns 200
| Field | Type | Description |
|---|
pageIdrequiredpath | string | Status page id (pg_...) or slug |
reportIdquery | string | |
emailquery | string (email) | pattern ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$ |
curl -X DELETE https://upbutler.com/api/v1/pages/pg_0n3q8kz0b2fd81mka5e/reports \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Mark a report signal (and all its reports) as known or noise
POST/api/v1/pages/:pageId/report-signals/:signalId/mark
API key · writeMCP reports_signal_markReturns 200
noise closes the signal, resolves the internal "checks are green" incident if it opened one, and no reporter is emailed. known keeps everything and records that the team is on it.
| Field | Type | Description |
|---|
pageIdrequiredpath | string | Status page id (pg_...) or slug |
signalIdrequiredpath | string | |
statusrequired | string | knownnoise |
curl -X POST https://upbutler.com/api/v1/pages/pg_0n3q8kz0b2fd81mka5e/report-signals/<signalId>/mark \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"status": "known"
}'
#Get (or rotate) the secret that signs reporter ids for the widget
POST/api/v1/pages/:pageId/reports/reporter-key
API key · writeREST onlyReturns 200
For apps whose users share a network address: your backend signs its user id with this secret (hex HMAC-SHA256 of the id) and passes id + signature to the widget, so each signed-in user counts as one reporter. The first call switches signed ids on. rotate: true issues a new secret and invalidates signatures made with the old one. Keep the secret on your server.
| Field | Type | Description |
|---|
pageIdrequiredpath | string | Status page id (pg_...) or slug |
rotate | boolean | |
curl -X POST https://upbutler.com/api/v1/pages/pg_0n3q8kz0b2fd81mka5e/reports/reporter-key \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#AI summary of what users report (one signal, or the last 24 hours for a component)
POST/api/v1/pages/:pageId/reports/summary
API key · writeMCP reports_summarizeReturns 200
Uses one AI report from the monthly quota. The model gets scrubbed text only (no emails, numbers, links with query strings or token-like strings) and never the reporter addresses. `summary` is null with a `reason` when AI is unavailable or the quota is used up.
| Field | Type | Description |
|---|
pageIdrequiredpath | string | Status page id (pg_...) or slug |
signalId | string | |
component | string | Component id or key, or "other" |
curl -X POST https://upbutler.com/api/v1/pages/pg_0n3q8kz0b2fd81mka5e/reports/summary \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Spend
#Spend per source and day, with baselines and anomalies
GET/api/v1/spend
API key · readMCP spend_summaryReturns 200
Everything the Spend page shows: each spend source (Agent Runs, balance monitors in USD, connected provider accounts) with its daily spend, month to date, what is usual for it and the days that were unusual; the agent runs spending the most today; the spend monitors with their caps and budgets. Amounts are USD and days are UTC. Sources overlap when they see the same money (a run reports what the provider then bills): a monitor should add up sources that do not.
| Field | Type | Description |
|---|
daysquery | integer | Days of history (default 30)min 7 · max 90 |
curl https://upbutler.com/api/v1/spend \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#List connected provider accounts
GET/api/v1/spend/sources
API key · readMCP spend_sources_listReturns 200
No parameters.
curl https://upbutler.com/api/v1/spend/sources \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Connect a provider account as a spend source
POST/api/v1/spend/sources
API key · writeMCP spend_sources_createReturns 201
Polls the provider's cost API every 15 minutes with an admin / management key: OpenAI (admin key, GET /v1/organization/costs), Anthropic (Admin API key, GET /v1/organizations/cost_report), OpenRouter (management key, /activity and /credits), Vercel (access token + team, GET /v1/billing/charges). Read-only requests. The key is tried before it is saved, stored encrypted and never returned. Pro and up.
| Field | Type | Description |
|---|
providerrequired | string | openai, anthropic, openrouter or vercelopenaianthropicopenroutervercel |
name | string | Shown on the Spend page and in alerts (default: the provider name)max length 80 |
keyrequired | string | Admin / management key of the provider account. Read-only use (cost reports). Stored encrypted and never returned by any endpointmin length 8 · max length 500 |
teamId | string | Vercel: team id (team_…) or slugmax length 120 |
curl -X POST https://upbutler.com/api/v1/spend/sources \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"provider": "anthropic",
"key": "sk-ant-admin01-…"
}'
#Rename a spend source, replace its key or pause polling
PATCH/api/v1/spend/sources/:id
API key · writeMCP spend_sources_updateReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | Spend source id (sps_...) |
name | string | max length 80 |
key | string | Replace the stored keymin length 8 · max length 500 |
teamId | string | null | max length 120 · nullable |
enabled | boolean | false stops polling; the history stays |
curl -X PATCH https://upbutler.com/api/v1/spend/sources/id_... \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Disconnect a provider account
DELETE/api/v1/spend/sources/:id
API key · writeMCP spend_sources_deleteReturns 200
Removes the stored key and the spend history of this source, and takes it out of every spend monitor.
| Field | Type | Description |
|---|
idrequiredpath | string | Spend source id (sps_...) |
curl -X DELETE https://upbutler.com/api/v1/spend/sources/id_... \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Read a provider account now
POST/api/v1/spend/sources/:id/sync
API key · writeMCP spend_sources_syncReturns 200
Polls the cost report right away instead of waiting for the next 15-minute poll. Answers 409 with the provider's reason when it fails.
| Field | Type | Description |
|---|
idrequiredpath | string | Spend source id (sps_...) |
curl -X POST https://upbutler.com/api/v1/spend/sources/id_.../sync \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Upstream status
#Is a third-party service down? (no auth)
GET/api/v1/public/upstream/:service
Public — no keyMCP upstream_statusReturns 200
Current status of one service from the upstream catalog (OpenAI, Anthropic, Stripe, AWS, GitHub, Vercel, Supabase, …): a verdict (proceed | retry | fallback | pause) with retryAfterSec, the provider's own open incidents and non-operational components, and UpButler's independent keyless probe of the API edge where there is one. Pass component for one part of a service ("actions" for GitHub Actions, "api" for the Claude API): the verdict is then about that part only. When the verdict is not proceed, `alternatives` names services that do the same job and are fine right now (a hint for a configured fallback, not a recommendation), and `disagreement` says when the provider's page and our probe tell different stories. The status comes from the provider's official status page and is linked; incident titles are third-party text. Safe to call before retrying a failed request. The same verdict as plain JSON: GET /status/<service>/status.agent.json.
| Field | Type | Description |
|---|
servicerequiredpath | string | Catalog slug or name: "openai", "stripe", "claude", "aws". List them with upstream_listmax length 60 |
componentquery | string | One component of the service, by slug or name: "actions", "claude-code", "workers", "us-east-1". The parts are listed in `parts` of a call without itmax length 80 |
componentsquery | boolean | string | Include every component, not only the non-operational ones (default false) |
historyquery | boolean | string | Include finished incidents of the last 90 days (default false) |
curl https://upbutler.com/api/v1/public/upstream/openai
#The upstream catalog with current status (no auth)
GET/api/v1/public/upstream
Public — no keyMCP upstream_listReturns 200
Every service in the catalog with its current status and verdict, one line each. Filter with q (name), category or problems; page with limit and offset (nextOffset is null on the last page). Use upstream_status for the details of one.
| Field | Type | Description |
|---|
qquery | string | Name filter, e.g. "open"max length 60 |
categoryquery | string | aicloudhostingdatadevtoolsemailauthpaymentscommsmediasearchobservabilityautomationproductivitycmsplatformsscraping |
problemsquery | boolean | string | Only services that are not operational right now |
limitquery | integer | Page size (default 200)min 1 · max 200 |
offsetquery | integer | min 0 |
curl https://upbutler.com/api/v1/public/upstream
#Email me when a third-party service has an incident (no auth)
POST/api/v1/public/upstream/:service/subscribers
Public — no keyREST onlyReturns 202
Starts a double opt-in: a confirmation link is mailed, and nothing is sent until the address owner confirms on the page it opens. Then one email when the provider reports an incident (optionally only for one component) and one when it is over. Every email has a one-click unsubscribe. Rate-limited per network and per address; the answer is the same whether or not the address was already subscribed.
| Field | Type | Description |
|---|
servicerequiredpath | string | Catalog slug or name: "openai", "stripe", "claude", "aws". List them with upstream_listmax length 60 |
emailrequired | string | min length 3 · max length 254 |
component | string | Only incidents that affect this component (slug)max length 80 |
website | string | Leave empty (spam trap)max length 200 |
curl -X POST https://upbutler.com/api/v1/public/upstream/<service>/subscribers \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]"
}'
#Dependencies
#Upstream dependencies of this workspace
GET/api/v1/dependencies
API key · readMCP dependencies_listReturns 200
The third-party services this workspace declared it depends on, each with its current upstream status, plus the paging policy for incidents that are likely upstream.
No parameters.
curl https://upbutler.com/api/v1/dependencies \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Declare (or change) a dependency on an upstream service
PUT/api/v1/dependencies/:service
API key · writeMCP dependencies_setReturns 200
Say that this workspace depends on a catalog service. With notify.enabled the workspace also hears when the provider itself opens, updates or resolves an incident on the chosen components (event upstream.incident, one per change, maintenance only when asked). When a monitor fails while that service has an incident that began around the same time, the incident is tagged "likely upstream" with their incident title and link, the AI report and the responder packet say so, and paging follows the upstream policy. The same happens for push and manifest components named in componentIds. One entry per service and scope: pass scope to keep separate settings for two projects in one workspace. components narrows it to upstream components ("Chat Completions"); monitorIds narrows it to some monitors (default: all). A monitor whose URL is on the provider's API host (api.openai.com) depends on it without being declared.
| Field | Type | Description |
|---|
servicerequiredpath | string | Catalog slug or name: "openai", "stripe", "claude", "aws". List them with upstream_listmax length 60 |
components | string[] | Upstream component names that matter; omit for the whole servicemax 20 items |
monitorIds | string[] | Only these monitors depend on it; omit for every monitormax 200 items |
componentIds | string[] | Status page components (ids or keys) that depend on it: push and manifest components have no monitor, and their automatic incidents are tagged "likely upstream" the same waymax 300 items |
scope | string | A second, separately scoped entry for the same service: a project name (upbutler.yaml uses its project) or any name. Default "" = the workspace. An entry that names no monitors or components covers everything in its scopemax length 63 |
publicAttribution | boolean | Allow the public incident to say "<Provider> is reporting an incident" (a fixed sentence with their public title and a link to /status/<service>). Default false: nothing about the provider is public |
notify | object | null | Upstream outage alerts for this dependency, even while your own monitors are green. Omit to keep the stored setting; null turns it offnullable |
notify.enabled | boolean | Send upstream.incident when this service opens, updates or resolves an incident (default off) |
notify.channelIds | string[] | Channels that get it. Empty = every channel that accepts upstream.incidentmax 50 items |
notify.maintenance | boolean | Also announce scheduled maintenance (default false) |
curl -X PUT https://upbutler.com/api/v1/dependencies/openai \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"components": [
"Chat Completions"
],
"notify": {
"enabled": true
}
}'
#Remove a dependency
DELETE/api/v1/dependencies/:service
API key · writeMCP dependencies_deleteReturns 200
| Field | Type | Description |
|---|
servicerequiredpath | string | Catalog slug or name: "openai", "stripe", "claude", "aws". List them with upstream_listmax length 60 |
scopequery | string | Which entry, when the service is declared in several scopesmax length 63 |
curl -X DELETE https://upbutler.com/api/v1/dependencies/<service> \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Set how likely-upstream incidents are paged
PATCH/api/v1/dependencies
API key · writeMCP dependencies_policyReturns 200
inform (default): the team is alerted, agent responders are told it is upstream and not to change code, a Fix with Claude responder is not started. page: page as for any incident. quiet: alert channels only, no escalation.
| Field | Type | Description |
|---|
policyrequired | string | informpagequiet |
curl -X PATCH https://upbutler.com/api/v1/dependencies \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"policy": "inform"
}'
#Suggest dependencies from env var names and package names
POST/api/v1/dependencies/suggest
API key · readMCP dependencies_suggestReturns 200
Pass the NAMES of environment variables (never values) and/or package names from package.json / requirements.txt; returns the catalog services they point at and whether each is already declared. Nothing is stored.
| Field | Type | Description |
|---|
env | string[] | Environment variable names, e.g. ["STRIPE_SECRET_KEY","OPENAI_API_KEY"]max 500 items |
npm | string[] | max 1000 items |
python | string[] | max 1000 items |
curl -X POST https://upbutler.com/api/v1/dependencies/suggest \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"env": [
"STRIPE_SECRET_KEY",
"OPENAI_API_KEY"
],
"npm": [
"@supabase/supabase-js"
]
}'
#Drills
#List drill scenarios and how drills are scored
GET/api/v1/drill-scenarios
API key · readMCP drills_scenariosReturns 200
What each scenario simulates, what ends it and what a good responder does. The responder being drilled never sees the scenario: its packet only says `drill: true`.
No parameters.
curl https://upbutler.com/api/v1/drill-scenarios \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Start an incident drill
POST/api/v1/drills
API key · writeMCP drills_startReturns 201
Opens a synthetic, internal-only incident on the given monitors and lets the responder chain run for real: the escalation policy pages its agent responders with a packet marked `drill: true` that shows a simulated failure. Nothing public can be touched: the incident is on no status page, no subscriber is notified, the monitors keep their real state and uptime. People and alert channels are only reached with includeHumans (alerts then start with "[DRILL]"). Rollback, stopping runs, muting and public updates are simulated and recorded. The drill ends when the incident is resolved or handed back, or after timeoutMinutes; it is then scored out of 100 (GET /drills/:id) and the incident is removed. One drill per workspace at a time.
| Field | Type | Description |
|---|
scenariorequired | string | down = origin 503 everywhere · degraded = a third of requests fail · slow = latency and timeouts · bad_deploy = a made-up deploy followed by a regression (rollback ends it) · upstream_outage = a third-party dependency is failing (the right answer is to hand back) · runaway_run = an agent run looping over budget (stopping it ends it)downdegradedslowbad_deployupstream_outagerunaway_run |
monitorIds | string[] | Monitors the synthetic incident is about. Their real state, history and status-page components are never touchedmax 20 items |
componentIds | string[] | Status-page components: the drill runs on the monitors behind them. The components themselves keep their statusmax 20 items |
responderIds | string[] | Agent responders (id or name) to page directly. Default: whatever the escalation policy for these monitors pages; with no policy and exactly one responder, that onemax 5 items |
includeHumans | boolean | Default false: only agent responders are paged, and levels that page people are recorded as "would have paged". true = people and the alert channels in channelIds really get [DRILL] alerts |
channelIds | string[] | With includeHumans: the only alert channels that may receive this drill (default: the channels of the escalation policy and of the monitors)max 20 items |
fix | string | Fix with Claude in the drill. dry_run (default) = the agent reports what it would change and opens nothing · draft_pr = it may open a draft pull requestdry_rundraft_pr |
timeoutMinutes | integer | The drill ends by itself after this long (default 15)min 2 · max 120 |
recoverAfterSec | integer | Scenarios that heal by themselves (down, degraded, slow) do so after this many seconds (default 120)min 0 · max 3,600 |
curl -X POST https://upbutler.com/api/v1/drills \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"scenario": "bad_deploy",
"monitorIds": [
"mon_…"
],
"timeoutMinutes": 15
}'
#List drills, newest first
GET/api/v1/drills
API key · readMCP drills_listReturns 200
| Field | Type | Description |
|---|
limitquery | integer | min 1 · max 100 |
curl https://upbutler.com/api/v1/drills \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Get a drill and, once it ended, its report
GET/api/v1/drills/:id
API key · readMCP drills_getReturns 200
While the drill runs: status and timing only (the cause stays hidden). After it ended: the score per criterion with one sentence each, the cause the scenario simulated, the simulated actions, the levels that would have paged people, the cleanup result and the incident timeline.
| Field | Type | Description |
|---|
idrequiredpath | string | Drill id (drl_…) or the id of its incident |
curl https://upbutler.com/api/v1/drills/id_... \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#End a running drill now
POST/api/v1/drills/:id/end
API key · writeMCP drills_endReturns 200
Cancels the drill: the synthetic incident, its tokens and queued pages are removed and no score is recorded. A drill that already ended is returned unchanged.
| Field | Type | Description |
|---|
idrequiredpath | string | Drill id (drl_…) or the id of its incident |
curl -X POST https://upbutler.com/api/v1/drills/id_.../end \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#List drill schedules
GET/api/v1/drill-schedules
API key · readMCP drills_schedules_listReturns 200
No parameters.
curl https://upbutler.com/api/v1/drill-schedules \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Schedule a recurring drill
POST/api/v1/drill-schedules
API key · writeMCP drills_schedules_createReturns 201
Runs a drill weekly, monthly (the first chosen weekday of the month) or quarterly at the given hour in the workspace timezone. With several scenarios each run takes the next one. A run is skipped, not postponed, when one of the monitors has a real problem at that moment. The result is in the weekly digest. Also declarable as `drills:` in upbutler.yaml.
| Field | Type | Description |
|---|
namerequired | string | e.g. "Monthly game day"max length 80 |
cadencerequired | string | weekly, monthly (first chosen weekday of the month) or quarterlyweeklymonthlyquarterly |
scenariosrequired | string[] | One scenario, or several: each run takes the next one in turndowndegradedslowbad_deployupstream_outagerunaway_runmax 6 items |
monitorIdsrequired | string[] | max 20 items |
responderIds | string[] | max 5 items |
includeHumans | boolean | |
fix | string | dry_rundraft_pr |
timeoutMinutes | integer | min 2 · max 120 |
hour | integer | Hour of day in the workspace timezone (default 10)min 0 · max 23 |
weekday | integer | 1 = Monday … 7 = Sunday (default 2, Tuesday)min 1 · max 7 |
enabled | boolean | |
curl -X POST https://upbutler.com/api/v1/drill-schedules \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Monthly game day",
"cadence": "monthly",
"scenarios": [
"bad_deploy",
"upstream_outage",
"down"
],
"monitorIds": [
"mon_…"
]
}'
#Change a drill schedule
PATCH/api/v1/drill-schedules/:id
API key · writeMCP drills_schedules_updateReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | |
name | string | e.g. "Monthly game day"max length 80 |
cadence | string | weekly, monthly (first chosen weekday of the month) or quarterlyweeklymonthlyquarterly |
scenarios | string[] | One scenario, or several: each run takes the next one in turndowndegradedslowbad_deployupstream_outagerunaway_runmax 6 items |
monitorIds | string[] | max 20 items |
responderIds | string[] | max 5 items |
includeHumans | boolean | |
fix | string | dry_rundraft_pr |
timeoutMinutes | integer | min 2 · max 120 |
hour | integer | Hour of day in the workspace timezone (default 10)min 0 · max 23 |
weekday | integer | 1 = Monday … 7 = Sunday (default 2, Tuesday)min 1 · max 7 |
enabled | boolean | |
curl -X PATCH https://upbutler.com/api/v1/drill-schedules/id_... \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Delete a drill schedule
DELETE/api/v1/drill-schedules/:id
API key · writeMCP drills_schedules_deleteReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | |
curl -X DELETE https://upbutler.com/api/v1/drill-schedules/id_... \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Verified uptime
#List signed uptime attestations of a status page
GET/api/v1/pages/:pageId/attestations
API key · readMCP attestations_listReturns 200
Newest first. Each entry links to its public verify page and to the signed JSON document. `plan.included` says whether this workspace can issue attestations.
| Field | Type | Description |
|---|
pageIdrequiredpath | string | Status page id or slug |
limitquery | integer | min 1 · max 100 |
curl https://upbutler.com/api/v1/pages/pg_0n3q8kz0b2fd81mka5e/attestations \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Issue a signed uptime attestation now
POST/api/v1/pages/:pageId/attestations
API key · writeMCP attestations_createReturns 201
Measures the page over the period and signs the result with UpButler's Ed25519 key. Only components UpButler probes itself count as verified; push, manifest, manual and heartbeat components are listed as self-reported. One attestation exists per page and period: asking again returns the same document (created: false). Monthly attestations are issued automatically after each month ends.
| Field | Type | Description |
|---|
pageIdrequiredpath | string | Status page id or slug |
period | string | "30d" or "90d" (the most recent complete UTC days) or a finished calendar month "YYYY-MM"pattern ^(30d|90d|\d{4}-(0[1-9]|1[0-2]))$ |
curl -X POST https://upbutler.com/api/v1/pages/acme/attestations \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"period": "30d"
}'
#Get a signed uptime attestation
GET/api/v1/attestations/:id
API key · readMCP attestations_getReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | |
curl https://upbutler.com/api/v1/attestations/id_... \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Public keys that sign uptime attestations (no auth)
GET/api/v1/public/attestation-keys
Public — no keyMCP attestations_keysReturns 200
Every Ed25519 key that ever signed an attestation, retired ones included, as raw base64url and as JWK. The same document is served at /.well-known/upbutler-attestation-keys.json.
No parameters.
curl https://upbutler.com/api/v1/public/attestation-keys
#Fetch a signed uptime attestation by id (no auth)
GET/api/v1/public/attestations/:id
Public — no keyMCP attestations_publicReturns 200
Returns the signed document { payload, signature } and the result of checking it against the published keys. To verify it yourself, see /docs/verified-uptime.
| Field | Type | Description |
|---|
idrequiredpath | string | Attestation id (att_…) |
curl https://upbutler.com/api/v1/public/attestations/id_...
#Live verified uptime of a public status page (no auth)
GET/api/v1/public/pages/:slug/verified-uptime
Public — no keyMCP attestations_verified_uptimeReturns 200
Uptime of the last 30 or 90 UTC days measured by UpButler's own probes, per component, with self-reported components listed separately (verified: false). `days` is the window actually measured: it is shorter than requested when the page's plan keeps less history. Live numbers are not signed; `attestations` lists the signed documents issued for this page.
| Field | Type | Description |
|---|
slugrequiredpath | string | |
daysquery | integer | min -9,007,199,254,740,991 |
curl https://upbutler.com/api/v1/public/pages/acme/verified-uptime
#GitHub App
#GitHub App installations connected to this workspace
GET/api/v1/github
API key · readMCP github_statusReturns 200
Whether the UpButler GitHub App is available, and the installations connected to this workspace with their repositories and settings. With an installation on a repository: preview verdicts are Check Runs with a summary table, a pull request that touches monitored routes gets one comment that is kept up to date (and the deploy guard verdict after merge), and merges are seen directly (Fix with Claude tracking no longer depends on commit messages). Without one, everything works through tokens and deploy hooks as before. To install, open installUrl in a browser while signed in.
No parameters.
curl https://upbutler.com/api/v1/github \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Change what a GitHub installation does
PATCH/api/v1/github/installations/:id
API key · writeREST onlyReturns 200
checkRuns: post preview verdicts as Check Runs (default true). commitStatus: also set a commit status of the same name through the App, for branch protection that requires a status by name (default true; a saved token takes precedence). prComments: keep one comment on pull requests that touch monitored routes (default true). deploySource: treat GitHub deployment_status events as deploys, like a deploy hook (default false; a deploy another hook already reported is not marked twice).
| Field | Type | Description |
|---|
idrequiredpath | string | Installation id, from GET /githubpattern ^\d{1,20}$ |
checkRuns | boolean | string | |
commitStatus | boolean | string | |
prComments | boolean | string | |
deploySource | boolean | string | |
curl -X PATCH https://upbutler.com/api/v1/github/installations/id_... \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Read the repositories of an installation again
POST/api/v1/github/installations/:id/sync
API key · writeREST onlyReturns 200
Normally not needed: GitHub tells UpButler when the repository selection changes. Repositories become repo links of the workspace (project = repository name) unless a link was declared by hand or in upbutler.yaml.
| Field | Type | Description |
|---|
idrequiredpath | string | Installation id, from GET /githubpattern ^\d{1,20}$ |
curl -X POST https://upbutler.com/api/v1/github/installations/id_.../sync \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Disconnect a GitHub installation
DELETE/api/v1/github/installations/:id
API key · writeREST onlyReturns 200
Unlinks the installation from this workspace. uninstall=true also removes the app from the GitHub account. Repo links and saved tokens stay, so commit statuses and Fix with Claude keep working without the App.
| Field | Type | Description |
|---|
idrequiredpath | string | Installation id, from GET /githubpattern ^\d{1,20}$ |
uninstallquery | boolean | string | Also uninstall the app on GitHub (default false) |
curl -X DELETE https://upbutler.com/api/v1/github/installations/id_... \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Incident room
#The incident room: merged timeline, roles, tasks, approvals, who is here
GET/api/v1/incidents/:id/room
API key · readMCP incidents_roomReturns 200
One read of everything about working an incident together. `timeline` merges public updates, internal notes, agent actions, checks flipping, deploys, the upstream notice and room events, oldest first; every entry has a stable `id`. `sig` changes whenever anything in the room changes: pass it back as `since` with `wait` (seconds, up to 50) and the call returns as soon as something changed (long poll). Browsers can use the SSE stream at GET /api/v1/incidents/:id/room/stream instead.
| Field | Type | Description |
|---|
idrequiredpath | string | Incident id (inc_…) |
sincequery | string | The `sig` of your last readmax length 120 |
waitquery | integer | Seconds to wait for a change when `since` still matchesmin 0 · max 50 |
curl https://upbutler.com/api/v1/incidents/inc_0n3q9a11v8k2h5n0qzc/room \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Write a note in the incident room (with @mentions and links)
POST/api/v1/incidents/:id/room/notes
API key · writeREST onlyReturns 201
An internal timeline note. `@handle` mentions a workspace member (their email, the part before the @, their name without spaces or their first name) and pages them the way they asked to be reached (email, push, Telegram); a handle that fits no member stays plain text, so nobody outside the workspace can be reached. Attachments are links. The note goes to the incident's chat thread when one exists (Slack app, Discord forum webhook); `share: true` also posts it to the chat channels that were alerted.
| Field | Type | Description |
|---|
idrequiredpath | string | Incident id (inc_…) |
messagerequired | string | max length 10,000 |
links | object[] | max 10 items |
links[].urlrequired | string (url) | max length 1,000 |
links[].label | string | max length 120 |
share | boolean | Also post to the alerted chat channels |
action | string | Short label of what was done, e.g. "restarted pod"max length 80 |
curl -X POST https://upbutler.com/api/v1/incidents/inc_…/room/notes \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"message": "@dana the 502s start right after deploy 3f2c1aa. Rolling back.",
"links": [
{
"url": "https://grafana.example.com/d/api",
"label": "API dashboard"
}
]
}'
#Acknowledge a timeline entry (👀 seen / ✅ done)
POST/api/v1/incidents/:id/room/reactions
API key · writeREST onlyReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | Incident id (inc_…) |
entryIdrequired | string | Id of a timeline update or notemax length 80 |
reactionrequired | string | eyescheck |
curl -X POST https://upbutler.com/api/v1/incidents/inc_0n3q9a11v8k2h5n0qzc/room/reactions \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"entryId": "...",
"reaction": "eyes"
}'
#Assign incident commander, comms or ops
PUT/api/v1/incidents/:id/room/roles/:role
API key · writeMCP incidents_room_roleReturns 200
To a workspace member (user id) or an agent responder (agr_…). null clears the role. The commander is who an agent's approval request pages.
| Field | Type | Description |
|---|
idrequiredpath | string | Incident id (inc_…) |
rolerequiredpath | string | commandercommsops |
assigneerequired | string | null | User id, agent responder id, or nullmax length 80 · nullable |
curl -X PUT https://upbutler.com/api/v1/incidents/inc_0n3q9a11v8k2h5n0qzc/room/roles/<role> \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"assignee": "..."
}'
#Add a task to the incident checklist
POST/api/v1/incidents/:id/tasks
API key · writeREST onlyReturns 201
The checklist starts with the list items of the runbooks that apply to the incident; this adds one more.
| Field | Type | Description |
|---|
idrequiredpath | string | Incident id (inc_…) |
textrequired | string | min length 2 · max length 300 |
curl -X POST https://upbutler.com/api/v1/incidents/inc_0n3q9a11v8k2h5n0qzc/tasks \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"text": "..."
}'
#Tick or untick a task
PATCH/api/v1/incidents/:id/tasks/:taskId
API key · writeMCP incidents_tasks_setReturns 200
Agents: tick a task when you have done what it says (task ids are in GET /incidents/:id/room). Recorded on the timeline with your name.
| Field | Type | Description |
|---|
idrequiredpath | string | Incident id (inc_…) |
taskIdrequiredpath | string | max length 80 |
donerequired | boolean | string | |
curl -X PATCH https://upbutler.com/api/v1/incidents/inc_0n3q9a11v8k2h5n0qzc/tasks/<taskId> \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"done": {}
}'
#Remove a task
DELETE/api/v1/incidents/:id/tasks/:taskId
API key · writeREST onlyReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | Incident id (inc_…) |
taskIdrequiredpath | string | max length 80 |
curl -X DELETE https://upbutler.com/api/v1/incidents/inc_0n3q9a11v8k2h5n0qzc/tasks/<taskId> \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Ask a human to approve something before you do it
POST/api/v1/incidents/:id/approvals
API key · writeMCP incidents_approvals_requestReturns 201
For agent responders: say what you want to do and wait. The incident commander (else whoever acknowledged, else the people on call, else the alerted channels) is paged with a link to the room, where Approve and Deny are. Then wait on GET /incidents/:id/approvals/:approvalId?wait=50 until `state` is approved or denied. An approval is a person's answer, not a permission: the action itself still needs to be in your allowed actions.
| Field | Type | Description |
|---|
idrequiredpath | string | Incident id (inc_…) |
titlerequired | string | What you want to do, e.g. "Roll back api to 1.4.1"min length 3 · max length 200 |
detail | string | Why, and what it changesmax length 2,000 |
expiresInMinutes | integer | Default 30min 1 · max 1,440 |
curl -X POST https://upbutler.com/api/v1/incidents/inc_…/approvals \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "Roll back api to 1.4.1",
"detail": "Deploy 1.4.2 went live 3 minutes before the first failing check; the diff touches the auth middleware."
}'
#State of an approval request (long-poll with wait)
GET/api/v1/incidents/:id/approvals/:approvalId
API key · readMCP incidents_approvals_getReturns 200
| Field | Type | Description |
|---|
idrequiredpath | string | Incident id (inc_…) |
approvalIdrequiredpath | string | max length 80 |
waitquery | integer | Seconds to wait for a decisionmin 0 · max 50 |
curl https://upbutler.com/api/v1/incidents/inc_0n3q9a11v8k2h5n0qzc/approvals/<approvalId> \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Approve or deny an agent's request
POST/api/v1/incidents/:id/approvals/:approvalId/decision
API key · writeREST onlyReturns 200
A person decides. Incident tokens and agent keys cannot call this.
| Field | Type | Description |
|---|
idrequiredpath | string | Incident id (inc_…) |
approvalIdrequiredpath | string | max length 80 |
approverequired | boolean | string | |
note | string | max length 1,000 |
curl -X POST https://upbutler.com/api/v1/incidents/inc_0n3q9a11v8k2h5n0qzc/approvals/<approvalId>/decision \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"approve": {}
}'
#Catch me up: what happened, what was tried, the hypothesis, open tasks
POST/api/v1/incidents/:id/catch-up
API key · writeMCP incidents_catchupReturns 200
A summary for someone joining late, written from the room's timeline with the status page's AI rules. A NEW summary counts as one AI report of the month; the stored one is returned (`cached: true`, nothing counted) until the timeline, the tasks or a decision change. Without AI, or with the quota used up, the answer is built from the records alone (`ai: false`).
| Field | Type | Description |
|---|
idrequiredpath | string | Incident id (inc_…) |
refresh | boolean | string | Try the model again when the stored summary is the record-only one |
curl -X POST https://upbutler.com/api/v1/incidents/inc_0n3q9a11v8k2h5n0qzc/catch-up \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Ask a question about this incident
POST/api/v1/incidents/:id/ask
API key · writeMCP incidents_askReturns 200
Answered from the incident's own context (timeline, evidence, runbooks, tasks) with citations to timeline entries (`citations[].id`). Says so when the context does not hold the answer. One AI report of the month per question; 20 questions per person and hour.
| Field | Type | Description |
|---|
idrequiredpath | string | Incident id (inc_…) |
questionrequired | string | min length 3 · max length 500 |
curl -X POST https://upbutler.com/api/v1/incidents/inc_…/ask \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"question": "Did anyone restart the workers already?"
}'
#Internal pages
#Access settings of a status page (internal pages)
GET/api/v1/pages/:pageId/access
API key · readMCP pages_access_getReturns 200
Who may view an internal page (allowed email domains, invited addresses, workspace members), its shared links (names and hints, never the tokens), allowed networks, which internal sections it shows, and the viewers signed in right now.
| Field | Type | Description |
|---|
pageIdrequiredpath | string | Status page id or slug |
curl https://upbutler.com/api/v1/pages/pg_0n3q8kz0b2fd81mka5e/access \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Change who may view an internal page and what it shows
PUT/api/v1/pages/:pageId/access
API key · writeMCP pages_access_updateReturns 200
Only the given fields change. `domains`: email domains whose verified addresses may sign in (public mailbox providers are refused). `emails`: invited addresses. `ip`: networks in CIDR notation; `grant` lets a request from one of them read the page without signing in, `restrictLinks` makes shared links and tokens work only from them. `sections`: what the page shows beyond a public page. Set the page itself to internal with PATCH /pages/:pageId {"visibility":"internal"}.
| Field | Type | Description |
|---|
pageIdrequiredpath | string | Status page id or slug |
audience | string | team (default): your own people. customer: a private page for one customer; viewers see only what a public page would show for this page (no internal incidents, notes, on-call, claims, monitors…), read-only. Switching applies on the next requestteamcustomer |
members | boolean | Workspace members get in with their dashboard session (default true) |
domains | string[] | max 50 items |
emails | string[] | max 500 items |
google | boolean | Offer "Continue with Google" on the sign-in screen |
sessionDays | integer | Days a viewer session lasts (default 30)min 1 · max 365 |
viewerNotes | boolean | Signed-in viewers may write notes and acknowledge in the incident room |
signInBranding | boolean | Show the page name and logo on the sign-in screen |
ip | object | null | nullable |
ip.cidrs | string[] | max 50 items |
ip.grant | boolean | |
ip.restrictLinks | boolean | |
sections | object | |
sections.internalIncidents | boolean | |
sections.notes | boolean | |
sections.onCall | boolean | |
sections.claims | boolean | |
sections.monitors | boolean | |
sections.diagnostics | boolean | |
sections.suspects | boolean | |
sections.runbooks | boolean | |
sections.upstream | boolean | |
sections.drills | boolean | |
embedOrigins | string[] | Signed embeds: exact https origins (e.g. "https://app.example.com") allowed to frame this page's widget /embed/<slug>. [] = none. The signing secret comes from POST /pages/:pageId/access/embed-secretmax 10 items |
curl -X PUT https://upbutler.com/api/v1/pages/acme-internal/access \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"domains": [
"acme.com"
],
"sections": {
"monitors": true
}
}'
#Create a shared access link / page access token
POST/api/v1/pages/:pageId/access/links
API key · writeMCP pages_access_links_createReturns 201
A long random token, read-only: open `url` on a wallboard or TV (the token moves into a cookie and leaves the address bar), or send it as `Authorization: Bearer <token>` to the page's machine endpoints (status.json, status.agent.json, /mcp). The token is in this response only; UpButler stores its hash.
| Field | Type | Description |
|---|
pageIdrequiredpath | string | Status page id or slug |
namerequired | string | What it is for, e.g. "Office wallboard"max length 80 |
expiresInDays | integer | null | min 1 · max 3,650 · nullable |
scope | string | "feeds": the token opens only the RSS and Atom feeds (…/feed.rss?feed=<token>), never the page. Omit for read access to the whole page.feeds |
curl -X POST https://upbutler.com/api/v1/pages/pg_0n3q8kz0b2fd81mka5e/access/links \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Search API"
}'
#Rotate a shared access link (the old token stops working at once)
POST/api/v1/pages/:pageId/access/links/:linkId/rotate
API key · writeMCP pages_access_links_rotateReturns 200
| Field | Type | Description |
|---|
pageIdrequiredpath | string | Status page id or slug |
linkIdrequiredpath | string | |
curl -X POST https://upbutler.com/api/v1/pages/pg_0n3q8kz0b2fd81mka5e/access/links/<linkId>/rotate \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Delete a shared access link
DELETE/api/v1/pages/:pageId/access/links/:linkId
API key · writeMCP pages_access_links_deleteReturns 200
| Field | Type | Description |
|---|
pageIdrequiredpath | string | Status page id or slug |
linkIdrequiredpath | string | |
curl -X DELETE https://upbutler.com/api/v1/pages/pg_0n3q8kz0b2fd81mka5e/access/links/<linkId> \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Create or rotate the signing secret for signed embeds
POST/api/v1/pages/:pageId/access/embed-secret
API key · writeMCP pages_access_embed_secret_rotateReturns 201
Signed embeds put an internal page's live widget inside another site (your customer's dashboard) without a sign-in. Your server signs a short-lived view token per view: `token = pageId + "." + exp + "." + base64url(HMAC-SHA256(secret, pageId + "." + exp))`, exp in unix seconds, at most 3600 s ahead. Frame `/embed/<slug>?token=<token>` (add `&components=1` for every component); only the origins in embedOrigins (PUT /pages/:pageId/access) may frame it. The secret is in this response only; a new one replaces the old at once.
| Field | Type | Description |
|---|
pageIdrequiredpath | string | Status page id or slug |
curl -X POST https://upbutler.com/api/v1/pages/pg_0n3q8kz0b2fd81mka5e/access/embed-secret \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Turn signed embeds off (tokens signed with the old secret stop working)
DELETE/api/v1/pages/:pageId/access/embed-secret
API key · writeMCP pages_access_embed_secret_deleteReturns 200
| Field | Type | Description |
|---|
pageIdrequiredpath | string | Status page id or slug |
curl -X DELETE https://upbutler.com/api/v1/pages/pg_0n3q8kz0b2fd81mka5e/access/embed-secret \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Sign viewers out of an internal page
POST/api/v1/pages/:pageId/access/viewers/revoke
API key · writeMCP pages_access_viewers_revokeReturns 200
One session (`id` from GET /pages/:pageId/access), every session of an address (`email`), or everyone (`all: true`). Taking a domain or an address off the allow-list already ends its sessions.
| Field | Type | Description |
|---|
pageIdrequiredpath | string | Status page id or slug |
id | string | max length 40 |
email | string | max length 254 |
all | boolean | string | |
curl -X POST https://upbutler.com/api/v1/pages/pg_0n3q8kz0b2fd81mka5e/access/viewers/revoke \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Slack app
#Slack app connection of this workspace
GET/api/v1/slack
API key · readREST onlyReturns 200
Whether the UpButler Slack app is available on this installation, the Slack workspace connected to this UpButler workspace, and the Slack channels that carry incident threads. With it connected, each incident is one message with a thread: updates and incident room notes are posted into the thread, and replies written in Slack appear in the incident room. Without it, Slack alert channels are incoming webhooks (one-way, no threads).
No parameters.
curl https://upbutler.com/api/v1/slack \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Post incident threads into a Slack channel
POST/api/v1/slack/channels
API key · writeREST onlyReturns 201
Invite the app to the channel in Slack first (/invite @UpButler), then pass the channel id (channel name → About → at the bottom). UpButler posts a hello message there and creates the alert channel that carries the incidents.
| Field | Type | Description |
|---|
channelIdrequired | string | Slack channel id, e.g. C0123ABCDEFmin length 7 · max length 24 |
name | string | max length 80 |
curl -X POST https://upbutler.com/api/v1/slack/channels \
-H "Authorization: Bearer $UPBUTLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"channelId": "..."
}'
#Disconnect Slack from this workspace
DELETE/api/v1/slack
API key · writeREST onlyReturns 200
Removes the connection and the alert channels that post through the app. Threads already in Slack stay there; incoming-webhook Slack channels are not touched.
No parameters.
curl -X DELETE https://upbutler.com/api/v1/slack \
-H "Authorization: Bearer $UPBUTLER_API_KEY"
#Dashboard-only
These need a signed-in user session (the dashboard cookie) and aren't available with API keys or over MCP:
- GET
/api/v1/me/workspaces: Workspaces of the signed-in user - POST
/api/v1/me/workspaces: Create another workspace - POST
/api/v1/me/workspaces/:id/switch: Switch the dashboard to another workspace - GET
/api/v1/me/contact: Your paging contact profile - PATCH
/api/v1/me/contact: Update your paging contact profile - GET
/api/v1/me/security: Two-factor status, connected sign-in providers and active sessions - DELETE
/api/v1/me/sessions/:id: Sign out one session - POST
/api/v1/me/sessions/revoke-others: Sign out every other session - POST
/api/v1/me/2fa/setup: Start two-factor enrolment (returns secret, otpauth URI and QR SVG) - POST
/api/v1/me/2fa/enable: Confirm enrolment with a code; returns 10 one-time recovery codes - POST
/api/v1/me/2fa/disable: Turn off two-factor authentication - POST
/api/v1/me/2fa/recovery-codes: Replace all recovery codes (old ones stop working) - DELETE
/api/v1/me/identities/:provider: Disconnect a Google or GitHub sign-in - GET
/api/v1/me/push: Your push devices and the key browsers subscribe with - POST
/api/v1/me/push/devices: Enable push on a device - DELETE
/api/v1/me/push/devices/:id: Remove a push device - POST
/api/v1/me/push/test: Send a test notification to your devices - POST
/api/v1/incidents/:id/room/presence: I have the room open (heartbeat)