The failover.io API lets your own scripts and tools create and change monitors, acknowledge incidents and read check results and incidents. It is available on every plan, Free included.
https://api.failover.io/v1
Requests and responses are JSON. Timestamps are Unix seconds in UTC. The full description, for code generators and API clients, is the OpenAPI 3.1 file.
Authentication
Create a key in the dashboard under Profile, API Keys. Only the workspace owner and admins can create and revoke keys. The full key is shown once: copy it then. A key belongs to the workspace, not to the person who created it.
| Access | What it can do |
|---|---|
| Read only | Every GET endpoint: monitors, checks, uptime, incidents, status pages. |
| Read and write | Everything above, plus create, change, pause, resume and delete monitors, and acknowledge incidents. |
Send the key in the Authorization header:
curl https://api.failover.io/v1/monitors \
-H "Authorization: Bearer fo_live_..."
Keep keys out of browsers and public repositories. A revoked key stops working right away. Billing, team members and API keys can't be managed with the API.
Rate limits
| Plan | Requests per minute, per key |
|---|---|
| Free | 10 |
| Pro | 60 |
| Team | 300 |
Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (Unix time). Over the limit, the API answers 429 with a Retry-After header in seconds. Plan limits apply exactly as in the dashboard: number of monitors, shortest interval, alert chain length.
Errors
Errors return a JSON body with a message, and upgrade_required: true when a plan limit is the reason:
{ "error": "Minimum check interval for free plan is 60s. Please upgrade.", "upgrade_required": true }
| Status | Meaning |
|---|---|
| 400 | A field is missing or invalid. The message says which. |
| 401 | No key, an invalid key or a revoked key. |
| 403 | A read-only key tried to change something, or a plan limit was reached. |
| 404 | Not found in this workspace. |
| 429 | Rate limit reached. Wait for Retry-After. |
Monitors
| Endpoint | What it does |
|---|---|
GET /monitors | All monitors, newest first, with checks and uptime over 24 hours. |
POST /monitors | Create a monitor. |
GET /monitors/{id} | One monitor with its last checks, alert chain, incidents and uptime. |
PUT /monitors/{id} | Change a monitor. Only the fields you send change. PATCH works the same. |
POST /monitors/{id}/pause | Pause checks. |
POST /monitors/{id}/resume | Resume checks. Counts against your plan's active monitors. |
DELETE /monitors/{id} | Delete the monitor and its history. |
GET /monitors/{id}/checks | Check history, within your plan's history. |
GET /monitors/{id}/uptime | Uptime over the periods your plan keeps. |
Create an HTTP monitor that checks every minute and expects a 200:
curl -X POST https://api.failover.io/v1/monitors \
-H "Authorization: Bearer fo_live_..." \
-H "Content-Type: application/json" \
-d '{"name": "Checkout API", "url": "https://example.com/health", "interval_seconds": 60, "expected_status": 200}'
Create a heartbeat monitor for a cron job. The response's url is the address the job pings:
curl -X POST https://api.failover.io/v1/monitors \
-H "Authorization: Bearer fo_live_..." \
-H "Content-Type: application/json" \
-d '{"name": "Nightly backup", "type": "heartbeat", "interval_seconds": 86400, "grace_period_seconds": 900}'
Main fields: name, type (http or heartbeat), url, method, interval_seconds, timeout_seconds (1 to 30), expected_status, keyword (must contain), keyword_absent (must not contain), ssl_check, retry_threshold (1 to 10), grace_period_seconds (heartbeat), tags, custom_headers and request_body. The OpenAPI file lists them all with their limits. The shortest interval depends on the plan: 60 seconds on Free, 30 on Pro, 15 on Team.
Pause a monitor during a deploy, then resume it:
curl -X POST https://api.failover.io/v1/monitors/MONITOR_ID/pause -H "Authorization: Bearer fo_live_..."
./deploy.sh
curl -X POST https://api.failover.io/v1/monitors/MONITOR_ID/resume -H "Authorization: Bearer fo_live_..."
A heartbeat ping itself needs no key: POST https://api.failover.io/heartbeat/MONITOR_ID. See how to monitor cron jobs.
Incidents
| Endpoint | What it does |
|---|---|
GET /incidents | Incidents, newest first. Filters: monitor_id, status (open or resolved), since (Unix seconds), limit (1 to 100, default 50). |
GET /incidents/{id} | One incident. |
POST /incidents/{id}/acknowledge | Acknowledge it. The alert chain stops, the same as the link in an alert. |
Open incidents right now:
curl "https://api.failover.io/v1/incidents?status=open" -H "Authorization: Bearer fo_live_..."
{
"incidents": [
{ "id": "...", "monitor_id": "...", "monitor_name": "Checkout API", "status": "open", "type": "downtime",
"started_at": 1763712000, "acknowledged_at": null, "acknowledged_by": null, "resolved_at": null }
],
"next_cursor": null
}
When next_cursor isn't null, pass it as cursor to get the next page. Acknowledge from a script or a chat bot:
curl -X POST https://api.failover.io/v1/incidents/INCIDENT_ID/acknowledge -H "Authorization: Bearer fo_live_..."
The answer's state is acknowledged, already_acknowledged or already_resolved. An incident acknowledged with the API shows acknowledged_by: "api". How acknowledging works in the alert chain: acknowledging.
Status pages
GET /status-pages lists your status pages and GET /status-pages/{id} returns one with its monitors. Status pages are read only in the API for now.
Check a key
GET /me returns the workspace plan, the key's access (read or write) and its rate limit. It's a quick way to test a key:
curl https://api.failover.io/v1/me -H "Authorization: Bearer fo_live_..."
{ "plan": "pro", "access": "write", "via": "api_key", "rate_per_minute": 60 }
Versioning
Everything under /v1 keeps working as documented. New fields and endpoints can appear in v1; anything that would break an existing integration goes into a new version. Questions or a missing endpoint? Use the contact form.