← All docs

REST API

Manage Spot Downtime from code: create monitors when you deploy a new service, pause them or schedule maintenance during a release, post incident updates and pull uptime history into your own reports. The API uses JSON over HTTPS and is available on every plan.

Authentication

Create a key in the app under Settings → API keys (owners and admins). Choose Read only for dashboards and reports, or Read & write for scripts that change things. Send it as a bearer token:

bash
curl "https://spotdowntime.com/api/v1/workspaces/$WORKSPACE_ID/monitors" \
  -H "Authorization: Bearer $SPOT_DOWNTIME_API_KEY"
  • A key works in one workspace only and acts as the person who created it. It stops working if they leave the workspace.
  • Keys can't reach billing, team, account or API key settings.
  • The key is shown once. Store it as a secret (a CI secret or environment variable), never in code. Delete it in the app if it leaks; requests with it then get 401.
Your workspace ID is shown with a copy button at the top of Settings → API keys, and in every monitor as workspace_id.

Errors and limits

Errors return a status code and a JSON body with a human-readable error, for example {"error": "This API key is read-only."}.

StatusMeaning
400The request isn't valid, such as a bad URL or an interval faster than your plan allows. The message says what to fix.
401The key is missing, wrong or deleted.
402A plan limit, such as the number of monitors. Upgrade or remove something.
403The key is read-only, or the endpoint isn't available with an API key.
404Not found in this key's workspace.
429More than 120 requests a minute with this key. Wait for the time in the Retry-After header.

Example: maintenance during deploys

Schedule a 15-minute maintenance window at the start of a deploy, so a restart isn't counted as downtime or alerted:

bash
START=$(date -u +%Y-%m-%dT%H:%M:%SZ)
END=$(date -u -d "+15 minutes" +%Y-%m-%dT%H:%M:%SZ)
curl -X POST "https://spotdowntime.com/api/v1/workspaces/$WORKSPACE_ID/maintenance" \
  -H "Authorization: Bearer $SPOT_DOWNTIME_API_KEY" \
  -H "Content-Type: application/json" \
  -d "{\"title\": \"Deploy\", \"starts_at\": \"$START\", \"ends_at\": \"$END\", \"monitor_ids\": [\"$MONITOR_ID\"]}"

When the deploy finishes, check it straight away with POST /monitors/{mid}/check, and end the window early with PATCH /maintenance/{id}.

Workspace

GET/workspaces/{wid}

Get the workspace. The workspace's name, plan and usage, including its monitor limit and fastest check interval.

ParameterInDescription
widpathWorkspace ID, shown at the top of Settings → API keys.
bash
curl "https://spotdowntime.com/api/v1/workspaces/$WORKSPACE_ID" \
  -H "Authorization: Bearer $SPOT_DOWNTIME_API_KEY"

Response 200: The workspace with its plan and usage.

Monitors

GET/workspaces/{wid}/monitors

List monitors. Every monitor in the workspace with its current status, last check and 24-hour uptime.

ParameterInDescription
widpathWorkspace ID, shown at the top of Settings → API keys.
bash
curl "https://spotdowntime.com/api/v1/workspaces/$WORKSPACE_ID/monitors" \
  -H "Authorization: Bearer $SPOT_DOWNTIME_API_KEY"

Response 200: An array of monitors.

json
[
  {
    "id": "8f1c2d4e-5a6b-4c7d-9e0f-1a2b3c4d5e6f",
    "workspace_id": "1651d39c-77d4-41de-b457-ccdd8ff616bf",
    "name": "Checkout",
    "url": "https://shop.example.com/cart",
    "type": "http",
    "keyword": "Add to cart",
    "ssl_expires_at": "2027-01-14T23:59:59Z",
    "domain_expires_at": "2028-03-02T04:00:00Z",
    "config": {},
    "region": null,
    "extra_regions": [],
    "interval_sec": 60,
    "paused": false,
    "status": "up",
    "last_checked_at": "2026-10-12T09:41:05Z",
    "last_latency_ms": 182,
    "last_status_code": 200,
    "last_error": null,
    "created_at": "2026-09-30T14:02:11Z",
    "uptime_24h": 99.93,
    "maintenance": false
  }
]

POST/workspaces/{wid}/monitors

Create a monitor. Set type to choose what's checked (http when left out), and put the type's own settings in config. Needs a read & write key.

ParameterInDescription
widpathWorkspace ID, shown at the top of Settings → API keys.

Monitor types

typeAddress and settings
httpA website. url is the page; keyword is text it must contain.
apiAn API endpoint at url. On Starter and up, config.steps runs more requests in order, and config.extract (and each step's extract) saves JSON fields as {{name}} for later steps.
tcpurl is host:port.
udpurl is host:port. config.udp_send is the datagram, config.udp_expect what the reply must contain, and config.udp_hex for hex.
grpcurl is host:port. Calls the standard health check, grpc.health.v1.Health/Check; up when it answers SERVING. config.grpc_service is the service to ask about (empty: the whole server), config.grpc_plaintext turns TLS off (h2c), and config.headers is sent as metadata.
dnsurl is a domain.
pingurl is a host or IP.
heartbeatNo url. The response includes the monitor's ping_url for your job to call.
serviceNo url. config.service is a provider id such as aws, supabase or stripe, and config.components the component ids to watch (required, as region codes, for aws). config.alert_on: "degraded" alerts on slowdowns too. See Get a service's status.
llmNo url. config.llm_provider is openai, anthropic, gemini, mistral, groq, deepseek, xai, openrouter, together, or custom with config.llm_base_url for any OpenAI-compatible endpoint. config.llm_model is the model ID and config.llm_api_key the key, required except for custom. Optional: config.llm_prompt, config.llm_expect (text the reply must contain), config.llm_max_tokens (default 64) and config.llm_max_latency_ms. The key is write-only: responses carry config.llm_api_key_hint, its last 4 characters, and an update that leaves llm_api_key empty keeps it unless the endpoint's host changes.

Options

FieldWhat it does
interval_secSeconds between checks. It can't be faster than the plan allows.
regionOn Starter and Pro, where checks run from (see List check regions). Leave it out for the main region.
regionsA list instead of region: each checks every interval, the first becomes region and the rest extra_regions ("" for the main region). The monitor is down only when most of them fail.
slow_alert_msAlerts when the p95 response time over slow_window_sec is above this. Starter and up, for any type with a response time (not heartbeat or service). 0 turns it off; while it's slow, responses carry slow_since.
slow_window_secThe window for slow_alert_ms: 300, 900, 1800 or 3600 seconds (default 900), with at least 3 checks.
confirm_secHow long a failure must last before the monitor goes down and alerts: 0, 30, 60, 120 or 300 seconds (default 60). Meanwhile it's re-checked every 10 to 60 seconds and failing_since is set; a passing check clears it with no incident. For website, API, TCP, UDP, gRPC, ping, DNS and browser monitors.
bash
curl -X POST "https://spotdowntime.com/api/v1/workspaces/$WORKSPACE_ID/monitors" \
  -H "Authorization: Bearer $SPOT_DOWNTIME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Checkout","type":"http","url":"https://shop.example.com/cart","keyword":"Add to cart","interval_sec":60,"region":"singapore"}'

Response 201: The new monitor.

json
{
  "id": "8f1c2d4e-5a6b-4c7d-9e0f-1a2b3c4d5e6f",
  "workspace_id": "1651d39c-77d4-41de-b457-ccdd8ff616bf",
  "name": "Checkout",
  "url": "https://shop.example.com/cart",
  "type": "http",
  "keyword": "Add to cart",
  "ssl_expires_at": "2027-01-14T23:59:59Z",
  "domain_expires_at": "2028-03-02T04:00:00Z",
  "config": {},
  "region": null,
  "extra_regions": [],
  "interval_sec": 60,
  "paused": false,
  "status": "up",
  "last_checked_at": "2026-10-12T09:41:05Z",
  "last_latency_ms": 182,
  "last_status_code": 200,
  "last_error": null,
  "created_at": "2026-09-30T14:02:11Z",
  "uptime_24h": 99.93,
  "maintenance": false
}

GET/monitors/{mid}

Get a monitor. One monitor, with its last 50 checks, uptime over 24 hours, 7 and 30 days, and its response times over 24 hours: the average and the p50, p75, p95 and p99 percentiles of successful checks (null without one).

ParameterInDescription
midpathMonitor ID.
bash
curl "https://spotdowntime.com/api/v1/monitors/$MONITOR_ID" \
  -H "Authorization: Bearer $SPOT_DOWNTIME_API_KEY"

Response 200: The monitor and its stats.

json
{
  "monitor": {
    "id": "8f1c2d4e-5a6b-4c7d-9e0f-1a2b3c4d5e6f",
    "workspace_id": "1651d39c-77d4-41de-b457-ccdd8ff616bf",
    "name": "Checkout",
    "url": "https://shop.example.com/cart",
    "type": "http",
    "keyword": "Add to cart",
    "ssl_expires_at": "2027-01-14T23:59:59Z",
    "domain_expires_at": "2028-03-02T04:00:00Z",
    "config": {},
    "region": null,
    "extra_regions": [],
    "interval_sec": 60,
    "paused": false,
    "status": "up",
    "last_checked_at": "2026-10-12T09:41:05Z",
    "last_latency_ms": 182,
    "last_status_code": 200,
    "last_error": null,
    "created_at": "2026-09-30T14:02:11Z",
    "uptime_24h": 99.93,
    "maintenance": false
  },
  "stats": {
    "uptime_24h": 99.93,
    "uptime_7d": 99.98,
    "uptime_30d": 99.97,
    "avg_latency_ms_24h": 184.2,
    "latency_percentiles_24h": {
      "p50_ms": 171,
      "p75_ms": 196,
      "p95_ms": 241,
      "p99_ms": 388
    }
  }
}

PATCH/monitors/{mid}

Update, pause or resume a monitor. Send only the fields to change. Set paused to true before a deploy and back to false after, or use a maintenance window. Needs a read & write key.

ParameterInDescription
midpathMonitor ID.
bash
curl -X PATCH "https://spotdowntime.com/api/v1/monitors/$MONITOR_ID" \
  -H "Authorization: Bearer $SPOT_DOWNTIME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"paused":true}'

Response 200: The updated monitor.

json
{
  "id": "8f1c2d4e-5a6b-4c7d-9e0f-1a2b3c4d5e6f",
  "workspace_id": "1651d39c-77d4-41de-b457-ccdd8ff616bf",
  "name": "Checkout",
  "url": "https://shop.example.com/cart",
  "type": "http",
  "keyword": "Add to cart",
  "ssl_expires_at": "2027-01-14T23:59:59Z",
  "domain_expires_at": "2028-03-02T04:00:00Z",
  "config": {},
  "region": null,
  "extra_regions": [],
  "interval_sec": 60,
  "paused": true,
  "status": "up",
  "last_checked_at": "2026-10-12T09:41:05Z",
  "last_latency_ms": 182,
  "last_status_code": 200,
  "last_error": null,
  "created_at": "2026-09-30T14:02:11Z",
  "uptime_24h": 99.93,
  "maintenance": false
}

DELETE/monitors/{mid}

Delete a monitor. Deletes the monitor with its checks and incidents. This can't be undone. Needs a read & write key.

ParameterInDescription
midpathMonitor ID.
bash
curl -X DELETE "https://spotdowntime.com/api/v1/monitors/$MONITOR_ID" \
  -H "Authorization: Bearer $SPOT_DOWNTIME_API_KEY"

Response 204: Deleted.

POST/monitors/{mid}/check

Check a monitor now. Runs a check straight away, for example right after a deploy, and records it like a scheduled one. Needs a read & write key.

ParameterInDescription
midpathMonitor ID.
bash
curl -X POST "https://spotdowntime.com/api/v1/monitors/$MONITOR_ID/check" \
  -H "Authorization: Bearer $SPOT_DOWNTIME_API_KEY"

Response 200: The monitor after the check.

json
{
  "id": "8f1c2d4e-5a6b-4c7d-9e0f-1a2b3c4d5e6f",
  "workspace_id": "1651d39c-77d4-41de-b457-ccdd8ff616bf",
  "name": "Checkout",
  "url": "https://shop.example.com/cart",
  "type": "http",
  "keyword": "Add to cart",
  "ssl_expires_at": "2027-01-14T23:59:59Z",
  "domain_expires_at": "2028-03-02T04:00:00Z",
  "config": {},
  "region": null,
  "extra_regions": [],
  "interval_sec": 60,
  "paused": false,
  "status": "up",
  "last_checked_at": "2026-10-12T09:41:05Z",
  "last_latency_ms": 182,
  "last_status_code": 200,
  "last_error": null,
  "created_at": "2026-09-30T14:02:11Z",
  "uptime_24h": 99.93,
  "maintenance": false
}

POST/monitors/{mid}/check-regions

Check a monitor from every region. Runs the monitor's check from every region at once, or from one region, and returns each region's answer. Useful for telling a regional problem from a global one. Nothing is recorded and no alerts are sent. Not available for heartbeat monitors. Needs a read & write key.

ParameterInDescription
midpathMonitor ID.
regionqueryCheck from this region only, as named by List check regions. Leave out to check from all of them.
bash
curl -X POST "https://spotdowntime.com/api/v1/monitors/$MONITOR_ID/check-regions" \
  -H "Authorization: Bearer $SPOT_DOWNTIME_API_KEY"

Response 200: Each region's result, the main region first.

json
{
  "results": [
    {
      "region": "california",
      "up": true,
      "status_code": 200,
      "latency_ms": 54
    },
    {
      "region": "amsterdam",
      "up": true,
      "status_code": 200,
      "latency_ms": 61
    },
    {
      "region": "singapore",
      "up": false,
      "latency_ms": 10000,
      "error": "timed out"
    }
  ],
  "up": 2,
  "total": 3
}

GET/services/{id}/status

Get a service's status. A third-party provider's components and open incidents, read from its official status page (cached for a minute). Use the component ids as config.components on a service monitor. The list of providers is at GET /public/services, no key needed.

ParameterInDescription
idpathService id, e.g. aws, gcp, azure, supabase, stripe or vercel.
bash
curl "https://spotdowntime.com/api/v1/services/$ID/status" \
  -H "Authorization: Bearer $SPOT_DOWNTIME_API_KEY"

Response 200: The provider and its status.

json
{
  "service": {
    "id": "supabase",
    "name": "Supabase",
    "category": "database",
    "page": "https://status.supabase.com",
    "site": "supabase.com",
    "pick": "components"
  },
  "status": {
    "components": [
      {
        "id": "01M32S9NWP8A77QN2JA9R85A3A",
        "name": "eu-west-1",
        "group": "Postgres",
        "status": "partial_outage"
      }
    ],
    "incidents": [
      {
        "name": "Connection errors in eu-west-1",
        "impact": "partial_outage",
        "url": "https://status.supabase.com/incidents/01M5…",
        "components": [
          "01M32S9NWP8A77QN2JA9R85A3A"
        ]
      }
    ],
    "fetched_at": "2026-10-22T16:20:00Z"
  }
}

GET/services/detect

Find the services a site uses. Reads a domain's DNS, mail setup, response headers and home page to find the third-party services it runs on, each with the reasons. Limited to 30 lookups a minute.

ParameterInDescription
domainqueryThe website, e.g. example.com.
bash
curl "https://spotdowntime.com/api/v1/services/detect?range=30d" \
  -H "Authorization: Bearer $SPOT_DOWNTIME_API_KEY"

Response 200: The services found.

json
{
  "domain": "example.com",
  "found": [
    {
      "service": "vercel",
      "reasons": [
        "Nameserver ns1.vercel-dns.com"
      ]
    },
    {
      "service": "stripe",
      "reasons": [
        "Site loads js.stripe.com"
      ]
    }
  ]
}

GET/regions

List check regions. Where checks run from: the main region runs scheduled checks unless a monitor has chosen another, and the other regions re-check failures before anyone is alerted.

bash
curl "https://spotdowntime.com/api/v1/regions" \
  -H "Authorization: Bearer $SPOT_DOWNTIME_API_KEY"

Response 200: The regions.

json
{
  "main": "california",
  "probes": [
    "amsterdam",
    "singapore"
  ]
}

History

GET/monitors/{mid}/series

Response times and uptime over time. Buckets of response time and failed checks for a time range, as shown on the monitor's chart. Each bucket has avg_ms and the p50_ms, p75_ms, p95_ms and p99_ms percentiles of its successful checks; they're null without one, and for days summarized before percentiles were kept (from October 2026).

ParameterInDescription
midpathMonitor ID.
rangequeryTime range. Defaults to 24h; ranges beyond your plan's history are refused. One of 24h, 7d, 30d, 90d, 1y, 2y.
bash
curl "https://spotdowntime.com/api/v1/monitors/$MONITOR_ID/series" \
  -H "Authorization: Bearer $SPOT_DOWNTIME_API_KEY"

Response 200: The series for the range.

GET/monitors/{mid}/slowdowns

Slowdowns. The times a monitor's p95 response time was above its slowness threshold, newest first (at most 50). A slowdown isn't an incident: it doesn't change uptime or reach status pages.

ParameterInDescription
midpathMonitor ID.
bash
curl "https://spotdowntime.com/api/v1/monitors/$MONITOR_ID/slowdowns" \
  -H "Authorization: Bearer $SPOT_DOWNTIME_API_KEY"

Response 200: The slowdowns.

json
[
  {
    "id": 81,
    "started_at": "2026-10-02T09:14:03Z",
    "resolved_at": "2026-10-02T09:39:51Z",
    "threshold_ms": 800,
    "window_sec": 900,
    "worst_p95_ms": 1960
  }
]

GET/monitors/{mid}/export

Download checks as CSV. Every check, or one row per day with uptime, as CSV. Needs a key created by an owner or admin.

ParameterInDescription
midpathMonitor ID.
kindquerychecks (every check) or daily (one row per day). Defaults to checks. One of checks, daily.
rangequeryHow far back. One of 24h, 7d, 30d, 90d, 1y, 2y.
bash
curl "https://spotdowntime.com/api/v1/monitors/$MONITOR_ID/export?range=30d" \
  -H "Authorization: Bearer $SPOT_DOWNTIME_API_KEY"

Response 200: A CSV file.

GET/workspaces/{wid}/report

Get the uptime report. Uptime, incidents and mean time to recover (MTTR) across the workspace over the last 30 or 90 days (UTC, today included), for SLA and monthly reports. Uptime is successful checks out of all checks. Incidents count where they started; downtime counts only the time inside the period. daily has one row per day, weekly one per week starting Monday, and monitors lists every monitor with the most incidents first. 90 days needs a plan that keeps 90 days of history (402 otherwise). Durations are in seconds.

ParameterInDescription
widpathWorkspace ID, shown at the top of Settings → API keys.
rangequeryThe period. Defaults to 30d. One of 30d, 90d.
bash
curl "https://spotdowntime.com/api/v1/workspaces/$WORKSPACE_ID/report" \
  -H "Authorization: Bearer $SPOT_DOWNTIME_API_KEY"

Response 200: The report.

json
{
  "range": "30d",
  "from": "2026-10-06T00:00:00Z",
  "to": "2026-11-04T12:30:00Z",
  "uptime": 99.962,
  "checks": 259200,
  "failures": 98,
  "incidents": 3,
  "ongoing": 0,
  "mttr_sec": 412,
  "downtime_sec": 1236,
  "longest_sec": 780,
  "daily": [
    {
      "day": "2026-10-06",
      "checks": 8640,
      "failures": 0,
      "uptime": 100
    }
  ],
  "weekly": [
    {
      "start": "2026-10-05",
      "incidents": 1,
      "resolved": 1,
      "mttr_sec": 780,
      "downtime_sec": 780
    }
  ],
  "monitors": [
    {
      "id": "8f1c2d4e-5a6b-4c7d-9e0f-1a2b3c4d5e6f",
      "name": "Checkout",
      "type": "http",
      "paused": false,
      "checks": 43200,
      "failures": 61,
      "uptime": 99.859,
      "incidents": 2,
      "downtime_sec": 1012,
      "mttr_sec": 506,
      "longest_sec": 780
    }
  ]
}

Incidents

GET/monitors/{mid}/incidents

List a monitor's incidents. Outages of one monitor, newest first, with their reason and duration.

ParameterInDescription
midpathMonitor ID.
bash
curl "https://spotdowntime.com/api/v1/monitors/$MONITOR_ID/incidents" \
  -H "Authorization: Bearer $SPOT_DOWNTIME_API_KEY"

Response 200: An array of incidents.

GET/workspaces/{wid}/incidents

List incidents. The 300 most recent incidents across every monitor in the workspace, newest first.

ParameterInDescription
widpathWorkspace ID, shown at the top of Settings → API keys.
bash
curl "https://spotdowntime.com/api/v1/workspaces/$WORKSPACE_ID/incidents" \
  -H "Authorization: Bearer $SPOT_DOWNTIME_API_KEY"

Response 200: An array of incidents.

json
[
  {
    "id": 412,
    "monitor_id": "8f1c2d4e-5a6b-4c7d-9e0f-1a2b3c4d5e6f",
    "monitor_name": "Checkout",
    "started_at": "2026-10-12T14:02:00Z",
    "resolved_at": "2026-10-12T14:07:12Z",
    "reason": "HTTP 503 (down from all 3 regions)",
    "latest_update": "resolved",
    "updates": 2
  }
]

GET/incidents/{id}

Get an incident. One incident with the updates your team has posted.

ParameterInDescription
idpathIncident ID.
bash
curl "https://spotdowntime.com/api/v1/incidents/$ID" \
  -H "Authorization: Bearer $SPOT_DOWNTIME_API_KEY"

Response 200: The incident and its updates.

POST/incidents/{id}/updates

Post an incident update. Adds an update, shown on status pages that include the monitor unless public is false. Needs a read & write key.

ParameterInDescription
idpathIncident ID.
bash
curl -X POST "https://spotdowntime.com/api/v1/incidents/$ID/updates" \
  -H "Authorization: Bearer $SPOT_DOWNTIME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"status":"identified","message":"A database migration is slowing checkout. Rolling it back now.","public":true}'

Response 201: The new update's ID.

json
{
  "id": 1093
}

Maintenance

GET/workspaces/{wid}/maintenance

List maintenance windows. Upcoming, current and recent maintenance windows.

ParameterInDescription
widpathWorkspace ID, shown at the top of Settings → API keys.
bash
curl "https://spotdowntime.com/api/v1/workspaces/$WORKSPACE_ID/maintenance" \
  -H "Authorization: Bearer $SPOT_DOWNTIME_API_KEY"

Response 200: An array of maintenance windows.

POST/workspaces/{wid}/maintenance

Schedule maintenance. Pauses checks on the chosen monitors between starts_at and ends_at (at most 31 days), so planned work isn't counted as downtime or alerted. Shown on status pages ahead of time. Needs a read & write key.

ParameterInDescription
widpathWorkspace ID, shown at the top of Settings → API keys.
bash
curl -X POST "https://spotdowntime.com/api/v1/workspaces/$WORKSPACE_ID/maintenance" \
  -H "Authorization: Bearer $SPOT_DOWNTIME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"title":"Database upgrade","message":"Checkout may be unavailable for a few minutes.","starts_at":"2026-10-14T22:00:00Z","ends_at":"2026-10-14T22:30:00Z","monitor_ids":["8f1c2d4e-5a6b-4c7d-9e0f-1a2b3c4d5e6f"],"notify_subscribers":false}'

Response 201: The new window.

json
{
  "id": "c0d875b7-e6c5-4772-81ff-7627098eba0a",
  "title": "Database upgrade",
  "message": "Checkout may be unavailable for a few minutes.",
  "starts_at": "2026-10-14T22:00:00Z",
  "ends_at": "2026-10-14T22:30:00Z",
  "monitor_ids": [
    "8f1c2d4e-5a6b-4c7d-9e0f-1a2b3c4d5e6f"
  ],
  "created_at": "2026-10-12T10:00:00Z"
}

PATCH/maintenance/{id}

Change or end maintenance. Change any field. To end a window early, set ends_at to the current time. Needs a read & write key.

ParameterInDescription
idpathMaintenance window ID.
bash
curl -X PATCH "https://spotdowntime.com/api/v1/maintenance/$ID" \
  -H "Authorization: Bearer $SPOT_DOWNTIME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ends_at":"2026-10-14T22:12:00Z"}'

Response 200: The updated window.

DELETE/maintenance/{id}

Delete maintenance. Removes the window. Checks resume straight away if it was in progress. Needs a read & write key.

ParameterInDescription
idpathMaintenance window ID.
bash
curl -X DELETE "https://spotdowntime.com/api/v1/maintenance/$ID" \
  -H "Authorization: Bearer $SPOT_DOWNTIME_API_KEY"

Response 204: Deleted.

Status pages & alerts

GET/workspaces/{wid}/status-pages

List status pages. The workspace's status pages and the monitors each one shows. `password_protected` is true for a page that needs a password; the password itself is never returned.

ParameterInDescription
widpathWorkspace ID, shown at the top of Settings → API keys.
bash
curl "https://spotdowntime.com/api/v1/workspaces/$WORKSPACE_ID/status-pages" \
  -H "Authorization: Bearer $SPOT_DOWNTIME_API_KEY"

Response 200: An array of status pages.

GET/workspaces/{wid}/alert-channels

List alert channels. Where alerts go, with when each channel last delivered. Addresses are masked.

ParameterInDescription
widpathWorkspace ID, shown at the top of Settings → API keys.
bash
curl "https://spotdowntime.com/api/v1/workspaces/$WORKSPACE_ID/alert-channels" \
  -H "Authorization: Bearer $SPOT_DOWNTIME_API_KEY"

Response 200: An array of alert channels.

MCP server for AI assistants

Spot Downtime is also a remote MCP server (Model Context Protocol), so AI assistants like Claude, ChatGPT, Cursor and GitHub Copilot in VS Code can check your monitors, investigate incidents and schedule maintenance when you ask in plain language: “Is anything down?”, “Put checkout in maintenance for 20 minutes”, “Why did the API go down last night?”

Connect by signing in (OAuth): the app opens Spot Downtime, and you choose the workspace and whether the assistant may change things. Or use an API key: a read-only key gives the assistant read tools only, a read & write key adds tools that change things. Either way the workspace is used automatically, and you can disconnect apps under Settings → API keys.

Server URLTransportAuthentication
https://spotdowntime.com/api/v1/mcpStreamable HTTPOAuth 2.1 sign-in, or Authorization: Bearer sd_…

Claude (web, desktop and mobile)

In Claude, open Settings → Connectors, choose Add custom connector, and paste https://spotdowntime.com/api/v1/mcp. Click Connect, sign in to Spot Downtime and allow access. On Team and Enterprise plans, an owner adds the connector for the organization first.

ChatGPT

Custom MCP apps need ChatGPT's developer mode, on the web, with a Plus, Pro, Business, Enterprise or Edu plan. Open Settings → Apps → Advanced settings and turn on Developer mode. Then choose Create app, name it Spot Downtime, paste https://spotdowntime.com/api/v1/mcp as the MCP server URL, set authentication to OAuth, and create it. Sign in to Spot Downtime and allow access. In a chat, pick Spot Downtime from the + menu under Developer mode; ChatGPT asks before running any tool that changes something. On Business and Enterprise, an admin may need to allow developer mode first.

Claude Code

Add the server, then run /mcp in Claude Code and choose Authenticate to sign in. --scope user makes it available in every project, not just the current folder.

bash
claude mcp add --transport http --scope user spot-downtime https://spotdowntime.com/api/v1/mcp

Or with an API key instead of signing in:

bash
claude mcp add --transport http --scope user spot-downtime https://spotdowntime.com/api/v1/mcp \
  --header "Authorization: Bearer sd_your_key"

Cursor

In ~/.cursor/mcp.json (or .cursor/mcp.json in a project):

json
{
  "mcpServers": {
    "spot-downtime": {
      "url": "https://spotdowntime.com/api/v1/mcp",
      "headers": {
        "Authorization": "Bearer sd_your_key"
      }
    }
  }
}

VS Code (GitHub Copilot)

In .vscode/mcp.json. VS Code asks for the key once and stores it securely:

json
{
  "inputs": [
    {
      "id": "spotDowntimeKey",
      "type": "promptString",
      "description": "Spot Downtime API key",
      "password": true
    }
  ],
  "servers": {
    "spot-downtime": {
      "type": "http",
      "url": "https://spotdowntime.com/api/v1/mcp",
      "headers": {
        "Authorization": "Bearer ${input:spotDowntimeKey}"
      }
    }
  }
}

Other MCP clients

Clients that support remote servers with OAuth just need the server URL. For one that only runs local servers, use the mcp-remote bridge (needs Node.js) with an API key, for example in claude_desktop_config.json:

json
{
  "mcpServers": {
    "spot-downtime": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://spotdowntime.com/api/v1/mcp",
        "--header",
        "Authorization:${AUTH_HEADER}"
      ],
      "env": {
        "AUTH_HEADER": "Bearer sd_your_key"
      }
    }
  }
}

Tools

ToolWhat it doesKey
get_workspaceThe workspace's plan, limits and usage.Any
list_monitorsEvery monitor with its status, last check and 24-hour uptime.Any
get_monitorOne monitor with uptime over 24 hours, 7 and 30 days and its recent checks.Any
create_monitorMonitor a website, API, TCP port, DNS record, host or cron job.Read & write
update_monitorChange a monitor's name, URL, keyword or interval.Read & write
pause_monitor / resume_monitorStop or restart checks on a monitor.Read & write
delete_monitorDelete a monitor (the assistant is told to confirm first).Read & write
check_monitor_nowRun a check straight away.Read & write
get_response_timesResponse times and failures over 24 hours to 2 years.Any
list_incidents / get_incidentRecent outages with reasons and durations, and their updates.Any
post_incident_updatePost an update that appears on your status pages.Read & write
list_maintenanceUpcoming, current and recent maintenance windows.Any
schedule_maintenance / end_maintenancePause checks for planned work, then end it early.Read & write
list_status_pages / list_alert_channelsStatus pages and where alerts go.Any
list_widgets / get_widget_codeMonitor widgets, and the code plus step-by-step instructions to add one to your app, matching its theme.Any
create_widget / update_widgetMake or change a widget showing chosen monitors inside your own app.Read & write
Tool calls count toward a limit of 120 requests a minute per key or connected app. Choose read-only access unless you want the assistant to make changes, and review what it plans to do before approving write tools.

OpenAPI

The whole API is described in /openapi.json (OpenAPI 3.1). Import it into Postman or Insomnia, generate a client in your language, or give it to an AI coding tool.

Something missing or unclear? Tell us.