Uptime Monitor
No targets configured. Set TARGETS in .env.local.
API
GET /api/status– list all targets and statusGET /api/status/[id]– single target (e.g. target-1)POST /api/check?key=...– trigger check (requires CRON_API_KEY or ALLOWED_IPS)
Examples
Copy and run. For production, replace localhost:3000 with your domain.
curl — list all targets
curl http://localhost:3000/api/statuscurl — one target
curl http://localhost:3000/api/status/target-1curl — trigger check (replace KEY with your CRON_API_KEY)
curl -X POST "http://localhost:3000/api/check?key=KEY"JavaScript (fetch)
const res = await fetch('/api/status');
const { targets, updatedAt } = await res.json();