{"openapi":"3.1.0","info":{"title":"AlertOnDown REST API v1 & MCP Server","version":"1.1.0","summary":"Global multi-ASN uptime monitoring, 5-stage HTTP waterfalls, incident forensics, deploy markers, and AI MCP server.","description":"Programmatically manage uptime monitors, run instant 5-stage HTTP waterfall probes, acknowledge/resolve incidents, annotate CI/CD deployments, inspect on-call schedules, export SLA compliance CSVs, and connect AI coding agents over Streamable HTTP MCP.","contact":{"name":"AlertOnDown Support","url":"https://alertondown.com/contact","email":"support@alertondown.com"},"license":{"name":"Terms of Service","url":"https://alertondown.com/terms"}},"servers":[{"url":"https://alertondown.com","description":"Production"}],"externalDocs":{"description":"REST API v1 & MCP Documentation","url":"https://alertondown.com/docs/api"},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"AlertOnDown API Key (aod_main_*, aod_mcp_*, aod_ro_*)","description":"Generate a scoped API key in your AlertOnDown workspace at https://alertondown.com/integrations."}},"schemas":{"MonitorCreate":{"type":"object","required":["friendlyName","targetUrl"],"properties":{"friendlyName":{"type":"string","minLength":1,"maxLength":120,"example":"Checkout API (Prod)"},"targetUrl":{"type":"string","example":"https://api.example.com/health"},"monitorType":{"type":"string","enum":["http","keyword","api","api_chain","websocket","ping","port","udp","dns","heartbeat","visual","smtp_email"],"default":"http"},"intervalSec":{"type":"integer","minimum":15,"example":60},"timeoutMs":{"type":"integer","minimum":1000,"maximum":60000,"default":10000},"httpMethod":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE","HEAD"],"default":"GET"},"expectedStatusCodes":{"type":"string","default":"200-299"},"checkSslErrors":{"type":"boolean","default":true}}},"DeployCreate":{"type":"object","required":["title"],"properties":{"title":{"type":"string","minLength":2,"maxLength":175,"example":"Production release v2.4.0"},"version":{"type":"string","maxLength":60,"example":"v2.4.0"},"author":{"type":"string","maxLength":95,"example":"GitHub Actions"},"monitorId":{"type":"integer","minimum":1,"description":"Optional monitor ID scoped to this deployment."}}},"MonitorAction":{"type":"object","required":["action"],"properties":{"action":{"type":"string","enum":["check_now","pause","resume","clone","reset_stats","test_notification"]}}},"IncidentUpdate":{"type":"object","properties":{"action":{"type":"string","enum":["acknowledge","resolve"]},"slaIncluded":{"type":"boolean"}}}}},"paths":{"/api/v1/health":{"get":{"tags":["System"],"summary":"Platform health check","responses":{"200":{"description":"Healthy response"}}}},"/api/v1/monitors":{"get":{"tags":["Monitors"],"summary":"List workspace monitors","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Monitor list with live status, latency, and 24h/7d/30d/365d SLA uptime."},"401":{"description":"Unauthorized"}}},"post":{"tags":["Monitors"],"summary":"Create a monitor","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonitorCreate"}}}},"responses":{"201":{"description":"Monitor created and initial probe completed."},"400":{"description":"Validation failed"},"401":{"description":"Unauthorized"},"403":{"description":"Insufficient permissions"}}}},"/api/v1/monitors/{id}":{"get":{"tags":["Monitors"],"summary":"Get monitor forensic detail","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Monitor metadata, 5-stage waterfall checks, SSL/domain state, and recent incidents."},"404":{"description":"Monitor not found"}}},"patch":{"tags":["Monitors"],"summary":"Update monitor configuration","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonitorCreate"}}}},"responses":{"200":{"description":"Monitor updated"},"404":{"description":"Monitor not found"}}}},"/api/v1/monitors/{id}/actions":{"post":{"tags":["Monitors"],"summary":"Run instant check, pause, resume, clone, or test alert","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonitorAction"}}}},"responses":{"200":{"description":"Action completed (returns full 5-stage waterfall result for check_now)."}}}},"/api/v1/incidents":{"get":{"tags":["Incidents"],"summary":"List workspace downtime incidents","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Recent downtime incidents with root cause codes and durations."}}}},"/api/v1/incidents/{id}":{"get":{"tags":["Incidents"],"summary":"Get incident timeline and comments","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Incident detail, events, and responder comments."}}},"patch":{"tags":["Incidents"],"summary":"Acknowledge or resolve an incident","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncidentUpdate"}}}},"responses":{"200":{"description":"Incident updated."}}}},"/api/v1/deploys":{"get":{"tags":["Deployments"],"summary":"List recent CI/CD deploy markers","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Recent deployment annotations."}}},"post":{"tags":["Deployments"],"summary":"Record a CI/CD deployment marker","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeployCreate"}}}},"responses":{"201":{"description":"Deploy annotation recorded."}}}},"/api/v1/status-pages":{"get":{"tags":["Status Pages"],"summary":"List workspace public status pages","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Status pages with slugs, custom domains, and subscriber counts."}}}},"/api/v1/maintenance":{"get":{"tags":["Maintenance"],"summary":"List scheduled maintenance windows","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Maintenance windows and attached monitors."}}}},"/api/v1/on-call":{"get":{"tags":["On-Call"],"summary":"List on-call rotation schedules","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"On-call schedules, timezones, and responders."}}}},"/api/v1/account/sla-export":{"get":{"tags":["Reporting"],"summary":"Export RFC-4180 CSV SLA compliance report","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"CSV file download","content":{"text/csv":{}}}}}},"/api/mcp":{"get":{"tags":["MCP"],"summary":"Discover AlertOnDown Streamable HTTP MCP Server metadata","responses":{"200":{"description":"MCP server version, supported protocol revisions, and tool list."}}},"post":{"tags":["MCP"],"summary":"Execute Streamable HTTP Model Context Protocol JSON-RPC 2.0 calls","description":"Hosted Streamable HTTP MCP endpoint (https://alertondown.com/api/mcp) exposing 12 tools: list_monitors, get_monitor_detail, run_instant_check, create_monitor, set_monitor_paused, list_incidents, update_incident, list_status_pages, post_status_announcement, record_deploy, list_maintenance_windows, list_on_call_schedules.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"JSON-RPC 2.0 response"},"202":{"description":"Notification accepted"},"401":{"description":"Unauthorized"}}}},"/s/{slug}/status.json":{"get":{"tags":["Public Feeds"],"summary":"Public CORS-enabled JSON status summary","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Public status page JSON payload."}}}},"/s/{slug}/feed.xml":{"get":{"tags":["Public Feeds"],"summary":"Public RSS 2.0 incident & maintenance feed","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"RSS 2.0 XML document."}}}},"/badge/{token}.svg":{"get":{"tags":["Public Feeds"],"summary":"Embeddable live status SVG badge for READMEs and docs","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"}},{"name":"theme","in":"query","required":false,"schema":{"type":"string","enum":["dark","light"]}}],"responses":{"200":{"description":"SVG status badge","content":{"image/svg+xml":{}}}}}}}}