Monitors API
Manage uptime monitors, trigger checks, view incidents, and export event history.
Required scope: monitors:read or monitors:write
Endpoints
GET
/api/monitorsList all monitorsPOST
/api/monitorsCreate a monitorGET
/api/monitors/:idGet monitor detailsPUT
/api/monitors/:idUpdate a monitorDELETE
/api/monitors/:idDelete a monitorPOST
/api/monitors/:id/pausePause / resumePOST
/api/monitors/:id/checkTrigger immediate checkGET
/api/monitors/:id/resultsCheck result historyGET
/api/monitors/:id/incidentsIncident historyGET
/api/monitors/statsAggregate statsGET
/api/monitors/tagsUnique tagsGET
/api/monitors/eventsEvent logGET
/api/monitors/events/exportExport events CSVDELETE
/api/monitors/eventsClear event historyList Monitors
GET
/api/monitorsReturns all monitors with current status and 24-hour stats.
Response:
json
{
"monitors": [
{
"id": "uuid",
"name": "Google DNS",
"target": "8.8.8.8",
"check_type": "ping",
"interval": 60,
"status": "up",
"last_check": "2026-03-15T10:30:00Z",
"response_time": 12.5
}
]
}Create Monitor
POST
/api/monitorsRequest body:
json
{
"name": "Web Server",
"target": "https://example.com",
"check_type": "http",
"interval": 60,
"timeout": 10,
"failure_threshold": 3,
"tags": ["production", "web"]
}Check types: http, ping, tcp, dns
Get Monitor
GET
/api/monitors/:idReturns a single monitor with enriched stats.
Update Monitor
PUT
/api/monitors/:idSame body as create. All fields optional — only provided fields are updated.
Delete Monitor
DELETE
/api/monitors/:idPause / Resume
POST
/api/monitors/:id/pauseToggles the paused state.
Trigger Immediate Check
POST
/api/monitors/:id/checkRuns a check immediately, outside the normal schedule.
Monitor Results History
GET
/api/monitors/:id/resultsReturns historical check results for a specific monitor.
Monitor Incidents
GET
/api/monitors/:id/incidentsReturns incidents (DOWN periods) with open/closed timestamps.
Aggregate Stats
GET
/api/monitors/statsResponse:
json
{
"up": 12,
"down": 1,
"degraded": 0,
"paused": 2,
"unknown": 0,
"total": 15
}Tags
GET
/api/monitors/tagsReturns an array of unique tags across all monitors.
Event Log
GET
/api/monitors/events| Param | Type | Default | Description |
|---|---|---|---|
limit | int | 50 | Max results (up to 200) |
Export Events
GET
/api/monitors/events/exportReturns event log as CSV download.
Clear Events
DELETE
/api/monitors/eventsClears all monitor check history. Scope: monitors:write