Skip to content
Docs/REST API reference

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 URLhttps://upbutler.com/api/v1
AuthAuthorization: Bearer ub_live_… with a read or write scope. Get one from the dashboard or POST /agent/bootstrap
FormatJSON in, JSON out. Send Content-Type: application/json with bodies
Errors{"error": {"code", "message", "hint?", "details?"}}. See Errors
RetriesIdempotency-Key header on POST, replayed for 24 h
Live eventsGET /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)
IDsWherever a pageId is expected, a page slug works too

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.

FieldTypeDescription
agentNamerequiredstringWho you are, e.g. "claude-code" or "deploy-bot"max length 80
workspaceNamestringmax length 80
humanEmailstring (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,}$
Example
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.

FieldTypeDescription
namerequiredstringHuman-friendly name, e.g. "Search API"max length 120
descriptionstring | nullnull or "" clears itmax length 1,000 · nullable
kindstringInferred when omitted: url → http, host+port → tcp, periodSec → heartbeat, an mcp/llm/balance/agent/spend/proxy object → that kindhttptcpdnsheartbeatmanifestscriptbrowsermcpllmbalanceagentspenderror_rateproxy
urlstring (url)http/manifest: URL to check · mcp: MCP endpoint · llm: API base URL · balance: balance endpoint (custom preset)max length 2,000
methodstringGETHEADPOSTPUTPATCHDELETEOPTIONS
headersmap<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
bodystring | nullnull clears itmax length 100,000 · nullable
followRedirectsboolean
expectedStatusstringe.g. "200-299" (default), "200,204", "401"max length 100
keywordstringhttp: response body must contain this textmax length 500
keywordAbsentstringhttp: response body must NOT contain this textmax length 500
degradedAfterMsinteger | nullMark degraded when slower than this (null clears)min 50 · max 120,000 · nullable
sslExpiryDaysinteger | nullMark degraded when the TLS cert expires within N days (null clears)min 1 · max 365 · nullable
hoststringtcp/dns hostmax length 255
portintegermin 1 · max 65,535
recordTypestringAAAAACNAMEMXTXTNS
expectedstring[]dns: values that must be presentmax 20 items
periodSecintegerheartbeat: expected ping interval · agent: a run must start at least this oftenmin 30 · max 2,678,400
graceSecintegerheartbeat: extra time before alertingmin 0 · max 86,400
mcpobjectkind mcp: MCP server check (initialize → tools/list → optional probe call) with schema drift detection
mcp.listPromptsbooleanAlso snapshot prompts/list (default false)
mcp.listResourcesbooleanAlso snapshot resources/list (default false; skip for servers whose resources change all the time)
mcp.probeobject | nullOptional canary tool call after tools/list (null removes it)nullable
mcp.probe.toolrequiredstringTool to call on every check. Pick a read-only, free onemax length 200
mcp.probe.argsmap<string, any>
mcp.probe.expectContainsstringResult text must contain thismax length 500
mcp.probe.expectRegexstringResult text must match this regexmax length 500
mcp.driftStatusstringMonitor status while a breaking schema change is unaccepted (default degraded; none = event only)degradeddownnone
mcp.driftHoldHoursintegerHours until an unaccepted breaking change becomes the new baseline by itself (default 24)min 1 · max 720
mcp.degradedAfterMsinteger | nullDegraded when the whole check is slower than thismin 50 · max 120,000 · nullable
llmobjectkind llm: tiny streamed completion; measures time to first token, classifies 429/529/auth/retired-model errors
llm.apistringopenai = any OpenAI-compatible /chat/completions (default); anthropic = native Messages APIopenaianthropic
llm.modelstringModel id, e.g. "gpt-5-mini". Use the cheapest model that proves the endpoint worksmax length 200
llm.apiKeystringWrite-only. Stored encrypted, never returnedmax length 500
llm.promptstringDefault: "Reply with the single word: pong"max length 2,000
llm.maxTokensintegerOutput cap per check (default 16, max 64)min 1 · max 64
llm.maxTokensParamstringRequest field for the cap; newer OpenAI models need max_completion_tokensmax_tokensmax_completion_tokens
llm.expectContainsstring | nullResponse must contain this (case-insensitive)max length 500 · nullable
llm.expectRegexstring | nullmax length 500 · nullable
llm.degradedTtftMsinteger | nullDegraded when the first token takes longer than thismin 50 · max 120,000 · nullable
llm.degradedTotalMsinteger | nullDegraded when the whole completion takes longer than thismin 50 · max 120,000 · nullable
llm.deprecationDaysintegerDegraded when a Sunset header date is within this many days (default 30)min 0 · max 365
balanceobjectkind balance: credit balance with run-out projection
balance.presetstringopenrouter_credits = account credits (management key); openrouter_key = one key's limit; custom = any JSON endpointopenrouter_creditsopenrouter_keycustom
balance.apiKeystringWrite-only. Sent as "Authorization: Bearer …"; stored encryptedmax length 500
balance.remainingPathstring | nullcustom: JSON path to the remaining amount, e.g. "data.balance"max length 300 · nullable
balance.totalPathstring | nullcustom: JSON path to the total (with usedPath)max length 300 · nullable
balance.usedPathstring | nullcustom: JSON path to the used amount (with totalPath)max length 300 · nullable
balance.unitstringShown next to amounts (default USD)max length 20
balance.minAmountnumber | nullDegraded when the remaining amount is at or below thismin 0 · max 1,000,000,000,000 · nullable
balance.minDaysnumber | nullDegraded when the projected run-out is within this many days (default 7)min 0 · max 365 · nullable
balance.exhaustedAtnumberDown when the remaining amount is at or below this (default 0)min 0 · max 1,000,000,000,000
agentobjectkind 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.periodSecinteger | nullExpect a run to start at least this often (null = no schedule). Same as the top-level periodSecmin 30 · max 2,678,400 · nullable
agent.graceSecintegermin 0 · max 86,400
agent.budgetobject | nullDefault budget per run; a run can bring its own. null clears itnullable
agent.budget.usdnumberSpend in USD, as reported by the agentmax 1,000,000
agent.budget.tokensintegermax 1,000,000,000,000
agent.budget.stepsintegermax 1,000,000
agent.budget.durationSecintegermax 2,592,000
agent.stuckAfterSecintegerNo progress for this long → stuck (default 600)min 30 · max 86,400
agent.overrunFactornumberRunning longer than expectedDurationSec × this → overrun (default 3)min 1 · max 100
agent.loopRepeatsintegerThe same step, or a cycle of up to 4 steps, repeated this many times → loop (default 5)min 2 · max 50
agent.softBudgetPctnumberWarn (degraded) at this share of any budget (default 80)min 1 · max 100
agent.failureRateobjectfailed of the last window finished runs failed (default 3 of 5)
agent.failureRate.failedrequiredintegermin 1 · max 50
agent.failureRate.windowrequiredintegermin 1 · max 50
agent.costSpikeobjectSpend above factor × the median of recent runs (default 3×, needs 5 runs)
agent.costSpike.factorrequirednumbermin 1.1 · max 100
agent.costSpike.minRunsrequiredintegermin 1 · max 20
agent.autoStopstring[]Rules that set the kill switch on their own (default ["budget"])budgetloopoverruncost_spike
agent.abandonAfterSecintegerA run silent for this long is closed as lost (default 3600)min 60 · max 604,800
agent.severitymap<string, string>Per rule: down, degraded or off
agent.stopWebhookUrlstring (url) | nullReceives a signed POST when a run is told to stop, pause, slow down or resumemax length 2,000 · nullable
spendobjectkind 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.sourcesstring[]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.dailyCapUsdnumber | nullDown when today's spend (UTC day) reaches this many dollars. null clears itmax 10,000,000 · nullable
spend.monthlyBudgetUsdnumber | nullDegraded when the month is on course to pass this, down once it has. null clears itmax 10,000,000 · nullable
spend.anomalyobject
spend.anomaly.enabledbooleanFlag spend that is unusual against the trailing baseline of each source (Starter and up; default on)
spend.anomaly.sensitivitynumberHow 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.minUsdnumberNever flag a difference smaller than this many dollars (default 5)min 0 · max 1,000,000
spend.anomaly.baselineDaysintegerDays of history the baseline is taken from (default 14; at least 5 of them must have data)min 7 · max 30
spend.autoStopRunsbooleanWhen 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
errorRateobjectkind 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.providerstringWhere the logs come from: vercel (default), netlify, cloudflare or generic. Only changes the setup steps shown; every supported format is readvercelnetlifycloudflaregeneric
errorRate.secretstring | nullVercel: 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.verifystring | nullValue to answer in the x-vercel-verify response header, when the provider asks for one. null removes itmax length 200 · nullable
errorRate.windowSecintegerWindow the rate is computed over (default 300)min 60 · max 3,600
errorRate.downAtPctnumberError rate in percent at or above which the monitor is down (default 5)min 0.1 · max 100
errorRate.degradedAtPctnumber | nullError rate in percent at or above which the monitor is degraded (default 1; null = no degraded step)min 0.1 · max 100 · nullable
errorRate.minRequestsintegerA window with fewer requests cannot take the monitor down (default 20)min 1 · max 1,000,000
errorRate.statusFromintegerResponses with this status or higher are errors (default 500)min 400 · max 599
errorRate.includestring[]Only count requests whose path starts with one of these, e.g. ["/api/"]max 20 items
errorRate.excludestring[]Leave out requests whose path starts with one of these, e.g. ["/_next/", "/healthz"]max 20 items
errorRate.hostsstring[]Only count requests to these hostnamesmax 20 items
errorRate.includePreviewsbooleanAlso count preview deployments (default false)
proxyobjectkind 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.urlstringA single proxy. Shorthand for proxies: [{ url }]min length 8 · max length 2,000
proxy.proxiesobject[]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[].idstringId of an existing entry, to keep its stored URL on updatemax length 80
proxy.proxies[].namestringmax length 80
proxy.proxies[].urlstringProxy 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[].expectCountrystringThis entry's exit country (overrides expectCountry)pattern ^[A-Za-z]{2}$
proxy.templateobjectA pool from one endpoint and parameter sets (countries, products). Entries from a template come after those in proxies
proxy.template.urlrequiredstringOne 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.variantsrequiredobject[]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.targetstring (url) | nullURL 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.methodstringGETHEAD
proxy.expectedStatusstringe.g. "200-299" (default)max length 100
proxy.keywordstring | nullThe response body must contain this text (null clears)max length 500 · nullable
proxy.samplesintegerRequests per proxy and check (default 1). Rotation and success-rate rules need severalmin 1 · max 20
proxy.minSuccessintegerHow many of the samples must succeed, e.g. 8 of 10 (default: all up to 2 samples, else 80%)min 1 · max 20
proxy.expectCountrystring | nullExit country every proxy must show (ISO code; null clears)pattern ^[A-Za-z]{2}$ · nullable
proxy.exitIpDiffersbooleanThe exit IP must not be the address of the proxy host itself
proxy.minDistinctIpsinteger | nullRotating pools: at least this many different exit IPs among the samples (null clears)min 1 · max 20 · nullable
proxy.maxLatencyMsinteger | nullDegraded when the median request through the proxy is slower (null clears)min 50 · max 120,000 · nullable
proxy.minHealthyPctintegerPool verdict: down when fewer than this share of the proxies is healthy (default 50); degraded while any proxy is failingmin 1 · max 100
codestringscript/browser: test codemax length 50,000
secretsmap<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
viewportobject
viewport.widthrequiredintegermin 320 · max 3,840
viewport.heightrequiredintegermin 240 · max 2,160
assertionsobject[]max 30 items
assertions[].sourcerequiredstringstatuslatencyheaderbodyjsonssl_days
assertions[].pathstringmax length 300
assertions[].oprequiredstringeqneqltltegtgtecontainsnot_containsmatchesexistsnot_exists
assertions[].valuestring | number | booleanmax length 2,000
assertions[].severitystringdowndegraded
intervalSecintegerSeconds between checks (default 60, limited by plan)min 10 · max 86,400
timeoutMsintegerPer-check timeout, up to 180000 (3 min) for slow test endpointsmin 1,000 · max 180,000
failureThresholdintegerConsecutive failures before DOWN (default 2)min 1 · max 10
recoveryThresholdintegermin 1 · max 10
channelIdsstring[]Alert channels. Default: channels marked as defaultmax 50 items
reminderMinutesinteger[]max 10 items
aibooleanAI incident analysis (default true)
tagsstring[]max 20 items
pausedboolean
regionsstring[]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
statusPagestringStatus page slug or id; created (by name) if it does not exist. Omit to only monitor.max length 100
groupstringComponent group on the status page, e.g. "APIs"max length 80
componentNamestringPublic name (defaults to name)max length 100
Example
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}.

FieldTypeDescription
tokenrequiredpathstring
statusstringupdowndegraded
messagestringmax length 500
durationMsintegerHow long the job tookmin 0
Example
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
FieldTypeDescription
tokenrequiredpathstring
statusrequiredstring | boolean | numberoperational | degraded | partial_outage | major_outage | maintenance, or ok/up/fail/down/true/false
messagestringmax length 500
confirmedbooleanSkip blip protection: the sender already confirmed this status
observedAtanyWhen this status was observed; re-sending the same observation does not count as a new confirmation
Example
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.

Example
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.

FieldTypeDescription
emailstring (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,}$
Example
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.

FieldTypeDescription
statequerystringupdowndegradedpendingpaused
tagquerystring
Example
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).

FieldTypeDescription
namerequiredstringHuman-friendly name, e.g. "Search API"max length 120
descriptionstring | nullnull or "" clears itmax length 1,000 · nullable
kindstringInferred when omitted: url → http, host+port → tcp, periodSec → heartbeat, an mcp/llm/balance/agent/spend/proxy object → that kindhttptcpdnsheartbeatmanifestscriptbrowsermcpllmbalanceagentspenderror_rateproxy
urlstring (url)http/manifest: URL to check · mcp: MCP endpoint · llm: API base URL · balance: balance endpoint (custom preset)max length 2,000
methodstringGETHEADPOSTPUTPATCHDELETEOPTIONS
headersmap<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
bodystring | nullnull clears itmax length 100,000 · nullable
followRedirectsboolean
expectedStatusstringe.g. "200-299" (default), "200,204", "401"max length 100
keywordstringhttp: response body must contain this textmax length 500
keywordAbsentstringhttp: response body must NOT contain this textmax length 500
degradedAfterMsinteger | nullMark degraded when slower than this (null clears)min 50 · max 120,000 · nullable
sslExpiryDaysinteger | nullMark degraded when the TLS cert expires within N days (null clears)min 1 · max 365 · nullable
hoststringtcp/dns hostmax length 255
portintegermin 1 · max 65,535
recordTypestringAAAAACNAMEMXTXTNS
expectedstring[]dns: values that must be presentmax 20 items
periodSecintegerheartbeat: expected ping interval · agent: a run must start at least this oftenmin 30 · max 2,678,400
graceSecintegerheartbeat: extra time before alertingmin 0 · max 86,400
mcpobjectkind mcp: MCP server check (initialize → tools/list → optional probe call) with schema drift detection
mcp.listPromptsbooleanAlso snapshot prompts/list (default false)
mcp.listResourcesbooleanAlso snapshot resources/list (default false; skip for servers whose resources change all the time)
mcp.probeobject | nullOptional canary tool call after tools/list (null removes it)nullable
mcp.probe.toolrequiredstringTool to call on every check. Pick a read-only, free onemax length 200
mcp.probe.argsmap<string, any>
mcp.probe.expectContainsstringResult text must contain thismax length 500
mcp.probe.expectRegexstringResult text must match this regexmax length 500
mcp.driftStatusstringMonitor status while a breaking schema change is unaccepted (default degraded; none = event only)degradeddownnone
mcp.driftHoldHoursintegerHours until an unaccepted breaking change becomes the new baseline by itself (default 24)min 1 · max 720
mcp.degradedAfterMsinteger | nullDegraded when the whole check is slower than thismin 50 · max 120,000 · nullable
llmobjectkind llm: tiny streamed completion; measures time to first token, classifies 429/529/auth/retired-model errors
llm.apistringopenai = any OpenAI-compatible /chat/completions (default); anthropic = native Messages APIopenaianthropic
llm.modelstringModel id, e.g. "gpt-5-mini". Use the cheapest model that proves the endpoint worksmax length 200
llm.apiKeystringWrite-only. Stored encrypted, never returnedmax length 500
llm.promptstringDefault: "Reply with the single word: pong"max length 2,000
llm.maxTokensintegerOutput cap per check (default 16, max 64)min 1 · max 64
llm.maxTokensParamstringRequest field for the cap; newer OpenAI models need max_completion_tokensmax_tokensmax_completion_tokens
llm.expectContainsstring | nullResponse must contain this (case-insensitive)max length 500 · nullable
llm.expectRegexstring | nullmax length 500 · nullable
llm.degradedTtftMsinteger | nullDegraded when the first token takes longer than thismin 50 · max 120,000 · nullable
llm.degradedTotalMsinteger | nullDegraded when the whole completion takes longer than thismin 50 · max 120,000 · nullable
llm.deprecationDaysintegerDegraded when a Sunset header date is within this many days (default 30)min 0 · max 365
balanceobjectkind balance: credit balance with run-out projection
balance.presetstringopenrouter_credits = account credits (management key); openrouter_key = one key's limit; custom = any JSON endpointopenrouter_creditsopenrouter_keycustom
balance.apiKeystringWrite-only. Sent as "Authorization: Bearer …"; stored encryptedmax length 500
balance.remainingPathstring | nullcustom: JSON path to the remaining amount, e.g. "data.balance"max length 300 · nullable
balance.totalPathstring | nullcustom: JSON path to the total (with usedPath)max length 300 · nullable
balance.usedPathstring | nullcustom: JSON path to the used amount (with totalPath)max length 300 · nullable
balance.unitstringShown next to amounts (default USD)max length 20
balance.minAmountnumber | nullDegraded when the remaining amount is at or below thismin 0 · max 1,000,000,000,000 · nullable
balance.minDaysnumber | nullDegraded when the projected run-out is within this many days (default 7)min 0 · max 365 · nullable
balance.exhaustedAtnumberDown when the remaining amount is at or below this (default 0)min 0 · max 1,000,000,000,000
agentobjectkind 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.periodSecinteger | nullExpect a run to start at least this often (null = no schedule). Same as the top-level periodSecmin 30 · max 2,678,400 · nullable
agent.graceSecintegermin 0 · max 86,400
agent.budgetobject | nullDefault budget per run; a run can bring its own. null clears itnullable
agent.budget.usdnumberSpend in USD, as reported by the agentmax 1,000,000
agent.budget.tokensintegermax 1,000,000,000,000
agent.budget.stepsintegermax 1,000,000
agent.budget.durationSecintegermax 2,592,000
agent.stuckAfterSecintegerNo progress for this long → stuck (default 600)min 30 · max 86,400
agent.overrunFactornumberRunning longer than expectedDurationSec × this → overrun (default 3)min 1 · max 100
agent.loopRepeatsintegerThe same step, or a cycle of up to 4 steps, repeated this many times → loop (default 5)min 2 · max 50
agent.softBudgetPctnumberWarn (degraded) at this share of any budget (default 80)min 1 · max 100
agent.failureRateobjectfailed of the last window finished runs failed (default 3 of 5)
agent.failureRate.failedrequiredintegermin 1 · max 50
agent.failureRate.windowrequiredintegermin 1 · max 50
agent.costSpikeobjectSpend above factor × the median of recent runs (default 3×, needs 5 runs)
agent.costSpike.factorrequirednumbermin 1.1 · max 100
agent.costSpike.minRunsrequiredintegermin 1 · max 20
agent.autoStopstring[]Rules that set the kill switch on their own (default ["budget"])budgetloopoverruncost_spike
agent.abandonAfterSecintegerA run silent for this long is closed as lost (default 3600)min 60 · max 604,800
agent.severitymap<string, string>Per rule: down, degraded or off
agent.stopWebhookUrlstring (url) | nullReceives a signed POST when a run is told to stop, pause, slow down or resumemax length 2,000 · nullable
spendobjectkind 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.sourcesstring[]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.dailyCapUsdnumber | nullDown when today's spend (UTC day) reaches this many dollars. null clears itmax 10,000,000 · nullable
spend.monthlyBudgetUsdnumber | nullDegraded when the month is on course to pass this, down once it has. null clears itmax 10,000,000 · nullable
spend.anomalyobject
spend.anomaly.enabledbooleanFlag spend that is unusual against the trailing baseline of each source (Starter and up; default on)
spend.anomaly.sensitivitynumberHow 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.minUsdnumberNever flag a difference smaller than this many dollars (default 5)min 0 · max 1,000,000
spend.anomaly.baselineDaysintegerDays of history the baseline is taken from (default 14; at least 5 of them must have data)min 7 · max 30
spend.autoStopRunsbooleanWhen 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
errorRateobjectkind 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.providerstringWhere the logs come from: vercel (default), netlify, cloudflare or generic. Only changes the setup steps shown; every supported format is readvercelnetlifycloudflaregeneric
errorRate.secretstring | nullVercel: 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.verifystring | nullValue to answer in the x-vercel-verify response header, when the provider asks for one. null removes itmax length 200 · nullable
errorRate.windowSecintegerWindow the rate is computed over (default 300)min 60 · max 3,600
errorRate.downAtPctnumberError rate in percent at or above which the monitor is down (default 5)min 0.1 · max 100
errorRate.degradedAtPctnumber | nullError rate in percent at or above which the monitor is degraded (default 1; null = no degraded step)min 0.1 · max 100 · nullable
errorRate.minRequestsintegerA window with fewer requests cannot take the monitor down (default 20)min 1 · max 1,000,000
errorRate.statusFromintegerResponses with this status or higher are errors (default 500)min 400 · max 599
errorRate.includestring[]Only count requests whose path starts with one of these, e.g. ["/api/"]max 20 items
errorRate.excludestring[]Leave out requests whose path starts with one of these, e.g. ["/_next/", "/healthz"]max 20 items
errorRate.hostsstring[]Only count requests to these hostnamesmax 20 items
errorRate.includePreviewsbooleanAlso count preview deployments (default false)
proxyobjectkind 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.urlstringA single proxy. Shorthand for proxies: [{ url }]min length 8 · max length 2,000
proxy.proxiesobject[]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[].idstringId of an existing entry, to keep its stored URL on updatemax length 80
proxy.proxies[].namestringmax length 80
proxy.proxies[].urlstringProxy 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[].expectCountrystringThis entry's exit country (overrides expectCountry)pattern ^[A-Za-z]{2}$
proxy.templateobjectA pool from one endpoint and parameter sets (countries, products). Entries from a template come after those in proxies
proxy.template.urlrequiredstringOne 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.variantsrequiredobject[]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.targetstring (url) | nullURL 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.methodstringGETHEAD
proxy.expectedStatusstringe.g. "200-299" (default)max length 100
proxy.keywordstring | nullThe response body must contain this text (null clears)max length 500 · nullable
proxy.samplesintegerRequests per proxy and check (default 1). Rotation and success-rate rules need severalmin 1 · max 20
proxy.minSuccessintegerHow many of the samples must succeed, e.g. 8 of 10 (default: all up to 2 samples, else 80%)min 1 · max 20
proxy.expectCountrystring | nullExit country every proxy must show (ISO code; null clears)pattern ^[A-Za-z]{2}$ · nullable
proxy.exitIpDiffersbooleanThe exit IP must not be the address of the proxy host itself
proxy.minDistinctIpsinteger | nullRotating pools: at least this many different exit IPs among the samples (null clears)min 1 · max 20 · nullable
proxy.maxLatencyMsinteger | nullDegraded when the median request through the proxy is slower (null clears)min 50 · max 120,000 · nullable
proxy.minHealthyPctintegerPool verdict: down when fewer than this share of the proxies is healthy (default 50); degraded while any proxy is failingmin 1 · max 100
codestringscript/browser: test codemax length 50,000
secretsmap<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
viewportobject
viewport.widthrequiredintegermin 320 · max 3,840
viewport.heightrequiredintegermin 240 · max 2,160
assertionsobject[]max 30 items
assertions[].sourcerequiredstringstatuslatencyheaderbodyjsonssl_days
assertions[].pathstringmax length 300
assertions[].oprequiredstringeqneqltltegtgtecontainsnot_containsmatchesexistsnot_exists
assertions[].valuestring | number | booleanmax length 2,000
assertions[].severitystringdowndegraded
intervalSecintegerSeconds between checks (default 60, limited by plan)min 10 · max 86,400
timeoutMsintegerPer-check timeout, up to 180000 (3 min) for slow test endpointsmin 1,000 · max 180,000
failureThresholdintegerConsecutive failures before DOWN (default 2)min 1 · max 10
recoveryThresholdintegermin 1 · max 10
channelIdsstring[]Alert channels. Default: channels marked as defaultmax 50 items
reminderMinutesinteger[]max 10 items
aibooleanAI incident analysis (default true)
tagsstring[]max 20 items
pausedboolean
regionsstring[]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
Example
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
FieldTypeDescription
idrequiredpathstringMonitor id (mon_...)
checksqueryintegermin 0 · max 200
Example
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.

FieldTypeDescription
idrequiredpathstringMonitor id (mon_...)
namestringHuman-friendly name, e.g. "Search API"max length 120
descriptionstring | nullnull or "" clears itmax length 1,000 · nullable
kindstringInferred when omitted: url → http, host+port → tcp, periodSec → heartbeat, an mcp/llm/balance/agent/spend/proxy object → that kindhttptcpdnsheartbeatmanifestscriptbrowsermcpllmbalanceagentspenderror_rateproxy
urlstring (url)http/manifest: URL to check · mcp: MCP endpoint · llm: API base URL · balance: balance endpoint (custom preset)max length 2,000
methodstringGETHEADPOSTPUTPATCHDELETEOPTIONS
headersmap<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
bodystring | nullnull clears itmax length 100,000 · nullable
followRedirectsboolean
expectedStatusstringe.g. "200-299" (default), "200,204", "401"max length 100
keywordstringhttp: response body must contain this textmax length 500
keywordAbsentstringhttp: response body must NOT contain this textmax length 500
degradedAfterMsinteger | nullMark degraded when slower than this (null clears)min 50 · max 120,000 · nullable
sslExpiryDaysinteger | nullMark degraded when the TLS cert expires within N days (null clears)min 1 · max 365 · nullable
hoststringtcp/dns hostmax length 255
portintegermin 1 · max 65,535
recordTypestringAAAAACNAMEMXTXTNS
expectedstring[]dns: values that must be presentmax 20 items
periodSecintegerheartbeat: expected ping interval · agent: a run must start at least this oftenmin 30 · max 2,678,400
graceSecintegerheartbeat: extra time before alertingmin 0 · max 86,400
mcpobjectkind mcp: MCP server check (initialize → tools/list → optional probe call) with schema drift detection
mcp.listPromptsbooleanAlso snapshot prompts/list (default false)
mcp.listResourcesbooleanAlso snapshot resources/list (default false; skip for servers whose resources change all the time)
mcp.probeobject | nullOptional canary tool call after tools/list (null removes it)nullable
mcp.probe.toolrequiredstringTool to call on every check. Pick a read-only, free onemax length 200
mcp.probe.argsmap<string, any>
mcp.probe.expectContainsstringResult text must contain thismax length 500
mcp.probe.expectRegexstringResult text must match this regexmax length 500
mcp.driftStatusstringMonitor status while a breaking schema change is unaccepted (default degraded; none = event only)degradeddownnone
mcp.driftHoldHoursintegerHours until an unaccepted breaking change becomes the new baseline by itself (default 24)min 1 · max 720
mcp.degradedAfterMsinteger | nullDegraded when the whole check is slower than thismin 50 · max 120,000 · nullable
llmobjectkind llm: tiny streamed completion; measures time to first token, classifies 429/529/auth/retired-model errors
llm.apistringopenai = any OpenAI-compatible /chat/completions (default); anthropic = native Messages APIopenaianthropic
llm.modelstringModel id, e.g. "gpt-5-mini". Use the cheapest model that proves the endpoint worksmax length 200
llm.apiKeystringWrite-only. Stored encrypted, never returnedmax length 500
llm.promptstringDefault: "Reply with the single word: pong"max length 2,000
llm.maxTokensintegerOutput cap per check (default 16, max 64)min 1 · max 64
llm.maxTokensParamstringRequest field for the cap; newer OpenAI models need max_completion_tokensmax_tokensmax_completion_tokens
llm.expectContainsstring | nullResponse must contain this (case-insensitive)max length 500 · nullable
llm.expectRegexstring | nullmax length 500 · nullable
llm.degradedTtftMsinteger | nullDegraded when the first token takes longer than thismin 50 · max 120,000 · nullable
llm.degradedTotalMsinteger | nullDegraded when the whole completion takes longer than thismin 50 · max 120,000 · nullable
llm.deprecationDaysintegerDegraded when a Sunset header date is within this many days (default 30)min 0 · max 365
balanceobjectkind balance: credit balance with run-out projection
balance.presetstringopenrouter_credits = account credits (management key); openrouter_key = one key's limit; custom = any JSON endpointopenrouter_creditsopenrouter_keycustom
balance.apiKeystringWrite-only. Sent as "Authorization: Bearer …"; stored encryptedmax length 500
balance.remainingPathstring | nullcustom: JSON path to the remaining amount, e.g. "data.balance"max length 300 · nullable
balance.totalPathstring | nullcustom: JSON path to the total (with usedPath)max length 300 · nullable
balance.usedPathstring | nullcustom: JSON path to the used amount (with totalPath)max length 300 · nullable
balance.unitstringShown next to amounts (default USD)max length 20
balance.minAmountnumber | nullDegraded when the remaining amount is at or below thismin 0 · max 1,000,000,000,000 · nullable
balance.minDaysnumber | nullDegraded when the projected run-out is within this many days (default 7)min 0 · max 365 · nullable
balance.exhaustedAtnumberDown when the remaining amount is at or below this (default 0)min 0 · max 1,000,000,000,000
agentobjectkind 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.periodSecinteger | nullExpect a run to start at least this often (null = no schedule). Same as the top-level periodSecmin 30 · max 2,678,400 · nullable
agent.graceSecintegermin 0 · max 86,400
agent.budgetobject | nullDefault budget per run; a run can bring its own. null clears itnullable
agent.budget.usdnumberSpend in USD, as reported by the agentmax 1,000,000
agent.budget.tokensintegermax 1,000,000,000,000
agent.budget.stepsintegermax 1,000,000
agent.budget.durationSecintegermax 2,592,000
agent.stuckAfterSecintegerNo progress for this long → stuck (default 600)min 30 · max 86,400
agent.overrunFactornumberRunning longer than expectedDurationSec × this → overrun (default 3)min 1 · max 100
agent.loopRepeatsintegerThe same step, or a cycle of up to 4 steps, repeated this many times → loop (default 5)min 2 · max 50
agent.softBudgetPctnumberWarn (degraded) at this share of any budget (default 80)min 1 · max 100
agent.failureRateobjectfailed of the last window finished runs failed (default 3 of 5)
agent.failureRate.failedrequiredintegermin 1 · max 50
agent.failureRate.windowrequiredintegermin 1 · max 50
agent.costSpikeobjectSpend above factor × the median of recent runs (default 3×, needs 5 runs)
agent.costSpike.factorrequirednumbermin 1.1 · max 100
agent.costSpike.minRunsrequiredintegermin 1 · max 20
agent.autoStopstring[]Rules that set the kill switch on their own (default ["budget"])budgetloopoverruncost_spike
agent.abandonAfterSecintegerA run silent for this long is closed as lost (default 3600)min 60 · max 604,800
agent.severitymap<string, string>Per rule: down, degraded or off
agent.stopWebhookUrlstring (url) | nullReceives a signed POST when a run is told to stop, pause, slow down or resumemax length 2,000 · nullable
spendobjectkind 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.sourcesstring[]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.dailyCapUsdnumber | nullDown when today's spend (UTC day) reaches this many dollars. null clears itmax 10,000,000 · nullable
spend.monthlyBudgetUsdnumber | nullDegraded when the month is on course to pass this, down once it has. null clears itmax 10,000,000 · nullable
spend.anomalyobject
spend.anomaly.enabledbooleanFlag spend that is unusual against the trailing baseline of each source (Starter and up; default on)
spend.anomaly.sensitivitynumberHow 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.minUsdnumberNever flag a difference smaller than this many dollars (default 5)min 0 · max 1,000,000
spend.anomaly.baselineDaysintegerDays of history the baseline is taken from (default 14; at least 5 of them must have data)min 7 · max 30
spend.autoStopRunsbooleanWhen 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
errorRateobjectkind 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.providerstringWhere the logs come from: vercel (default), netlify, cloudflare or generic. Only changes the setup steps shown; every supported format is readvercelnetlifycloudflaregeneric
errorRate.secretstring | nullVercel: 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.verifystring | nullValue to answer in the x-vercel-verify response header, when the provider asks for one. null removes itmax length 200 · nullable
errorRate.windowSecintegerWindow the rate is computed over (default 300)min 60 · max 3,600
errorRate.downAtPctnumberError rate in percent at or above which the monitor is down (default 5)min 0.1 · max 100
errorRate.degradedAtPctnumber | nullError rate in percent at or above which the monitor is degraded (default 1; null = no degraded step)min 0.1 · max 100 · nullable
errorRate.minRequestsintegerA window with fewer requests cannot take the monitor down (default 20)min 1 · max 1,000,000
errorRate.statusFromintegerResponses with this status or higher are errors (default 500)min 400 · max 599
errorRate.includestring[]Only count requests whose path starts with one of these, e.g. ["/api/"]max 20 items
errorRate.excludestring[]Leave out requests whose path starts with one of these, e.g. ["/_next/", "/healthz"]max 20 items
errorRate.hostsstring[]Only count requests to these hostnamesmax 20 items
errorRate.includePreviewsbooleanAlso count preview deployments (default false)
proxyobjectkind 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.urlstringA single proxy. Shorthand for proxies: [{ url }]min length 8 · max length 2,000
proxy.proxiesobject[]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[].idstringId of an existing entry, to keep its stored URL on updatemax length 80
proxy.proxies[].namestringmax length 80
proxy.proxies[].urlstringProxy 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[].expectCountrystringThis entry's exit country (overrides expectCountry)pattern ^[A-Za-z]{2}$
proxy.templateobjectA pool from one endpoint and parameter sets (countries, products). Entries from a template come after those in proxies
proxy.template.urlrequiredstringOne 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.variantsrequiredobject[]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.targetstring (url) | nullURL 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.methodstringGETHEAD
proxy.expectedStatusstringe.g. "200-299" (default)max length 100
proxy.keywordstring | nullThe response body must contain this text (null clears)max length 500 · nullable
proxy.samplesintegerRequests per proxy and check (default 1). Rotation and success-rate rules need severalmin 1 · max 20
proxy.minSuccessintegerHow many of the samples must succeed, e.g. 8 of 10 (default: all up to 2 samples, else 80%)min 1 · max 20
proxy.expectCountrystring | nullExit country every proxy must show (ISO code; null clears)pattern ^[A-Za-z]{2}$ · nullable
proxy.exitIpDiffersbooleanThe exit IP must not be the address of the proxy host itself
proxy.minDistinctIpsinteger | nullRotating pools: at least this many different exit IPs among the samples (null clears)min 1 · max 20 · nullable
proxy.maxLatencyMsinteger | nullDegraded when the median request through the proxy is slower (null clears)min 50 · max 120,000 · nullable
proxy.minHealthyPctintegerPool verdict: down when fewer than this share of the proxies is healthy (default 50); degraded while any proxy is failingmin 1 · max 100
codestringscript/browser: test codemax length 50,000
secretsmap<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
viewportobject
viewport.widthrequiredintegermin 320 · max 3,840
viewport.heightrequiredintegermin 240 · max 2,160
assertionsobject[]max 30 items
assertions[].sourcerequiredstringstatuslatencyheaderbodyjsonssl_days
assertions[].pathstringmax length 300
assertions[].oprequiredstringeqneqltltegtgtecontainsnot_containsmatchesexistsnot_exists
assertions[].valuestring | number | booleanmax length 2,000
assertions[].severitystringdowndegraded
intervalSecintegerSeconds between checks (default 60, limited by plan)min 10 · max 86,400
timeoutMsintegerPer-check timeout, up to 180000 (3 min) for slow test endpointsmin 1,000 · max 180,000
failureThresholdintegerConsecutive failures before DOWN (default 2)min 1 · max 10
recoveryThresholdintegermin 1 · max 10
channelIdsstring[]Alert channels. Default: channels marked as defaultmax 50 items
reminderMinutesinteger[]max 10 items
aibooleanAI incident analysis (default true)
tagsstring[]max 20 items
pausedboolean
regionsstring[]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
Example
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
FieldTypeDescription
idrequiredpathstringMonitor id (mon_...)
Example
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.

FieldTypeDescription
idrequiredpathstringMonitor id (mon_...)
applybooleanFeed the result into the state machine (may open/resolve incidents)
Example
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
FieldTypeDescription
idrequiredpathstringMonitor id (mon_...)
outcomequerystringupdegradeddown
beforequerystring (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))$
limitqueryintegermin 1 · max 500
evidencequeryboolean | string
Example
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
FieldTypeDescription
idrequiredpathstring
Example
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).

FieldTypeDescription
idrequiredpathstringMonitor id (mon_...)
limitqueryintegermin 1 · max 100
Example
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.

FieldTypeDescription
idrequiredpathstringMonitor id (mon_...)
Example
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).

FieldTypeDescription
idrequiredpathstringMonitor id (mon_...)
daysqueryintegermin 1 · max 120
Example
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.

FieldTypeDescription
idrequiredpathstringMonitor id (mon_...)
hoursqueryintegermin 1 · max 168
limitqueryintegermin 1 · max 2,000
Example
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.

Example
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
FieldTypeDescription
idrequiredpathstringMonitor id (mon_...)
hoursqueryintegermin 1 · max 168
Example
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.

FieldTypeDescription
idrequiredpathstringMonitor id (mon_...)
Example
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.

Example
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.

FieldTypeDescription
idrequiredpathstring
minutesrequiredintegermin 1 · max 1,440
reasonstringmax length 300
Example
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
FieldTypeDescription
idrequiredpathstring
Example
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.

Example
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.

FieldTypeDescription
namerequiredstringmax length 100
slugstringpattern ^[a-z0-9](?:[a-z0-9-]{1,46}[a-z0-9])?$
descriptionstringmax length 500
customDomainstring | nullpattern ^(?=.{4,253}$)([a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,63}$ · nullable
accessobject
access.audiencestringInternal 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
visibilitystringpublic = anyone · private = dashboard only · internal = signed-in viewers (email domain, invited address, shared link; see PUT /pages/:id/access)publicprivateinternal
themeobject
theme.presetstringmax length 30
theme.modestringdarklight
theme.accentstringpattern ^#[0-9a-fA-F]{6}$
theme.tokensmap<string, string>
theme.fontSansstringmax length 40
theme.fontMonostringmax length 40
theme.radiusintegermin 0 · max 24
theme.customCssstringmax length 50,000
brandingobject
branding.logoUrlstring | nullmax length 1,000 · nullable
branding.logoDarkUrlstring | nullmax length 1,000 · nullable
branding.logoTextstring | nullmax length 60 · nullable
branding.faviconUrlstring | nullmax length 1,000 · nullable
branding.websiteUrlstring (url) | nullmax length 500 · nullable
branding.supportUrlstring (url) | nullmax length 500 · nullable
branding.headerLinksobject[]max 8 items
branding.headerLinks[].labelrequiredstringmax length 60
branding.headerLinks[].urlrequiredstring (url)max length 500
branding.footerLinksobject[]max 20 items
branding.footerLinks[].labelrequiredstringmax length 60
branding.footerLinks[].urlrequiredstring (url)max length 500
branding.footerTextstring | nullmax length 300 · nullable
branding.hidePoweredBybooleanSwitch the "Powered by UpButler" badge off. Plans where the branding is optional (Pro and up); Free and Starter always show it
branding.showPoweredBybooleanWhite-label plans (Business) show no UpButler branding by default; true switches the badge on
branding.poweredByStylestringWhen 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
settingsobject
settings.uptimeDaysintegermin 7 · max 90
settings.showUptimePercentboolean
settings.showResponseTimesbooleanAllow public response-time charts (components opt in with showResponseTimes)
settings.languagestringPublic page + subscriber email language; auto = visitor Accept-Languageautoendefresitptnlelpltrja
settings.autoIncidentsboolean
settings.autoIncidentReviewbooleanAutomatic 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.incidentMinStatusstringLowest component status that opens an automatic incidentdegradedpartial_outagemajor_outage
settings.aiPublicUpdatesboolean
settings.aiGuidelinesstringRules for AI-written public text, e.g. "Never mention internal infrastructure"max length 2,000
settings.aiAvoidTermsstring[]AI public text containing any of these is replaced by a neutral templatemax 50 items
settings.subscriptionsobject
settings.subscriptions.emailboolean
settings.subscriptions.webhookboolean
settings.subscriptions.slackboolean
settings.subscriptions.rssboolean
settings.timezonestringmax length 60
settings.agentPolicyobjectOverrides 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.defaultmap<string, string>
settings.agentPolicy.componentsmap<string, object>
settings.userReportsobject"Report a problem" button and widget. On for new pages; only the given fields change
settings.userReports.enabledbooleanShow the "Report a problem" button and accept reports
settings.userReports.originsstring[]Origins that may embed the widget and POST reports, besides the status page itself, e.g. https://app.acme.commax 20 items
settings.userReports.minReportersintegerDistinct reporters within the window that make a signal (default 3)min 1 · max 50
settings.userReports.windowMinutesintegerSliding window in minutes (default 10)min 2 · max 120
settings.userReports.collectEmailbooleanOffer an optional email field for one "fixed" email
settings.userReports.escalateUnconfirmedbooleanUnconfirmed signals (users report problems, checks are green) also start the escalation policy, including agent responders
settings.userReports.shareEmailsWithAgentsbooleanInclude reporter emails in the agent responder packet (default false)
settings.userReports.aiSummarybooleanAI summaries of reports in the team inbox
settings.userReports.showFirstReportedPubliclybooleanAdd 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.analyticsobjectStatus page analytics (views, visitors, agent reads; no cookies, no IPs stored). On by default; {"enabled": false} stops counting
settings.analytics.enabledrequiredboolean
settings.searchPingbooleanTell 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
seoobject
seo.titlestringmax length 120
seo.descriptionstringmax length 300
seo.noindexboolean
Example
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
FieldTypeDescription
pageIdrequiredpathstringStatus page id (pg_...) or slug
Example
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
FieldTypeDescription
namestringmax length 100
slugstringpattern ^[a-z0-9](?:[a-z0-9-]{1,46}[a-z0-9])?$
descriptionstringmax length 500
customDomainstring | nullpattern ^(?=.{4,253}$)([a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,63}$ · nullable
accessobject
access.audiencestringInternal 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
visibilitystringpublic = anyone · private = dashboard only · internal = signed-in viewers (email domain, invited address, shared link; see PUT /pages/:id/access)publicprivateinternal
themeobject
theme.presetstringmax length 30
theme.modestringdarklight
theme.accentstringpattern ^#[0-9a-fA-F]{6}$
theme.tokensmap<string, string>
theme.fontSansstringmax length 40
theme.fontMonostringmax length 40
theme.radiusintegermin 0 · max 24
theme.customCssstringmax length 50,000
brandingobject
branding.logoUrlstring | nullmax length 1,000 · nullable
branding.logoDarkUrlstring | nullmax length 1,000 · nullable
branding.logoTextstring | nullmax length 60 · nullable
branding.faviconUrlstring | nullmax length 1,000 · nullable
branding.websiteUrlstring (url) | nullmax length 500 · nullable
branding.supportUrlstring (url) | nullmax length 500 · nullable
branding.headerLinksobject[]max 8 items
branding.headerLinks[].labelrequiredstringmax length 60
branding.headerLinks[].urlrequiredstring (url)max length 500
branding.footerLinksobject[]max 20 items
branding.footerLinks[].labelrequiredstringmax length 60
branding.footerLinks[].urlrequiredstring (url)max length 500
branding.footerTextstring | nullmax length 300 · nullable
branding.hidePoweredBybooleanSwitch the "Powered by UpButler" badge off. Plans where the branding is optional (Pro and up); Free and Starter always show it
branding.showPoweredBybooleanWhite-label plans (Business) show no UpButler branding by default; true switches the badge on
branding.poweredByStylestringWhen 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
settingsobject
settings.uptimeDaysintegermin 7 · max 90
settings.showUptimePercentboolean
settings.showResponseTimesbooleanAllow public response-time charts (components opt in with showResponseTimes)
settings.languagestringPublic page + subscriber email language; auto = visitor Accept-Languageautoendefresitptnlelpltrja
settings.autoIncidentsboolean
settings.autoIncidentReviewbooleanAutomatic 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.incidentMinStatusstringLowest component status that opens an automatic incidentdegradedpartial_outagemajor_outage
settings.aiPublicUpdatesboolean
settings.aiGuidelinesstringRules for AI-written public text, e.g. "Never mention internal infrastructure"max length 2,000
settings.aiAvoidTermsstring[]AI public text containing any of these is replaced by a neutral templatemax 50 items
settings.subscriptionsobject
settings.subscriptions.emailboolean
settings.subscriptions.webhookboolean
settings.subscriptions.slackboolean
settings.subscriptions.rssboolean
settings.timezonestringmax length 60
settings.agentPolicyobjectOverrides 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.defaultmap<string, string>
settings.agentPolicy.componentsmap<string, object>
settings.userReportsobject"Report a problem" button and widget. On for new pages; only the given fields change
settings.userReports.enabledbooleanShow the "Report a problem" button and accept reports
settings.userReports.originsstring[]Origins that may embed the widget and POST reports, besides the status page itself, e.g. https://app.acme.commax 20 items
settings.userReports.minReportersintegerDistinct reporters within the window that make a signal (default 3)min 1 · max 50
settings.userReports.windowMinutesintegerSliding window in minutes (default 10)min 2 · max 120
settings.userReports.collectEmailbooleanOffer an optional email field for one "fixed" email
settings.userReports.escalateUnconfirmedbooleanUnconfirmed signals (users report problems, checks are green) also start the escalation policy, including agent responders
settings.userReports.shareEmailsWithAgentsbooleanInclude reporter emails in the agent responder packet (default false)
settings.userReports.aiSummarybooleanAI summaries of reports in the team inbox
settings.userReports.showFirstReportedPubliclybooleanAdd 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.analyticsobjectStatus page analytics (views, visitors, agent reads; no cookies, no IPs stored). On by default; {"enabled": false} stops counting
settings.analytics.enabledrequiredboolean
settings.searchPingbooleanTell 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
seoobject
seo.titlestringmax length 120
seo.descriptionstringmax length 300
seo.noindexboolean
pageIdrequiredpathstringStatus page id (pg_...) or slug
Example
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
FieldTypeDescription
pageIdrequiredpathstringStatus page id (pg_...) or slug
Example
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).

FieldTypeDescription
pageIdrequiredpathstringStatus page id (pg_...) or slug
Example
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
FieldTypeDescription
pageIdrequiredpathstringStatus page id (pg_...) or slug
Example
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
FieldTypeDescription
pageIdrequiredpathstringStatus page id (pg_...) or slug
groupsrequiredobject[]
groups[].idstring
groups[].namerequiredstringmax length 80
groups[].descriptionstringmax length 300
groups[].collapsedboolean
Example
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
FieldTypeDescription
pageIdrequiredpathstringStatus page id (pg_...) or slug
statusquerystringpendingactiveunsubscribeddisabled
limitqueryintegermin 1 · max 1,000
Example
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.

FieldTypeDescription
pageIdrequiredpathstringStatus page id (pg_...) or slug
rangequerystring24h (rolling, hourly), 7d (default, 6-hour buckets), 30d (daily) or max (the plan history window)24h7d30dmax
Example
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).

FieldTypeDescription
pageIdrequiredpathstringStatus page id (pg_...) or slug
rangequerystringIncidents that started, ended or are open in this window (default 30d)24h7d30dmax
incidentIdquerystringOne incident, with its five-minute view series
limitqueryintegermin 1 · max 100
Example
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.

FieldTypeDescription
pageIdrequiredpathstringStatus page id (pg_...) or slug
Example
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
FieldTypeDescription
idrequiredpathstring
Example
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).

FieldTypeDescription
pageIdrequiredpathstringStatus page id (pg_...) or slug
namerequiredstringmax length 100
keystringStable machine key used by pushes and manifests (default: slug of name)pattern ^[a-z0-9][a-z0-9_.-]{0,62}$
descriptionstringmax length 500
groupstringGroup name or id; created if it does not existmax length 80
monitorIdsstring[]Status follows these monitorsmax 20 items
aggregatestringworstmajorityredundant
pushbooleanStatus is pushed via the component push URL
pushTtlSecinteger | nullBecome "unknown" when no push arrives for this long (null clears it)min 60 · max 604,800 · nullable
manualbooleanSwitch the component to manual status (set via overrides/incidents)
manifestobjectStatus read from a manifest monitor key
manifest.monitorIdrequiredstring
manifest.keyrequiredstringmax length 120
upstreamobject | nullThird-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.servicerequiredstringmax length 60
upstream.componentsstring[]max 10 items
showUptimeboolean
showResponseTimesbooleanPublic response-time chart (monitor-backed components only; page setting showResponseTimes must be on)
hiddenboolean
internalOnlybooleanShow only on an internal page, to signed-in viewers; hidden from every public surface
orderintegermin 0 · max 10,000
confirmationsintegerPush/manifest: consecutive fresh bad reports before a worse status shows (default 2; 1 = immediate)min 1 · max 10
gatestring | 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
incidentTitlestring | nullWith autoPublish: title of its automatic incidents, customer-facing (null clears it).max length 120 · nullable
recoveryConfirmationsintegerPush/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
autoPublishbooleanPublish 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).
notifySubscribersbooleanEmail (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).
Example
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
FieldTypeDescription
idrequiredpathstring
namestringmax length 100
keystringStable machine key used by pushes and manifests (default: slug of name)pattern ^[a-z0-9][a-z0-9_.-]{0,62}$
descriptionstringmax length 500
groupstringGroup name or id; created if it does not existmax length 80
monitorIdsstring[]Status follows these monitorsmax 20 items
aggregatestringworstmajorityredundant
pushbooleanStatus is pushed via the component push URL
pushTtlSecinteger | nullBecome "unknown" when no push arrives for this long (null clears it)min 60 · max 604,800 · nullable
manualbooleanSwitch the component to manual status (set via overrides/incidents)
manifestobjectStatus read from a manifest monitor key
manifest.monitorIdrequiredstring
manifest.keyrequiredstringmax length 120
upstreamobject | nullThird-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.servicerequiredstringmax length 60
upstream.componentsstring[]max 10 items
showUptimeboolean
showResponseTimesbooleanPublic response-time chart (monitor-backed components only; page setting showResponseTimes must be on)
hiddenboolean
internalOnlybooleanShow only on an internal page, to signed-in viewers; hidden from every public surface
orderintegermin 0 · max 10,000
confirmationsintegerPush/manifest: consecutive fresh bad reports before a worse status shows (default 2; 1 = immediate)min 1 · max 10
gatestring | 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
incidentTitlestring | nullWith autoPublish: title of its automatic incidents, customer-facing (null clears it).max length 120 · nullable
recoveryConfirmationsintegerPush/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
autoPublishbooleanPublish 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).
notifySubscribersbooleanEmail (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).
Example
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
FieldTypeDescription
idrequiredpathstring
Example
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.

FieldTypeDescription
idrequiredpathstring
statusrequiredstring | nulloperationaldegradedpartial_outagemajor_outagemaintenancenullable
reasonstringmax length 300
Example
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.

FieldTypeDescription
pageIdrequiredpathstringStatus page id (pg_...) or slug
statusesrequiredmap<string, any>
Example
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
FieldTypeDescription
openqueryboolean | stringOnly unresolved
kindquerystringincidentmaintenance
pageIdquerystring
monitorIdquerystring
limitqueryintegermin 1 · max 200
Example
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
FieldTypeDescription
idrequiredpathstring
Example
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.

FieldTypeDescription
titlerequiredstringmax length 200
messagerequiredstringFirst public updatemax length 10,000
statusstringinvestigatingidentifiedmonitoring
impactstringnoneminormajorcritical
pageIdsstring[]max 20 items
componentsobject[]Affected components and their status during the incidentmax 200 items
components[].componentIdrequiredstring
components[].statusrequiredstringoperationaldegradedpartial_outagemajor_outagemaintenance
publicbooleanShow on status pages (default: true when pages/components are given)
polishboolean
notifybooleanNotify subscribers (default true)
Example
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.

FieldTypeDescription
idrequiredpathstring
messagerequiredstringmax length 10,000
statusstringinvestigatingidentifiedmonitoringresolvedscheduledin_progresscompleted
componentsobject[]Affected components and their status during the incidentmax 200 items
components[].componentIdrequiredstring
components[].statusrequiredstringoperationaldegradedpartial_outagemajor_outagemaintenance
publicbooleanfalse = internal note (not shown or sent to subscribers)
polishboolean
notifyboolean
Example
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.

FieldTypeDescription
idrequiredpathstring
impactstringnoneminormajorcritical
titlestringmax length 200
publishbooleanPublish a draft automatic incident to its status pages
Example
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.

FieldTypeDescription
idrequiredpathstring
messagestringmax length 10,000
polishboolean
Example
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
FieldTypeDescription
idrequiredpathstring
Example
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.

FieldTypeDescription
titlerequiredstringmax length 200
messagerequiredstringmax length 10,000
scheduledStartrequiredany
scheduledEndrequiredany
pageIdsstring[]max 20 items
componentIdsstring[]max 200 items
notifyboolean
Example
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.

FieldTypeDescription
idrequiredpathstringIncident id (inc_…) or monitor id (mon_…)
notestringe.g. "Looking into it, rolling back deploy"max length 1,000
Example
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.

FieldTypeDescription
idrequiredpathstring
Example
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.

FieldTypeDescription
idrequiredpathstring
modestringtemplate = return an unsaved fill-in-the-blanks draft without using AIaitemplate
Example
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.

FieldTypeDescription
idrequiredpathstring
historyqueryboolean | string
Example
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.

FieldTypeDescription
idrequiredpathstring
markdownrequiredstringmax length 60,000
publicSummarystringCustomer-safe text used by publishmax length 5,000
baseVersionintegermin 1
Example
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.

FieldTypeDescription
idrequiredpathstring
bodystringmax length 10,000
notifyboolean
Example
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.

Example
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
FieldTypeDescription
namerequiredstringShown in the "Use template" pickermax length 80
kindstringDefault incidentincidentmaintenance
titlerequiredstringIncident title; placeholders allowedmax length 200
statusstringinvestigatingidentifiedmonitoringresolvedscheduledin_progresscompleted
impactstringnoneminormajorcriticalmaintenance
bodyrequiredstringUpdate text. Placeholders: {{component}}, {{duration}}, {{status_page}}, {{title}}max length 10,000
componentIdsstring[]Components affected by defaultmax 200 items
componentStatusstringStatus the default components get (default partial_outage)operationaldegradedpartial_outagemajor_outagemaintenance
orderintegermin 0 · max 10,000
Example
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
FieldTypeDescription
idrequiredpathstring
namestringShown in the "Use template" pickermax length 80
kindstringDefault incidentincidentmaintenance
titlestringIncident title; placeholders allowedmax length 200
statusstringinvestigatingidentifiedmonitoringresolvedscheduledin_progresscompleted
impactstringnoneminormajorcriticalmaintenance
bodystringUpdate text. Placeholders: {{component}}, {{duration}}, {{status_page}}, {{title}}max length 10,000
componentIdsstring[]Components affected by defaultmax 200 items
componentStatusstringStatus the default components get (default partial_outage)operationaldegradedpartial_outagemajor_outagemaintenance
orderintegermin 0 · max 10,000
Example
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
FieldTypeDescription
idrequiredpathstring
Example
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.

FieldTypeDescription
idrequiredpathstring
incidentIdstring
componentIdsstring[]max 200 items
Example
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.

FieldTypeDescription
idrequiredpathstring"me" with a responder key; otherwise the responder id (agr_…) or its exact name
waitqueryintegerSeconds to wait for a page (default 30 over REST, 50 over MCP; max 60)min 0 · max 60
packetquerystringfull = the whole handoff packet (REST default) · summary = the essentials, fetch the rest with incidents_packet (MCP default)fullsummary
acceptquerystringComma-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
Example
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).

FieldTypeDescription
idrequiredpathstring"me" with a responder key, else the responder id
pageIdrequiredpathstring
Example
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.

FieldTypeDescription
idrequiredpathstringIncident id (inc_…)
Example
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.

FieldTypeDescription
idrequiredpathstringIncident id (inc_…)
notestringe.g. "Looking at the 14:02 deploy"max length 500
Example
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.

FieldTypeDescription
idrequiredpathstringIncident id (inc_…)
Example
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.

FieldTypeDescription
idrequiredpathstringIncident id (inc_…)
messagerequiredstringmax length 10,000
actionstringShort label of the action taken, e.g. "restarted pod", "rolled back 1.4.2"max length 80
Example
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.

FieldTypeDescription
idrequiredpathstringIncident id (inc_…)
messagerequiredstringmax length 10,000
statusstringinvestigatingidentifiedmonitoring
Example
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.

FieldTypeDescription
idrequiredpathstring
draftIdrequiredpathstring
messagestringEdited text (default: the draft as written)max length 10,000
notifybooleanNotify subscribers (default true)
Example
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
FieldTypeDescription
idrequiredpathstring
draftIdrequiredpathstring
Example
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.

FieldTypeDescription
idrequiredpathstringIncident id (inc_…)
Example
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.

FieldTypeDescription
idrequiredpathstringIncident id (inc_…)
reasonrequiredstringWhat you found and why a human is neededmax length 1,000
Example
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.

FieldTypeDescription
idrequiredpathstringIncident id (inc_…)
minutesrequiredintegermin 1 · max 1,440
monitorIdsstring[]Subset of the incident's monitors (default: all of them)max 50 items
reasonstringmax length 300
Example
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.

FieldTypeDescription
idrequiredpathstringIncident id (inc_…)
Example
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.

FieldTypeDescription
idrequiredpathstringIncident id (inc_…)
responderIdstringWhich fix responder (default: the one already on the incident, else the first)
notestringShown on the timeline next to the requestmax length 500
Example
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"
  }'
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.

FieldTypeDescription
idrequiredpathstringIncident id (inc_…)
urlrequiredstring (url)Pull request URL, e.g. https://github.com/acme/shop/pull/213max length 500
numberintegerPR number (default: read from the URL)max 1,000,000,000
branchstringHead branch, e.g. upbutler/fix-inc_…max length 200
titlestringmax length 200
summarystringWhat was wrong and what the change does; shown on the timelinemax length 4,000
revertbooleantrue = the pull request is nothing but a git revert of one commit
mergeCommitstringSHA of the merge commit, once known; makes matching the deploy exactmax length 40
Example
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.

FieldTypeDescription
idrequiredpathstringIncident id (inc_…)
Example
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.

FieldTypeDescription
idrequiredpathstringIncident id (inc_…)
Example
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.

FieldTypeDescription
idrequiredpathstringIncident id (inc_…)
actionstringstop (default) = end the run · pause = wait and keep polling · slow_down = keep going, wait delaySec between stepsstoppauseslow_down
reasonstringShown to the agent and on the timelinemax length 500
delaySecintegerslow_down: seconds between steps (default 30)min 1 · max 3,600
runIdsstring[]Default: every flagged run of the incident's agent monitorsmax 100 items
Example
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.

Example
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.

FieldTypeDescription
namerequiredstringmax length 80
typerequiredstringemailwebhookslackdiscordtelegramteamspagerdutyopsgeniepush
emailsstring (email)[]email: recipientsmax 20 items
urlstring (url)webhook/slack/discord: URL · teams: the webhook URL of a Workflows flowmax length 2,000
headersmap<string, string>webhook: extra headers
botTokenstringtelegram: bot tokenmax length 200
chatIdstringtelegram: chat idmax length 100
integrationKeystringpagerduty: Events API v2 integration key (routing key) · opsgenie: API key of an API integration. Write-onlymin length 16 · max length 200
regionstringpagerduty: us (default) or eu service region · opsgenie: us, eu, or jsm for Jira Service Management Operationsuseujsm
webhookSecretstring | nullpagerduty: 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
userIdsstring[]push: members to notify; empty = every member with push enabled on a devicemax 100 items
threadsbooleandiscord: the webhook points at a forum channel. Each incident becomes one post there and its updates and incident room notes go into that post
eventsstring[]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
isDefaultbooleanAttach to new monitors automatically (default true)
enabledboolean
Example
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
FieldTypeDescription
idrequiredpathstring
namestringmax length 80
typestringemailwebhookslackdiscordtelegramteamspagerdutyopsgeniepush
emailsstring (email)[]email: recipientsmax 20 items
urlstring (url)webhook/slack/discord: URL · teams: the webhook URL of a Workflows flowmax length 2,000
headersmap<string, string>webhook: extra headers
botTokenstringtelegram: bot tokenmax length 200
chatIdstringtelegram: chat idmax length 100
integrationKeystringpagerduty: Events API v2 integration key (routing key) · opsgenie: API key of an API integration. Write-onlymin length 16 · max length 200
regionstringpagerduty: us (default) or eu service region · opsgenie: us, eu, or jsm for Jira Service Management Operationsuseujsm
webhookSecretstring | nullpagerduty: 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
userIdsstring[]push: members to notify; empty = every member with push enabled on a devicemax 100 items
threadsbooleandiscord: the webhook points at a forum channel. Each incident becomes one post there and its updates and incident room notes go into that post
eventsstring[]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
isDefaultbooleanAttach to new monitors automatically (default true)
enabledboolean
rotateSecretboolean
Example
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
FieldTypeDescription
idrequiredpathstring
Example
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
FieldTypeDescription
idrequiredpathstring
Example
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.

FieldTypeDescription
slugrequiredpathstring
historyqueryboolean | stringInclude the per-day uptime bars (uptimeDays of them: up to 90, fewer on plans with a shorter history window; large; default false)
Example
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
FieldTypeDescription
slugrequiredpathstring
limitqueryintegermin 1 · max 100
beforequerystring (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))$
Example
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
FieldTypeDescription
slugrequiredpathstring
idrequiredpathstring
Example
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).

FieldTypeDescription
slugrequiredpathstring
typerequiredstringtelegram: the answer carries telegramUrl (and telegramGroupUrl), a one-time link to UpButler's bot, valid 15 minutes: open it and press Startemailwebhookslackdiscordtelegram
emailstring (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,}$
urlstring (url)max length 1,000
componentsstring[]Component ids or keys; omit for everythingmax 200 items
agentstringName of the subscribing agent (shown to the page owner)max length 80
incidentstringIncident id: only that incident's updates, until it is resolved ("subscribe to this incident")max length 60
languagestringEmail language (en, de, fr, es, it, pt, nl, el, pl, tr, ja); default = page language or Accept-Languagemax length 10
Example
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
FieldTypeDescription
idrequiredpathstring
tokenrequiredquerystring
Example
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
FieldTypeDescription
idrequiredpathstring
tokenrequiredstring
componentsrequiredstring[]Component ids or keys; [] = everythingmax 200 items
Example
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
FieldTypeDescription
idrequiredpathstring
tokenrequiredquerystring
Example
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.

FieldTypeDescription
slugrequiredpathstring
componentrequiredpathstringComponent key or id
rangequerystring24h (default), 7d or 30d24h7d30d
Example
curl "https://upbutler.com/api/v1/public/pages/fetchlayer/components/api/response-times?range=7d"

What a "report a problem" form needs: components and a proof-of-work challenge

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.

FieldTypeDescription
slugrequiredpathstring
langquerystringLanguage of the form strings; default = page language, or Accept-Language on pages set to automax length 10
Example
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.

FieldTypeDescription
slugrequiredpathstring
componentstringComponent key or id; omit for "something else"max length 80
messagestringWhat happened, in the user's words (plain text)max length 500
emailstringOptional: gets one email when the related incident is resolvedmax length 254
languagestringmax length 10
challengestringmax length 200
solutionstringmax length 20
websitestringLeave empty (honeypot)max length 200
reporterobjectOptional 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.idrequiredstringmax length 128
reporter.signaturerequiredstringpattern ^[0-9a-fA-F]{64}$
Example
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
FieldTypeDescription
idrequiredpathstring
tokenrequiredquerystring
Example
curl -X DELETE "https://upbutler.com/api/v1/public/reports/id_.../email?token=..."

Workspace

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.

Example
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.

Example
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
FieldTypeDescription
namerequiredstringmax length 80
Example
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.

Example
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
FieldTypeDescription
emailrequiredstring (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,}$
rolestringadminmember
Example
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
FieldTypeDescription
idrequiredpathstring
Example
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
FieldTypeDescription
userIdrequiredpathstring
Example
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.

Example
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.

FieldTypeDescription
namerequiredstringmax length 80
scopesstring[]readwrite
agentstringName of the agent using this key, e.g. "deploy-bot"max length 80
expiresInDaysintegermin 1 · max 3,650
Example
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
FieldTypeDescription
idrequiredpathstring
Example
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
FieldTypeDescription
require2farequiredboolean
Example
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).

FieldTypeDescription
actionquerystringmax length 60
actorIdquerystringmax length 60
fromqueryany
toqueryany
beforequerystringmax length 60
limitqueryintegermin 1 · max 200
Example
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.

Example
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.

FieldTypeDescription
idrequiredpathstring
Example
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).

FieldTypeDescription
afterquerystringReturn events after this id, oldest first
typesquerystringComma-separated event types, e.g. "monitor.down,monitor.up"
limitqueryintegermin 1 · max 500
Example
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.

Example
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.

FieldTypeDescription
planrequiredstringstarterprobusiness
intervalstringmonthyear
Example
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.

Example
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.

FieldTypeDescription
planquerystringTarget plan (default free)freestarterprobusiness
Example
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.

FieldTypeDescription
sourcerequiredstringWhere to import fromuptimerobotbetterstackstatuspage
apiKeystringUptimeRobot 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
pageIdstringStatuspage.io page id (with apiKey)max length 100
urlstringStatuspage.io: any public status page URL (no key needed), e.g. https://www.githubstatus.commax length 500
monitorsbooleanImport monitors and heartbeats (default true)
channelsbooleanImport alert contacts as alert channels (default true)
pagesbooleanImport status pages, groups and components (default true)
incidentsbooleanStatuspage.io: import past incidents and maintenance (default true)
mirrorbooleanStatuspage.io: add a manifest monitor that keeps mirroring their components.json (default false)
targetPageIdstringImport components into this existing status page instead of creating one
excludestring[]Refs from the preview ("monitor:123") to leave outmax 2000 items
Example
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.

FieldTypeDescription
sourcerequiredstringWhere to import fromuptimerobotbetterstackstatuspage
apiKeystringUptimeRobot 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
pageIdstringStatuspage.io page id (with apiKey)max length 100
urlstringStatuspage.io: any public status page URL (no key needed), e.g. https://www.githubstatus.commax length 500
monitorsbooleanImport monitors and heartbeats (default true)
channelsbooleanImport alert contacts as alert channels (default true)
pagesbooleanImport status pages, groups and components (default true)
incidentsbooleanStatuspage.io: import past incidents and maintenance (default true)
mirrorbooleanStatuspage.io: add a manifest monitor that keeps mirroring their components.json (default false)
targetPageIdstringImport components into this existing status page instead of creating one
excludestring[]Refs from the preview ("monitor:123") to leave outmax 2000 items
Example
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
FieldTypeDescription
idrequiredpathstringImport job id (imp_...)
Example
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
FieldTypeDescription
limitqueryintegermin 1 · max 100
Example
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.

FieldTypeDescription
scheduleIdquerystring
Example
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
FieldTypeDescription
daysqueryintegerInclude upcoming shifts for this many daysmin 0 · max 42
Example
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
FieldTypeDescription
idrequiredpathstring
daysqueryintegerDefault 14min 1 · max 42
Example
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
FieldTypeDescription
namerequiredstringmax length 80
timezonerequiredstringIANA timezone, e.g. "Europe/Berlin"max length 64
handoffDayrequiredintegerHandoff weekday: 0 = Monday … 6 = Sundaymin 0 · max 6
handoffTimerequiredstringLocal handoff time "HH:MM" (24h)pattern ^\d{1,2}:\d{2}$
participantsrequiredstring[]Ordered member user ids (or agent responder ids, agr_…); each is on call for one weekmax 50 items
startDaystringLocal date whose rotation week the first participant takes (default: the current week)pattern ^\d{4}-\d{2}-\d{2}$
Example
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
FieldTypeDescription
idrequiredpathstring
namestringmax length 80
timezonestringIANA timezone, e.g. "Europe/Berlin"max length 64
handoffDayintegerHandoff weekday: 0 = Monday … 6 = Sundaymin 0 · max 6
handoffTimestringLocal handoff time "HH:MM" (24h)pattern ^\d{1,2}:\d{2}$
participantsstring[]Ordered member user ids (or agent responder ids, agr_…); each is on call for one weekmax 50 items
startDaystringLocal date whose rotation week the first participant takes (default: the current week)pattern ^\d{4}-\d{2}-\d{2}$
Example
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
FieldTypeDescription
idrequiredpathstring
Example
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.

FieldTypeDescription
idrequiredpathstring
userIdrequiredstring
startrequiredany
endrequiredany
notestringmax length 200
Example
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
FieldTypeDescription
idrequiredpathstring
overrideIdrequiredpathstring
Example
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.

Example
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.

Example
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.

FieldTypeDescription
namerequiredstringmax length 80
isDefaultbooleanUse for incidents no monitor/page-specific policy claims (the first policy becomes default)
monitorIdsstring[]max 250 items
pageIdsstring[]max 20 items
levelsrequiredobject[]max 10 items
levels[].afterMinutesrequiredintegerWait after the previous level (ignored for level 1)min 0 · max 1,440
levels[].targetsrequiredobject[]max 20 items
levels[].targets[].typerequired"channel"
levels[].targets[].idrequiredstringAlert channel id
repeatintegerRepeat the whole chain this many times while unacknowledgedmin 0 · max 5
repeatAfterMinutesintegermin 1 · max 1,440
Example
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
FieldTypeDescription
idrequiredpathstring
namestringmax length 80
isDefaultbooleanUse for incidents no monitor/page-specific policy claims (the first policy becomes default)
monitorIdsstring[]max 250 items
pageIdsstring[]max 20 items
levelsobject[]max 10 items
levels[].afterMinutesrequiredintegerWait after the previous level (ignored for level 1)min 0 · max 1,440
levels[].targetsrequiredobject[]max 20 items
levels[].targets[].typerequired"channel"
levels[].targets[].idrequiredstringAlert channel id
repeatintegerRepeat the whole chain this many times while unacknowledgedmin 0 · max 5
repeatAfterMinutesintegermin 1 · max 1,440
Example
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
FieldTypeDescription
idrequiredpathstring
Example
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.

Example
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.

FieldTypeDescription
namerequiredstringName 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 ._-]*$
Example
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
FieldTypeDescription
idrequiredpathstringPrivate probe id (prv-...)
namerequiredstringName 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 ._-]*$
Example
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.

FieldTypeDescription
idrequiredpathstringPrivate probe id (prv-...)
Example
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.

FieldTypeDescription
idrequiredpathstringPrivate probe id (prv-...)
Example
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.

FieldTypeDescription
versionstringRelease version or tag, e.g. "1.4.2"max length 100
commitstringCommit SHA (shown shortened)max length 80
urlstring (url)Link to the release, CI run or PRmax length 2,000
environmentstringe.g. "production", "staging"max length 40
descriptionstringmax length 2,000
servicestringService name; monitors tagged or named like this are linked automaticallymax length 120
branchstringGit branchmax length 200
printegerPull request numbermax 1,000,000,000
authorstringWho shipped itmax length 120
providerstringWhere it was deployed, e.g. "vercel", "fly"max length 40
repostringGitHub 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}$
providerRefobjectThe provider's own project and deployment ids (deploy hooks fill this in); used by Roll back
providerRef.projectIdstringmax length 120
providerRef.deploymentIdstringmax length 120
providerRef.teamIdstringmax length 120
providerRef.rollbackboolean
monitorIdsstring[]Limit the deploy to these monitors (default: whole workspace)max 100 items
monitorIdstringmax length 60
pageIdstringLimit the deploy to one status pagemax length 60
pageIdsstring[]max 100 items
atstring (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)))$
Example
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.

FieldTypeDescription
monitorIdquerystring
pageIdquerystring
incidentIdquerystring
environmentquerystring
sincequerystring (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)))$
untilquerystring (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)))$
limitqueryintegermin 1 · max 500
Example
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
FieldTypeDescription
idrequiredpathstring
Example
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".

FieldTypeDescription
statusquerystringwatchingregressionclearcancelled
limitqueryintegermin 1 · max 100
Example
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.

FieldTypeDescription
deployIdstringAn existing deploy marker (dep_…)
deployobjectRecord the deploy now, e.g. {"version":"1.4.2","commit":"abc1234"}
deploy.versionstringRelease version or tag, e.g. "1.4.2"max length 100
deploy.commitstringCommit SHA (shown shortened)max length 80
deploy.urlstring (url)Link to the release, CI run or PRmax length 2,000
deploy.environmentstringe.g. "production", "staging"max length 40
deploy.descriptionstringmax length 2,000
deploy.servicestringService name; monitors tagged or named like this are linked automaticallymax length 120
deploy.branchstringGit branchmax length 200
deploy.printegerPull request numbermax 1,000,000,000
deploy.authorstringWho shipped itmax length 120
deploy.providerstringWhere it was deployed, e.g. "vercel", "fly"max length 40
deploy.repostringGitHub 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.providerRefobjectThe provider's own project and deployment ids (deploy hooks fill this in); used by Roll back
deploy.providerRef.projectIdstringmax length 120
deploy.providerRef.deploymentIdstringmax length 120
deploy.providerRef.teamIdstringmax length 120
deploy.providerRef.rollbackboolean
deploy.monitorIdsstring[]Limit the deploy to these monitors (default: whole workspace)max 100 items
deploy.monitorIdstringmax length 60
deploy.pageIdstringLimit the deploy to one status pagemax length 60
deploy.pageIdsstring[]max 100 items
deploy.atstring (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)))$
monitorIdsstring[]max 100 items
componentIdsstring[]Watch the monitors behind these componentsmax 100 items
minutesintegermin 1 · max 120
callbackUrlstring (url)Receives the signed verdictmax length 2,000
Example
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.

FieldTypeDescription
idrequiredpathstring
Example
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
FieldTypeDescription
idrequiredpathstring
Example
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.

Example
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.

FieldTypeDescription
namestringLabel, e.g. "Vercel production"max length 80
servicestringPer-service hook: treat every delivery as a deploy of this project, whatever the payload namesmax length 120
productionEnvironmentsstring[]Environment names that count as production when the provider doesn't say (default production, prod, live, main)max 10 items
includePreviewsbooleanAlso mark and guard preview / staging deploys (default false)
guardobjectDeploy guard started on each production deploy (default on, 10 minutes)
guard.enabledboolean
guard.minutesintegermin 1 · max 120
secretsmap<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.
Example
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.

FieldTypeDescription
hookIdquerystring
outcomequerystringacceptedignoredrejectedpreview
limitqueryintegermin 1 · max 200
Example
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
FieldTypeDescription
idrequiredpathstring
Example
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.

FieldTypeDescription
idrequiredpathstring
namestringLabel, e.g. "Vercel production"max length 80
servicestring | nullmax length 120 · nullable
productionEnvironmentsstring[]Environment names that count as production when the provider doesn't say (default production, prod, live, main)max 10 items
includePreviewsbooleanAlso mark and guard preview / staging deploys (default false)
guardobjectDeploy guard started on each production deploy (default on, 10 minutes)
guard.enabledboolean
guard.minutesintegermin 1 · max 120
secretsmap<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.
Example
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.

FieldTypeDescription
idrequiredpathstring
Example
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
FieldTypeDescription
idrequiredpathstring
Example
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.

Example
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).

FieldTypeDescription
projectquerystringmax length 120
urlquerystringA public URL of the deployed site, to match http monitors by domainmax length 2,000
Example
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.

FieldTypeDescription
projectrequiredpathstringProject / service / site / repository name as the provider sends it (case-insensitive). "*" = the workspace defaultmax length 120
monitorIdsstring[]Monitors to watch after a deploy of this projectmax 200 items
componentIdsstring[]Status page components; their monitors are watchedmax 100 items
tagsstring[]Watch every monitor carrying one of these tagsmax 20 items
guardbooleanfalse = record the deploy marker but start no guard
minutesintegerGuard window for this projectmin 1 · max 120
Example
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
FieldTypeDescription
projectrequiredpathstring
Example
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.

Example
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.

FieldTypeDescription
enabledbooleanRun checks against preview deploys reported by a deploy hook (default true)
monitorIdsstring[]Only run these monitors. Empty = automatic: the HTTP monitors mapped to the deployed project on its production domainmax 200 items
excludestring[]Monitors never run against a preview (the monitor tag "no-preview" does the same)max 200 items
sendHeadersbooleanSend the monitors' stored request headers (API keys, cookies) to previews. Default false: a preview runs unreviewed pull request code
allowedHostsstring[]Extra preview hosts to trust, besides the provider pattern bound to the project: "*.preview.acme.dev", "acme-*.vercel.app"max 30 items
urlTemplatestring | nullWhere 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
vercelBypassSecretstring | nullVercel "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
githubobjectReport the verdict as a GitHub commit status on the pull request
github.tokenstring | nullFine-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.contextstringName of the commit status (default "UpButler / preview")max length 100
Example
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.

FieldTypeDescription
prqueryinteger
commitquerystringpattern ^[0-9a-fA-F]{7,64}$
branchquerystringmax length 200
projectquerystringmax length 120
statequerystringpendingpassfailerror
limitqueryintegermin 1 · max 200
Example
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.

FieldTypeDescription
urlrequiredstring (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
projectstringProject / service name as in the deploy mappings; picks the monitors and binds the hostmax length 120
commitstringCommit SHA (the full 40 characters to get a GitHub commit status)max length 80
branchstringmax length 200
printegerPull request numbermax 1,000,000,000
repostringGitHub 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}$
waitboolean | stringWait for the verdict (default true; false returns the queued run at once)
Example
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.

FieldTypeDescription
idrequiredpathstringA run id (pvr_…) or "latest"max length 60
prqueryintegerPull request number (with id "latest")
commitquerystringCommit SHA or a prefix of it (with id "latest")pattern ^[0-9a-fA-F]{7,64}$
branchquerystringBranch name (with id "latest")max length 200
projectquerystringmax length 120
Example
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).

FieldTypeDescription
idrequiredpathstringmax length 60
Example
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.

FieldTypeDescription
idrequiredpathstringA failing preview run (pvr_…)max length 60
responderIdstringWhich Fix with Claude responder (default: the one that opened the pull request, else the first)max length 120
Example
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.

FieldTypeDescription
idrequiredpathstringmax length 60
tokenrequiredstringmin length 20 · max length 600
outcomerequiredstringstartedpushednot_confidentfailed
commitstringThe commit pushed to the pull request branch (with outcome "pushed")pattern ^[0-9a-fA-F]{7,64}$
summarystringCause and fix, or what was ruled out. No secretsmax length 4,000
Example
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.

Example
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.

FieldTypeDescription
subscribedboolean
timezonestringmax length 60
Example
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.

FieldTypeDescription
periodstringlast_weeklast_7_days
aiboolean
formatstringjsonhtml
Example
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.

FieldTypeDescription
periodquerystringlast_7_dayslast_weektrial
Example
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.

Example
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.

FieldTypeDescription
idrequiredpathstringResponder id (agr_…), or "me" with a responder key
Example
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.

FieldTypeDescription
namerequiredstringShown on incident timelines, e.g. "Claude"max length 80
descriptionstringmax length 500
enabledboolean
deliveryrequiredobject
delivery.presetstringPush: 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.urlstring (url)Where the page is POSTed (push presets; not used for pull)max length 2,000
delivery.headersmap<string, string | null>Extra request headers, e.g. {"authorization":"Bearer …"}. Stored encrypted; never returned
delivery.bodyTemplatestring | nullJSON 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
ackTimeoutMinutesintegerNo claim within this time → the next escalation level is paged (default 5)min 1 · max 120
maxConcurrentIncidentsintegerSkipped when already working on this many incidents (default 3)min 1 · max 50
allowedActionsstring[]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
publicUpdatesstringdirect = publishes to the status page · draft = a human approves first (default) · nonedirectdraftnone
verifyWindowMinutesintegerResolving needs a passing verify at most this old (default 10)min 1 · max 120
leaseMinutesintegerClaim lease; the agent renews it while working (default 15)min 2 · max 120
Example
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.

FieldTypeDescription
idrequiredpathstring
namestringShown on incident timelines, e.g. "Claude"max length 80
descriptionstringmax length 500
enabledboolean
ackTimeoutMinutesintegerNo claim within this time → the next escalation level is paged (default 5)min 1 · max 120
maxConcurrentIncidentsintegerSkipped when already working on this many incidents (default 3)min 1 · max 50
allowedActionsstring[]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
publicUpdatesstringdirect = publishes to the status page · draft = a human approves first (default) · nonedirectdraftnone
verifyWindowMinutesintegerResolving needs a passing verify at most this old (default 10)min 1 · max 120
leaseMinutesintegerClaim lease; the agent renews it while working (default 15)min 2 · max 120
deliveryobject
delivery.presetstringPush: 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.urlstring (url)Where the page is POSTed (push presets; not used for pull)max length 2,000
delivery.headersmap<string, string | null>Extra request headers, e.g. {"authorization":"Bearer …"}. Stored encrypted; never returned
delivery.bodyTemplatestring | nullJSON 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
rotateSecretboolean
rotateKeyboolean
Example
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.

FieldTypeDescription
idrequiredpathstring
Example
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.

FieldTypeDescription
idrequiredpathstring
Example
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.

Example
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
FieldTypeDescription
targetrequiredpathstring"default" (workspace), a monitor id (mon_…) or a component id (cmp_…)
Example
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.

FieldTypeDescription
targetrequiredpathstring"default", mon_… or cmp_…
markdownrequiredstringmax length 20,000
titlestringmax length 120
Example
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
FieldTypeDescription
targetrequiredpathstring
Example
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.

Example
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.

FieldTypeDescription
maxAttemptsPerDayinteger | nullmin 0 · max 1,000,000 · nullable
fixFailingPreviewsboolean
Example
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.

FieldTypeDescription
projectstringProject (default "*": the whole workspace)max length 120
reporequiredstringGitHub repository: owner/name or its github.com URLmin length 3 · max length 200
defaultBranchstringDefault branch pull requests are opened against (default main)pattern ^[A-Za-z0-9._/-]{1,200}$
Example
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
FieldTypeDescription
projectrequiredpathstringProject name, or "*" (URL-encoded %2A) for the default
Example
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.

FieldTypeDescription
deliveryrequiredquerystringgithub_actionslocalroutine
repoquerystringGitHub repository: owner/name or its github.com URLmin length 3 · max length 200
claudeAuthquerystringGitHub Actions: Claude API key (default) or a Claude subscription token from `claude setup-token`api_keyoauth
githubAuthquerystringGitHub Actions: the workflow's own GITHUB_TOKEN (default) or the Claude GitHub Apptokenapp
Example
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.

FieldTypeDescription
deliveryrequiredstringgithub_actionslocalroutine
responderIdstringReconfigure this responder instead of creating one
namestringShown on timelines (default "Claude")max length 80
repostringGitHub repository: owner/name or its github.com URLmin length 3 · max length 200
defaultBranchstringDefault branch pull requests are opened against (default main)pattern ^[A-Za-z0-9._/-]{1,200}$
projectstringLink the repo to this project instead of the whole workspacemax length 120
githubTokenstringgithub_actions: fine-grained token that may send repository_dispatch to the repo. Write-onlymin length 20 · max length 400
routineUrlstring (url)routine: https://api.anthropic.com/v1/claude_code/routines/trig_…/firemax length 300
routineTokenstringroutine: the trigger token (sk-ant-oat01-…). Write-onlymin length 20 · max length 400
claudeAuthstringapi_keyoauth
githubAuthstringtokenapp
autoMergeRevertsbooleanAllow the agent to merge its own pull request when it is a pure revert (default false: people merge)
maxAttemptsPerIncidentintegerAutomatic fix attempts per incident (default 1)min 1 · max 5
autoPagebooleanCreate a default escalation policy "agent first, then your alert channels" when the workspace has none (default true)
Example
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).

FieldTypeDescription
idrequiredpathstring
enabledboolean
autoMergeRevertsboolean
maxAttemptsPerIncidentintegermin 1 · max 5
Example
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).

FieldTypeDescription
responderIdrequiredstring
Example
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.

FieldTypeDescription
tokenstringIngest token of the agent monitor (ar_…). Or send it as "Authorization: Bearer ar_…". Not needed with an API keymax length 100
monitorstringWith an API key: the agent monitor (id or name). Created when it does not exist. Default: the agent namemax length 120
agentstringWhich agent this is, e.g. "triage-bot". Runs of a fleet share one monitor and differ by agentmax length 80
runIdstringYour own id for this run. Starting twice with the same one returns the same run (safe to retry)max length 120
taskstringWhat the run is doing, in a sentence. Shown in alerts and to respondersmax length 500
budgetobjectHard limits for this run: usd, tokens, steps, durationSec
budget.usdnumberSpend in USD, as reported by the agentmax 1,000,000
budget.tokensintegermax 1,000,000,000,000
budget.stepsintegermax 1,000,000
budget.durationSecintegermax 2,592,000
expectedDurationSecintegermin 1 · max 2,592,000
metadatamap<string, any>Small JSON object kept with the run (max 4 KB)
Example
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.

FieldTypeDescription
stepstring | numberStep label ("search") or counter (12). Labels count as one step each; a number sets the step countmax length 120
messagestringmax length 500
statusstringThe agent's own state label, e.g. "planning"max length 60
usdnumberSpend since the last ping (added to the total)min 0 · max 100,000
tokensintegerTokens since the last ping (added to the total)min 0 · max 10,000,000,000
toolCallsstring[] | integerTool names called in this step, or just how manymax 50 items · min 0 · max 10,000
fingerprintstringWhat 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
totalsobjectRunning totals instead of deltas, for agents that already keep them
totals.usdnumbermin 0
totals.tokensintegermin 0
totals.stepsintegermin 0
idrequiredpathstringRun token (rt_…) from runs.start, or the run id with an API key
Example
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.

FieldTypeDescription
idrequiredpathstringRun token (rt_…) or the run id with an API key
Example
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.

FieldTypeDescription
idrequiredpathstringRun token (rt_…) or the run id with an API key
statusstringDefault successsuccessfailedcancelled
summarystringmax length 2,000
errorstringmax length 2,000
usdnumberFinal spend not reported yetmin 0 · max 100,000
tokensintegermin 0 · max 10,000,000,000
Example
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
FieldTypeDescription
idrequiredpathstringAgent monitor id
statusquerystringflagged = running with an active detectionrunningflaggedsuccessfailedcancelledstoppedlost
agentquerystringmax length 80
limitqueryintegermin 1 · max 200
beforequerystringRun id to page from (nextBefore of the previous page)
summaryqueryboolean | stringInclude the fleet summary (default true)
Example
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).

FieldTypeDescription
idrequiredpathstringRun id (run_…)
Example
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.

FieldTypeDescription
idrequiredpathstringRun id (run_…)
actionstringstop (default) = end the run · pause = wait and keep polling · slow_down = keep going, wait delaySec between stepsstoppauseslow_down
reasonstringShown to the agent and on the timelinemax length 500
delaySecintegerslow_down: seconds between steps (default 30)min 1 · max 3,600
Example
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.

FieldTypeDescription
idrequiredpathstring
Example
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
FieldTypeDescription
idrequiredpathstringAgent monitor id
actionstringstop (default) = end the run · pause = wait and keep polling · slow_down = keep going, wait delaySec between stepsstoppauseslow_down
reasonstringShown to the agent and on the timelinemax length 500
delaySecintegerslow_down: seconds between steps (default 30)min 1 · max 3,600
onlyFlaggedboolean | stringOnly runs with an active detection (default false: all running runs)
Example
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.

FieldTypeDescription
idrequiredpathstring
Example
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.

FieldTypeDescription
configanyThe parsed upbutler.yaml (schema: /schemas/upbutler.yaml.json)
yamlstringThe file as YAML text, instead of configmax length 400,000
dryRunboolean | stringReturn the diff without changing anything
pruneboolean | stringDelete resources of this project that are no longer in the file (default false)
Example
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.

FieldTypeDescription
projectquerystringProject id to write (default: the one already in use, else the workspace name)pattern ^[a-z0-9][a-z0-9_.-]{0,62}$
Example
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.

Example
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.

FieldTypeDescription
providerrequiredstringHosting providervercelnetlify
tokenrequiredstringAPI token. Stored encrypted and never returned by any endpointmin length 8 · max length 500
teamIdstringVercel only: team id (team_…) or slug the projects live in. Needed for full-account tokensmax length 120
Example
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.

FieldTypeDescription
providerrequiredpathstringvercelnetlify
Example
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.

FieldTypeDescription
providerrequiredpathstringvercelnetlify
projectsrequiredobject[]max 200 items
projects[].servicerequiredstringProject / service name as your deploy markers carry itmax length 120
projects[].projectIdrequiredstringThe provider's project (Vercel) or site (Netlify) idmax length 120
Example
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.

FieldTypeDescription
providerrequiredpathstringvercelnetlify
Example
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.

FieldTypeDescription
rollbackbooleanShow "Roll back" on alerts that follow a deploy
fixbooleanShow "Let Claude fix" on alerts
mutebooleanShow "Mute 1h" on alerts
rollbackRequiresSignInbooleanOnly signed-in members can confirm a rollback from any alert link. Links delivered through webhook channels always need a sign-in
fixSetupHintbooleanShow "Set up Claude fixes" on the first alerts while no Fix-with-Claude responder exists
Example
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.

FieldTypeDescription
idrequiredpathstring
previewquerybooleanAlso ask the hosting provider which deployment a rollback would restore
Example
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.

FieldTypeDescription
idrequiredpathstring
Example
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.

FieldTypeDescription
idrequiredpathstringMonitor id (mon_…)
minutesqueryintegerHow far back to look (default 60, at most 2880)min 5 · max 2,880
Example
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.

FieldTypeDescription
idrequiredpathstringMonitor id (mon_…)
Example
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.

FieldTypeDescription
pageIdrequiredpathstringStatus page id (pg_...) or slug
statusquerystringnewknownnoise
componentquerystringComponent id or key; "other" = reports without a component
signalIdquerystring
limitqueryintegermin 1 · max 500
beforequerystring (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))$
Example
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.

FieldTypeDescription
pageIdrequiredpathstringStatus page id (pg_...) or slug
reportIdrequiredpathstring
statusrequiredstringnewknownnoise
Example
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
FieldTypeDescription
pageIdrequiredpathstringStatus page id (pg_...) or slug
reportIdquerystring
emailquerystring (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,}$
Example
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.

FieldTypeDescription
pageIdrequiredpathstringStatus page id (pg_...) or slug
signalIdrequiredpathstring
statusrequiredstringknownnoise
Example
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.

FieldTypeDescription
pageIdrequiredpathstringStatus page id (pg_...) or slug
rotateboolean
Example
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.

FieldTypeDescription
pageIdrequiredpathstringStatus page id (pg_...) or slug
signalIdstring
componentstringComponent id or key, or "other"
Example
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.

FieldTypeDescription
daysqueryintegerDays of history (default 30)min 7 · max 90
Example
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.

Example
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.

FieldTypeDescription
providerrequiredstringopenai, anthropic, openrouter or vercelopenaianthropicopenroutervercel
namestringShown on the Spend page and in alerts (default: the provider name)max length 80
keyrequiredstringAdmin / management key of the provider account. Read-only use (cost reports). Stored encrypted and never returned by any endpointmin length 8 · max length 500
teamIdstringVercel: team id (team_…) or slugmax length 120
Example
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
FieldTypeDescription
idrequiredpathstringSpend source id (sps_...)
namestringmax length 80
keystringReplace the stored keymin length 8 · max length 500
teamIdstring | nullmax length 120 · nullable
enabledbooleanfalse stops polling; the history stays
Example
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.

FieldTypeDescription
idrequiredpathstringSpend source id (sps_...)
Example
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.

FieldTypeDescription
idrequiredpathstringSpend source id (sps_...)
Example
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.

FieldTypeDescription
servicerequiredpathstringCatalog slug or name: "openai", "stripe", "claude", "aws". List them with upstream_listmax length 60
componentquerystringOne 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
componentsqueryboolean | stringInclude every component, not only the non-operational ones (default false)
historyqueryboolean | stringInclude finished incidents of the last 90 days (default false)
Example
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.

FieldTypeDescription
qquerystringName filter, e.g. "open"max length 60
categoryquerystringaicloudhostingdatadevtoolsemailauthpaymentscommsmediasearchobservabilityautomationproductivitycmsplatformsscraping
problemsqueryboolean | stringOnly services that are not operational right now
limitqueryintegerPage size (default 200)min 1 · max 200
offsetqueryintegermin 0
Example
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.

FieldTypeDescription
servicerequiredpathstringCatalog slug or name: "openai", "stripe", "claude", "aws". List them with upstream_listmax length 60
emailrequiredstringmin length 3 · max length 254
componentstringOnly incidents that affect this component (slug)max length 80
websitestringLeave empty (spam trap)max length 200
Example
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.

Example
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.

FieldTypeDescription
servicerequiredpathstringCatalog slug or name: "openai", "stripe", "claude", "aws". List them with upstream_listmax length 60
componentsstring[]Upstream component names that matter; omit for the whole servicemax 20 items
monitorIdsstring[]Only these monitors depend on it; omit for every monitormax 200 items
componentIdsstring[]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
scopestringA 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
publicAttributionbooleanAllow 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
notifyobject | nullUpstream outage alerts for this dependency, even while your own monitors are green. Omit to keep the stored setting; null turns it offnullable
notify.enabledbooleanSend upstream.incident when this service opens, updates or resolves an incident (default off)
notify.channelIdsstring[]Channels that get it. Empty = every channel that accepts upstream.incidentmax 50 items
notify.maintenancebooleanAlso announce scheduled maintenance (default false)
Example
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
FieldTypeDescription
servicerequiredpathstringCatalog slug or name: "openai", "stripe", "claude", "aws". List them with upstream_listmax length 60
scopequerystringWhich entry, when the service is declared in several scopesmax length 63
Example
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.

FieldTypeDescription
policyrequiredstringinformpagequiet
Example
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.

FieldTypeDescription
envstring[]Environment variable names, e.g. ["STRIPE_SECRET_KEY","OPENAI_API_KEY"]max 500 items
npmstring[]max 1000 items
pythonstring[]max 1000 items
Example
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.

Example
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.

FieldTypeDescription
scenariorequiredstringdown = 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
monitorIdsstring[]Monitors the synthetic incident is about. Their real state, history and status-page components are never touchedmax 20 items
componentIdsstring[]Status-page components: the drill runs on the monitors behind them. The components themselves keep their statusmax 20 items
responderIdsstring[]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
includeHumansbooleanDefault 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
channelIdsstring[]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
fixstringFix 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
timeoutMinutesintegerThe drill ends by itself after this long (default 15)min 2 · max 120
recoverAfterSecintegerScenarios that heal by themselves (down, degraded, slow) do so after this many seconds (default 120)min 0 · max 3,600
Example
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
FieldTypeDescription
limitqueryintegermin 1 · max 100
Example
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.

FieldTypeDescription
idrequiredpathstringDrill id (drl_…) or the id of its incident
Example
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.

FieldTypeDescription
idrequiredpathstringDrill id (drl_…) or the id of its incident
Example
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.

Example
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.

FieldTypeDescription
namerequiredstringe.g. "Monthly game day"max length 80
cadencerequiredstringweekly, monthly (first chosen weekday of the month) or quarterlyweeklymonthlyquarterly
scenariosrequiredstring[]One scenario, or several: each run takes the next one in turndowndegradedslowbad_deployupstream_outagerunaway_runmax 6 items
monitorIdsrequiredstring[]max 20 items
responderIdsstring[]max 5 items
includeHumansboolean
fixstringdry_rundraft_pr
timeoutMinutesintegermin 2 · max 120
hourintegerHour of day in the workspace timezone (default 10)min 0 · max 23
weekdayinteger1 = Monday … 7 = Sunday (default 2, Tuesday)min 1 · max 7
enabledboolean
Example
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
FieldTypeDescription
idrequiredpathstring
namestringe.g. "Monthly game day"max length 80
cadencestringweekly, monthly (first chosen weekday of the month) or quarterlyweeklymonthlyquarterly
scenariosstring[]One scenario, or several: each run takes the next one in turndowndegradedslowbad_deployupstream_outagerunaway_runmax 6 items
monitorIdsstring[]max 20 items
responderIdsstring[]max 5 items
includeHumansboolean
fixstringdry_rundraft_pr
timeoutMinutesintegermin 2 · max 120
hourintegerHour of day in the workspace timezone (default 10)min 0 · max 23
weekdayinteger1 = Monday … 7 = Sunday (default 2, Tuesday)min 1 · max 7
enabledboolean
Example
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
FieldTypeDescription
idrequiredpathstring
Example
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.

FieldTypeDescription
pageIdrequiredpathstringStatus page id or slug
limitqueryintegermin 1 · max 100
Example
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.

FieldTypeDescription
pageIdrequiredpathstringStatus page id or slug
periodstring"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]))$
Example
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
FieldTypeDescription
idrequiredpathstring
Example
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.

Example
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.

FieldTypeDescription
idrequiredpathstringAttestation id (att_…)
Example
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.

FieldTypeDescription
slugrequiredpathstring
daysqueryintegermin -9,007,199,254,740,991
Example
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.

Example
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).

FieldTypeDescription
idrequiredpathstringInstallation id, from GET /githubpattern ^\d{1,20}$
checkRunsboolean | string
commitStatusboolean | string
prCommentsboolean | string
deploySourceboolean | string
Example
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.

FieldTypeDescription
idrequiredpathstringInstallation id, from GET /githubpattern ^\d{1,20}$
Example
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.

FieldTypeDescription
idrequiredpathstringInstallation id, from GET /githubpattern ^\d{1,20}$
uninstallqueryboolean | stringAlso uninstall the app on GitHub (default false)
Example
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.

FieldTypeDescription
idrequiredpathstringIncident id (inc_…)
sincequerystringThe `sig` of your last readmax length 120
waitqueryintegerSeconds to wait for a change when `since` still matchesmin 0 · max 50
Example
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.

FieldTypeDescription
idrequiredpathstringIncident id (inc_…)
messagerequiredstringmax length 10,000
linksobject[]max 10 items
links[].urlrequiredstring (url)max length 1,000
links[].labelstringmax length 120
sharebooleanAlso post to the alerted chat channels
actionstringShort label of what was done, e.g. "restarted pod"max length 80
Example
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
FieldTypeDescription
idrequiredpathstringIncident id (inc_…)
entryIdrequiredstringId of a timeline update or notemax length 80
reactionrequiredstringeyescheck
Example
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.

FieldTypeDescription
idrequiredpathstringIncident id (inc_…)
rolerequiredpathstringcommandercommsops
assigneerequiredstring | nullUser id, agent responder id, or nullmax length 80 · nullable
Example
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.

FieldTypeDescription
idrequiredpathstringIncident id (inc_…)
textrequiredstringmin length 2 · max length 300
Example
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.

FieldTypeDescription
idrequiredpathstringIncident id (inc_…)
taskIdrequiredpathstringmax length 80
donerequiredboolean | string
Example
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
FieldTypeDescription
idrequiredpathstringIncident id (inc_…)
taskIdrequiredpathstringmax length 80
Example
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.

FieldTypeDescription
idrequiredpathstringIncident id (inc_…)
titlerequiredstringWhat you want to do, e.g. "Roll back api to 1.4.1"min length 3 · max length 200
detailstringWhy, and what it changesmax length 2,000
expiresInMinutesintegerDefault 30min 1 · max 1,440
Example
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
FieldTypeDescription
idrequiredpathstringIncident id (inc_…)
approvalIdrequiredpathstringmax length 80
waitqueryintegerSeconds to wait for a decisionmin 0 · max 50
Example
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.

FieldTypeDescription
idrequiredpathstringIncident id (inc_…)
approvalIdrequiredpathstringmax length 80
approverequiredboolean | string
notestringmax length 1,000
Example
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`).

FieldTypeDescription
idrequiredpathstringIncident id (inc_…)
refreshboolean | stringTry the model again when the stored summary is the record-only one
Example
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.

FieldTypeDescription
idrequiredpathstringIncident id (inc_…)
questionrequiredstringmin length 3 · max length 500
Example
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.

FieldTypeDescription
pageIdrequiredpathstringStatus page id or slug
Example
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"}.

FieldTypeDescription
pageIdrequiredpathstringStatus page id or slug
audiencestringteam (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
membersbooleanWorkspace members get in with their dashboard session (default true)
domainsstring[]max 50 items
emailsstring[]max 500 items
googlebooleanOffer "Continue with Google" on the sign-in screen
sessionDaysintegerDays a viewer session lasts (default 30)min 1 · max 365
viewerNotesbooleanSigned-in viewers may write notes and acknowledge in the incident room
signInBrandingbooleanShow the page name and logo on the sign-in screen
ipobject | nullnullable
ip.cidrsstring[]max 50 items
ip.grantboolean
ip.restrictLinksboolean
sectionsobject
sections.internalIncidentsboolean
sections.notesboolean
sections.onCallboolean
sections.claimsboolean
sections.monitorsboolean
sections.diagnosticsboolean
sections.suspectsboolean
sections.runbooksboolean
sections.upstreamboolean
sections.drillsboolean
embedOriginsstring[]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
Example
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
    }
  }'
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.

FieldTypeDescription
pageIdrequiredpathstringStatus page id or slug
namerequiredstringWhat it is for, e.g. "Office wallboard"max length 80
expiresInDaysinteger | nullmin 1 · max 3,650 · nullable
scopestring"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
Example
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"
  }'
POST/api/v1/pages/:pageId/access/links/:linkId/rotate
API key · writeMCP pages_access_links_rotateReturns 200
FieldTypeDescription
pageIdrequiredpathstringStatus page id or slug
linkIdrequiredpathstring
Example
curl -X POST https://upbutler.com/api/v1/pages/pg_0n3q8kz0b2fd81mka5e/access/links/<linkId>/rotate \
  -H "Authorization: Bearer $UPBUTLER_API_KEY"
DELETE/api/v1/pages/:pageId/access/links/:linkId
API key · writeMCP pages_access_links_deleteReturns 200
FieldTypeDescription
pageIdrequiredpathstringStatus page id or slug
linkIdrequiredpathstring
Example
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.

FieldTypeDescription
pageIdrequiredpathstringStatus page id or slug
Example
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
FieldTypeDescription
pageIdrequiredpathstringStatus page id or slug
Example
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.

FieldTypeDescription
pageIdrequiredpathstringStatus page id or slug
idstringmax length 40
emailstringmax length 254
allboolean | string
Example
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.

Example
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.

FieldTypeDescription
channelIdrequiredstringSlack channel id, e.g. C0123ABCDEFmin length 7 · max length 24
namestringmax length 80
Example
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.

Example
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)