{"openapi":"3.1.0","info":{"title":"StatusReport API","version":"1.0.0","description":"Free, open-source uptime monitoring & status pages. Authenticate with `Authorization: Bearer sr_live_…`."},"servers":[{"url":"http://localhost:3000/api/v1"}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"}},"schemas":{"Monitor":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string","enum":["http","keyword","json","tcp","udp","ping","dns","ssl","domain","heartbeat"]},"target":{"type":"string","example":"https://api.example.com/health"},"method":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE","HEAD"]},"headers":{"type":"object","additionalProperties":{"type":"string"}},"body":{"type":"string"},"authType":{"type":"string","enum":["none","bearer","basic"]},"expectedStatus":{"type":"string","example":"200-299"},"keyword":{"type":"string"},"keywordMode":{"type":"string","enum":["present","absent"]},"jsonPath":{"type":"string","example":"$.status"},"jsonOp":{"type":"string","example":"=="},"jsonExpected":{"type":"string","example":"healthy"},"intervalSec":{"type":"integer","enum":[10,30,60,180,300,900,3600]},"timeoutMs":{"type":"integer"},"regions":{"type":"string","example":"us-east,eu-west"},"confirmations":{"type":"integer"},"confirmRegions":{"type":"integer"},"paused":{"type":"boolean"}},"required":["name","type"]}}},"security":[{"bearer":[]}],"paths":{"/monitors":{"get":{"summary":"List monitors","responses":{"200":{"description":"Monitors"}}},"post":{"summary":"Create a monitor","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Monitor"}}}},"responses":{"201":{"description":"Created"}}}},"/monitors/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"get":{"summary":"Get a monitor with recent checks","responses":{"200":{"description":"Monitor"}}},"patch":{"summary":"Update a monitor","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Monitor"}}}},"responses":{"200":{"description":"Updated"}}},"delete":{"summary":"Delete a monitor","responses":{"204":{"description":"Deleted"}}}},"/incidents":{"get":{"summary":"List incidents (?status=open)","responses":{"200":{"description":"Incidents"}}},"post":{"summary":"Create an incident","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string"},"message":{"type":"string"},"status":{"type":"string"},"severity":{"type":"string"},"monitorIds":{"type":"array","items":{"type":"string"}},"public":{"type":"boolean"}},"required":["title"]}}}},"responses":{"201":{"description":"Created"}}}},"/incidents/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"get":{"summary":"Get an incident","responses":{"200":{"description":"Incident"}}},"patch":{"summary":"Post an update, change severity or acknowledge","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"message":{"type":"string"},"severity":{"type":"string"},"acknowledge":{"type":"boolean"},"notify":{"type":"boolean"}}}}}},"responses":{"200":{"description":"Updated"}}}},"/status-pages":{"get":{"summary":"List status pages","responses":{"200":{"description":"Pages"}}}},"/deployments":{"get":{"summary":"List deployment markers","responses":{"200":{"description":"Deployments"}}},"post":{"summary":"Record a deployment marker","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"string"},"environment":{"type":"string"},"commitSha":{"type":"string"},"url":{"type":"string"},"monitorId":{"type":"string"}},"required":["version"]}}}},"responses":{"201":{"description":"Created"}}}},"/config/sync":{"post":{"summary":"Sync monitors from YAML/JSON (?prune=true)","requestBody":{"content":{"application/yaml":{"schema":{"type":"string"}}}},"responses":{"200":{"description":"Sync result"}}}},"/workspace/export":{"get":{"summary":"Download a full JSON backup","responses":{"200":{"description":"Backup"}}}},"/heartbeat/{token}":{"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"}}],"get":{"summary":"Heartbeat check-in (no auth; ?status=fail to report failure)","security":[],"responses":{"200":{"description":"Recorded"}}}}}}