Skip to content

Use the DownBad API

Goal: list, read, create, change, pause, resume and delete your monitors, create heartbeats, read your bundles, start and end maintenance, list open incidents, see your plan’s usage, export your setup, check whether DownBad is working, and run a domain health check, from a script, a CI job or an AI agent.

The DownBad API is a set of web addresses a program calls instead of using the app. Every request carries an API key, the secret string starting with dbk_ that you make under Account › API keys, so DownBad knows which account it is for and what it may do.

  1. Make an API key. Follow Create and Revoke API Keys. Choose Read if the program only looks, or Read and write if it changes monitors.

  2. Store the key where your program reads secrets, such as your CI service’s secret settings. The examples below read it from an environment variable named DOWNBAD_API_KEY:

    Terminal window
    export DOWNBAD_API_KEY='dbk_…'
  • Base address: https://downbad.app/api/public/v1. Every path below is added to it.
  • Sign-in: send the key in the Authorization header as a bearer token, meaning the word Bearer, a space, then the key: Authorization: Bearer dbk_…. Cookies are never used. Three endpoints need no key: the health check, DownBad’s status and the OpenAPI document.
  • Format: requests and responses are JSON. Field names are camelCase. Times are in UTC, in ISO 8601 format, such as 2026-12-04T05:00:00.000Z.
  • Your account only: a key sees only the account it was made in. A monitor id from another account answers 404, as if it did not exist.
  • Version: v1 keeps its fields and behavior. A change that would break a script ships as a new version at a new address.

Every endpoint, with the exact shape of each request and answer, is described in an OpenAPI document: a standard file that API tools, code generators and AI agents read to learn how to call an API. It is built from the same rules DownBad uses to check each request, so it always matches what the API accepts. Reading it needs no key:

Terminal window
curl -s https://downbad.app/api/public/v1/openapi.json

Open the OpenAPI document (OpenAPI 3.1). Import it into a tool such as Postman or Insomnia, or point a client generator at it.

List every monitor:

Terminal window
curl -s https://downbad.app/api/public/v1/monitors \
-H "Authorization: Bearer $DOWNBAD_API_KEY"

Expected result:

{
"monitors": [
{
"id": "0b9c6f3e-5d0a-4d8e-9a51-6f1f2f0c7a10",
"name": "Shop health",
"kind": "url",
"target": "https://shop.example.com/health",
"status": "HEALTHY",
"paused": false,
"intervalSeconds": 300,
"notificationProfileId": "5f2d8a4c-1b7e-4f0a-8c3d-2e6b9a1d4c70",
"bundleId": null,
"lastCheckedAt": "2026-12-04T04:55:00.000Z",
"nextCheckAt": "2026-12-04T05:00:00.000Z",
"mutedUntil": null,
"mutedUntilResolved": false,
"createdAt": "2026-11-20T09:12:44.000Z"
}
]
}

Read one monitor by its id:

Terminal window
curl -s https://downbad.app/api/public/v1/monitors/0b9c6f3e-5d0a-4d8e-9a51-6f1f2f0c7a10 \
-H "Authorization: Bearer $DOWNBAD_API_KEY"

The answer is { "monitor": { … } } with the same fields. A monitor’s settings, such as request headers, are never returned, and neither is a heartbeat’s ping address: that is returned only once, when the heartbeat is created (see Create a heartbeat).

A bundle is the set of monitors DownBad watches for one domain. List them, each with its monitors by id:

Terminal window
curl -s https://downbad.app/api/public/v1/bundles \
-H "Authorization: Bearer $DOWNBAD_API_KEY"

Expected result:

{
"bundles": [
{
"id": "7c1e2a90-3f4b-4d6c-9e8a-1b2c3d4e5f60",
"domain": "shop.example.com",
"notificationProfileId": "5f2d8a4c-1b7e-4f0a-8c3d-2e6b9a1d4c70",
"monitorIds": ["0b9c6f3e-5d0a-4d8e-9a51-6f1f2f0c7a10"],
"monitorCount": 1,
"pausedCount": 0,
"maintenanceCount": 0,
"createdAt": "2026-11-20T09:12:40.000Z"
}
]
}

Read one bundle by its id to get each of its monitors in full, in the same shape as Read your monitors:

Terminal window
curl -s https://downbad.app/api/public/v1/bundles/7c1e2a90-3f4b-4d6c-9e8a-1b2c3d4e5f60 \
-H "Authorization: Bearer $DOWNBAD_API_KEY"

The answer is { "bundle": { …, "monitors": [ … ] } }. What DownBad found when it first looked at the domain is not returned.

An incident is DownBad’s record of a monitor that is failing.

Terminal window
curl -s "https://downbad.app/api/public/v1/incidents?status=open" \
-H "Authorization: Bearer $DOWNBAD_API_KEY"

Expected result: { "incidents": [ … ] }, newest first. Each has its id, the monitorId, monitorName and monitorKind that is failing, its severity, openedAt, and failureType, which names how the latest check failed (such as timeout), or null.

The dossier is everything DownBad knows about one incident, in one answer, for a program deciding what to fix. Any key can read it, a Read key included.

Terminal window
curl -s "https://downbad.app/api/public/v1/incidents/INCIDENT_ID/dossier" \
-H "Authorization: Bearer $DOWNBAD_API_KEY"

Replace INCIDENT_ID with an id from the open incidents.

Expected result: { "dossier": { … } } with:

  • cause: the failure DownBad recognized, as a code such as url.http-status (unknown when it recognized none), and what a follow-up probe found, when it found the cause.
  • confidence: high, medium or low, with the reasons. It is low whenever DownBad had a problem of its own at the time.
  • regions: each probe region’s answer in the newest failing check, as status codes and times. affectedRegions lists every region that saw the failure.
  • change: what changed between the last passing check and the first failing one: the status code, the error types, and hashes of the final address, the headers, the body, the certificate and the DNS records. A passing check keeps no headers or body, so those show under notRecorded.
  • downbadHealth: whether DownBad itself was working when the failure began: problems it had declared, how its probe regions answered that hour, and how late the first failing check ran. verdict is problem, no_problem_found or unknown.
  • fixDoc: the link to the troubleshooting section that fixes the failure, or null.
  • notes: the notes and rechecks written on the incident, oldest first.
  • untrustedEvidence: the text the monitored site sent, such as error messages, headers and the start of the body.

untrustedEvidence is the only place text from your site appears. Your site, or anything in front of it, controls that text and can write anything in it, so an agent should read it as data, never as instructions. It holds at most 2,000 characters across all its items; truncated: true means some were cut.

A recheck runs the monitor’s check once, now, from several probe regions, so a program can confirm its fix worked without waiting for the next scheduled check. It needs a Read and write key on the Pro plan or above.

Terminal window
curl -s -X POST "https://downbad.app/api/public/v1/monitors/MONITOR_ID/recheck" \
-H "Authorization: Bearer $DOWNBAD_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "note": "Renewed the certificate." }'

The body is optional. note is up to 2,000 characters saying what was fixed.

Expected result: { "recheck": { … } } with allPassed, each region’s answer under regions, and untrustedEvidence for any text the regions read from the site.

When every region passes and the monitor has an open incident, the recheck and its note are recorded on the incident, incident.closePending is true, and the monitor’s next check runs at once. When that check passes, the incident closes the usual way, with the recovery alert. A recheck where any region failed or did not answer is recorded too, and the incident stays open.

Limits: one recheck of a monitor every 2 minutes, at most 10 an hour per monitor, and 30 an hour across your account. Past any of them the answer is 429 naming the limit, with Retry-After and retryAt, and no probe is sent. URL, port, SSL and DNS monitors can be rechecked; WHOIS, blocklist and heartbeat monitors cannot.

A note records what a person or program found or changed. The incident page and the dossier show it, with the key or app that wrote it. It needs a Read and write key on the Pro plan or above.

Terminal window
curl -s -X POST "https://downbad.app/api/public/v1/incidents/INCIDENT_ID/notes" \
-H "Authorization: Bearer $DOWNBAD_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "text": "Origin was returning 503 after a bad deploy; rolled it back." }'

Expected result: 201 and { "note": { … } }. text is 1 to 2,000 characters. A note can be added to an open or a resolved incident.

When a program or agent finds that an alert was wrong (the site was up the whole time, say), it can tell DownBad, with what it saw. The report is kept with the incident, and DownBad’s team reviews every report to find checks that misjudge a site. It needs a Read and write key on the Pro plan or above, like any other change.

  1. Find the incident’s id with GET /incidents?status=open, or keep the one an alert gave you.

  2. Send the report:

    Terminal window
    curl -s -X POST "https://downbad.app/api/public/v1/incidents/INCIDENT_ID/false-alarm" \
    -H "Authorization: Bearer $DOWNBAD_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
    "summary": "The site answered 200 from three networks during the incident.",
    "evidence": "curl -sI https://shop.example.com -> HTTP/2 200 at 2026-12-04T09:02:00Z"
    }'

Expected result: 201 and { "report": { … } } with the report’s id, the incident and monitor it is on, and how much of the evidence was kept. summary is 1 to 500 characters. evidence is what the program observed, such as command output or response headers; up to 4,000 characters are kept, and report.evidence.truncated is true when more was sent. The evidence is not sent back. Open and resolved incidents can both be reported, and an incident can be reported more than once.

DownBad treats the evidence as untrusted text: it may quote the monitored site, so it is only ever shown as data. Do not put passwords or keys in it.

Feedback sent through the API is kept the same way as feedback sent from the app, with an FB reference such as FB-7KQ2MX to follow it by. Any key can send it: a Read key, a Viewer’s key and a key on the Free plan included, because feedback changes nothing in your account.

  1. Send it. type is wrong_result (a monitor result that looks wrong), bug, idea or question; text is 1 to 5,000 characters. context is optional: a monitorId from GET /monitors, and the page it is about.

    Terminal window
    curl -s -X POST "https://downbad.app/api/public/v1/feedback" \
    -H "Authorization: Bearer $DOWNBAD_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{ "type": "wrong_result", "text": "Checkout shows down, but it loads from here.", "context": { "monitorId": "MONITOR_ID" } }'

    Expected result: 201 and { "reference": "FB-7KQ2MX", "status": "received", "createdAt": "…" }. The item is saved at once, even when DownBad’s team tools are unreachable.

  2. Read its status by the reference, in any letter case:

    Terminal window
    curl -s "https://downbad.app/api/public/v1/feedback/FB-7KQ2MX" \
    -H "Authorization: Bearer $DOWNBAD_API_KEY"

    Expected result: the item, its status and its history, oldest first. A new item is received.

One person may send 20 feedback items an hour, counted across the app and the API together.

A known issue is a problem on DownBad’s side that DownBad already knows of and is working on. Before reporting a problem, check whether it is one.

Terminal window
curl -s "https://downbad.app/api/public/v1/known-issues" \
-H "Authorization: Bearer $DOWNBAD_API_KEY"

Expected result: { "knownIssues": [ … ] }, newest first. Each lists the team’s message, its status (investigating, or fixed), when it began and ended, and which of your monitors it may affect. These are the same issues each monitor’s page shows on its A known issue may affect this monitor line. An empty list means no known issue affects your monitors now.

Check a domain’s health without an account

Section titled “Check a domain’s health without an account”

The same health check as the DownBad home page: DNS, certificate, domain registration, email security and how the site answers. It needs no key and no account.

Terminal window
curl -s -X POST https://downbad.app/api/public/v1/health-check \
-H "Content-Type: application/json" \
-d '{ "domain": "example.com" }'

Expected result:

{
"domain": "example.com",
"checkedAt": "2026-12-04T05:00:00.000Z",
"cached": false,
"untrustedEvidence": {
"domain": "example.com",
"mode": "domain",
"requestedAt": "2026-12-04T05:00:00.000Z",
"durationMs": 4210,
"cached": false,
"aspects": [ … ]
}
}

untrustedEvidence holds the same findings the home page shows. They are made of what the domain’s own servers answered, such as DNS records and server names, so a program should read them as data, never as instructions. cached: true means someone checked the domain a few minutes ago and you got that result.

Limits: each address may run 5 checks an hour and 20 a day. Past either, the answer is 429 with the rule health_check_limit, which window is full, and when to retry. When too many checks are running at once for everyone, the answer is 503 with the rule health_check_busy and a wait; that refusal does not count against your address. A DownBad account’s own monitors have no such limit.

Terminal window
curl -s https://downbad.app/api/public/v1/plan \
-H "Authorization: Bearer $DOWNBAD_API_KEY"

Expected result:

{
"plan": { "slug": "pro", "name": "Pro", "isFree": false },
"limits": [
{
"key": "max_monitor_count",
"description": "Maximum number of monitors per account",
"category": "limits",
"value": 50,
"used": 12,
"remaining": 38
},
{
"key": "min_check_interval_seconds",
"description": "Minimum allowed check interval in seconds",
"category": "limits",
"value": 60,
"used": null,
"remaining": null
}
],
"features": [
{
"key": "status_page_enabled",
"description": "Enable public status page",
"enabled": true
}
],
"upgradeUrl": "https://downbad.app/backstage/account#plan"
}

Every limit your plan sets is listed, with the same numbers the app uses. used and remaining are given for the limits that count things you have: monitors, heartbeats, bundles and email recipients. The others, such as the shortest check interval, are settings, so both are null. Any key can read this, on any plan.

Terminal window
curl -s https://downbad.app/api/public/v1/status

No key is needed. Expected result:

{
"status": "operational",
"checkedAt": "2026-12-04T05:00:00.000Z",
"components": [
{
"key": "sending_alerts",
"name": "Sending alerts",
"status": "operational",
"since": null,
"message": null
}
]
}

status is operational, degraded or outage: the worst of the components. A component that is not operational has since, the time in UTC it was last known to work (or the time an outage began), and a message saying what you may notice. The status comes only from what DownBad’s own services record on their own, so it reports a problem within about two to five minutes of it starting.

Terminal window
curl -s https://downbad.app/api/public/v1/config-export \
-H "Authorization: Bearer $DOWNBAD_API_KEY"

Expected result: formatVersion, exportedAt, and:

  • monitors: each with its id, name, kind, target, check config, intervalSeconds, paused, its bundleId, its groupIds and the name of its notificationProfile;
  • bundles and groups: each with the monitorIds it holds;
  • alertSettings.profiles: your notification profiles, with each rule’s channels named;
  • alertSettings.channels: each channel’s type and name only.

Nothing secret is exported: no channel address, webhook URL, token or header, no monitor request header or request body, no password saved in a URL, and no heartbeat ping address. A Read key is enough.

Changes need a Read and write key, made by an Owner or Editor, on a paid plan. See Who can change what.

Create a monitor. kind is one of url, port, dns, ssl, whois or heartbeat, and config takes the same settings as the app’s form for that kind. Every monitor needs a notification profile: copy a notificationProfileId from one of your monitors, or pass a bundleId whose profile it should follow.

Terminal window
curl -s -X POST https://downbad.app/api/public/v1/monitors \
-H "Authorization: Bearer $DOWNBAD_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Shop health",
"kind": "url",
"config": { "url": "https://shop.example.com/health" },
"notificationProfileId": "5f2d8a4c-1b7e-4f0a-8c3d-2e6b9a1d4c70"
}'

Expected result: 201 and { "monitor": { … } }. Without intervalSeconds, your plan’s default interval for the kind is used, and the monitor’s first check is due at once: nextCheckAt in the answer says when.

A heartbeat watches a scheduled job, such as a backup or a cron task: the job calls the heartbeat’s ping URL each time it runs, and DownBad alerts when a call doesn’t arrive on schedule. Create one with kind heartbeat and a schedule (here every 3,600 seconds, with 300 seconds of grace before a late run counts as missed). A heartbeat takes no intervalSeconds.

Terminal window
curl -s -X POST https://downbad.app/api/public/v1/monitors \
-H "Authorization: Bearer $DOWNBAD_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Nightly backup",
"kind": "heartbeat",
"config": {
"schedule": { "type": "interval", "periodSeconds": 3600 },
"graceSeconds": 300
},
"notificationProfileId": "5f2d8a4c-1b7e-4f0a-8c3d-2e6b9a1d4c70"
}'

Expected result: 201 and { "monitor": { … }, "pingUrl": "https://ping.downbad.app/…" }.

This answer is the only time the API returns the ping URL. Store it where your job reads its settings, such as a secret in your CI or deploy tool. Anyone holding it can report a run for this heartbeat, so treat it like a password. If you lose it, an Owner or Editor can copy it from the heartbeat’s page in DownBad; choose Regenerate there if it may have leaked, and the old one stops working at once.

Then have the job call it at the end of each successful run:

Terminal window
curl -fsS -m 10 --retry 3 "$BACKUP_PING_URL"

Expected result: the heartbeat’s page in DownBad shows the run as its last ping, and the heartbeat is up until the next run is due.

Change a monitor. Send only the fields to change: name, description, intervalSeconds, notificationProfileId, config (which replaces the whole config) or bundleId (null takes it out of its bundle).

Terminal window
curl -s -X PATCH https://downbad.app/api/public/v1/monitors/0b9c6f3e-5d0a-4d8e-9a51-6f1f2f0c7a10 \
-H "Authorization: Bearer $DOWNBAD_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "Shop health (EU)" }'

Pause a monitor, for example while a deploy runs, and resume it after:

Terminal window
curl -s -X POST https://downbad.app/api/public/v1/monitors/0b9c6f3e-5d0a-4d8e-9a51-6f1f2f0c7a10/pause \
-H "Authorization: Bearer $DOWNBAD_API_KEY"
curl -s -X POST https://downbad.app/api/public/v1/monitors/0b9c6f3e-5d0a-4d8e-9a51-6f1f2f0c7a10/resume \
-H "Authorization: Bearer $DOWNBAD_API_KEY"

Expected result: the monitor, with "paused": true after a pause and "paused": false after a resume.

Delete a monitor, with all of its history:

Terminal window
curl -s -X DELETE https://downbad.app/api/public/v1/monitors/0b9c6f3e-5d0a-4d8e-9a51-6f1f2f0c7a10 \
-H "Authorization: Bearer $DOWNBAD_API_KEY"

Expected result: { "id": "0b9c6f3e-…", "deleted": true }. A delete can’t be undone.

Channels, alert profiles with their escalation steps, and quiet hours can be created, tested and changed through the API too, and any key can ask who hears about a monitor’s alerts and when, or dry-run an alert without sending it. See Manage alerting through the API.

Every change made through the API is recorded in your account’s API activity, with the person and the key that made it. Read it in Account › API activity, or from the API with any key, a Read key included:

Terminal window
curl -s "https://downbad.app/api/public/v1/audit-log?limit=50" \
-H "Authorization: Bearer $DOWNBAD_API_KEY"

Expected result: { "entries": [ … ], "nextBefore": "…" }, newest first. Pass nextBefore as before for the next page; it is null on the last one. See Read the API activity log for what each entry holds.

Wrap a deploy in maintenance so it doesn’t page anyone: while a window runs, its monitors keep being checked, but no alert goes out for them. It works exactly as maintenance started in the app; see Put monitors into maintenance for what changes while it runs. Starting a window needs a Read and write key on a plan that includes maintenance.

Start maintenance now on a bundle, on monitors, or both. Give an end with durationMinutes (from now) or endsAt (a time in UTC), or leave both out to keep it until you end it:

Terminal window
curl -s -X POST https://downbad.app/api/public/v1/maintenance-windows \
-H "Authorization: Bearer $DOWNBAD_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"bundleIds": ["7c1e2a90-3f4b-4d6c-9e8a-1b2c3d4e5f60"],
"durationMinutes": 30
}'

Expected result: 201 and { "window": { "id": "…", "coveredMonitorIds": [ … ], "startsAt": "…", "endsAt": "…", "endedAt": null, … } }. coveredMonitorIds lists every monitor the window holds alerts for: a bundle’s monitors are taken as they are at that moment. Keep the window’s id to end it.

End maintenance when the deploy is done:

Terminal window
curl -s -X POST https://downbad.app/api/public/v1/maintenance-windows/1d7f3c52-8a6e-4b19-a0c4-5e2f9d8b7a31/end \
-H "Authorization: Bearer $DOWNBAD_API_KEY"

Expected result: the window with endedAt set. A monitor still failing gets 5 more minutes to come back before it alerts. Ending works on every plan.

List the windows running now with any key:

Terminal window
curl -s https://downbad.app/api/public/v1/maintenance-windows \
-H "Authorization: Bearer $DOWNBAD_API_KEY"

Expected result: { "windows": [ … ] }, oldest first.

DownBad checks three things on every change, in this order, using the account as it is at that moment:

  1. The role of the person who made the key. Owners and Editors can change things. Viewers can only read, so a key made by someone who is now a Viewer can no longer change anything, from the next request on.
  2. The key’s scope. A Read key can only read.
  3. The account’s plan. On the Free plan the API can read but not change anything. Upgrade to make changes through the API.

Sending feedback is the exception: any key may send it, whatever its role, scope or plan.

Plan limits apply too: a create that would take you past your plan’s monitor or heartbeat count, an interval faster than your plan allows, or maintenance on a plan without it, is refused. The refusal names the limit, how much of it you use now and where to upgrade.

  • 60 requests a minute per key, reads included, counted over the last 60 seconds. Each key has its own allowance.
  • 100 requests a minute per address, whatever key each one carries, shared by every key, the MCP server and DownBad itself used from that address.
  • 5 health checks an hour and 20 a day per address for the health check without an account.
  • Rechecks: one per monitor every 2 minutes, 10 an hour per monitor, and 30 an hour per account.
  • Feedback: 20 items an hour per person, across the app and the API.
  • Every response carries X-RateLimit-Limit and X-RateLimit-Remaining.
  • Over the limit, the answer is 429 with a Retry-After header in seconds, and the same wait in the body as retryAfter, with the time as retryAt. Wait that long, then retry.

Every refusal is JSON with a code, a message that says what to do, and a details.rule naming the rule that refused it, with details.helpUrl linking to its fix:

{
"error": {
"code": "INSUFFICIENT_PERMISSIONS",
"message": "This token can only read: its scope is read. …",
"details": {
"rule": "read_only",
"helpUrl": "/docs/troubleshooting/public-api#the-token-can-only-read"
}
}
}

Each rule has its own section in DownBad API request refused.