Docs

REST API

A read-only JSON API for your organization's monitors, check results, availability, incidents, SLA objectives and status pages. It cannot create, change or delete anything.

Basics

  • Base address: https://possibug.com/api/v1. Every endpoint is a GET.
  • Successful responses are { "data": ... } with status 200. Errors are { "error": "message" } with the status code in the table below.
  • Timestamps are ISO 8601 strings in UTC. A field that has no value is null.
  • Lists are not paginated. Incidents returns the 200 most recent; results returns up to 1,000 (see below).
  • Every request sees only the organization the key belongs to. Which plans include API keys is on the pricing page.

Authentication

Create a key under API keys in the dashboard (this needs the admin role). Give it a name, tick at least one scope, and optionally set an expiry date. The full key, which starts with skl_, is shown once, right after you create it: copy it then. Possibug stores only a hash, so a lost key cannot be recovered; create a new one and revoke the old one. The key list shows each key's first characters, when it was last used and whether it is active, expired or revoked.

Send the key as a bearer token on every request:

Authorization: Bearer skl_...

The examples below read the key from an environment variable, POSSIBUG_API_KEY. The API allows requests from any website (see CORS), so do not put a key into a page that other people can read.

Scopes

A key carries one or more scopes, and an endpoint refuses a key that lacks its scope with a 403.

ScopeEndpoints
read:monitorsGET /monitors, GET /monitors/{id}
read:resultsGET /monitors/{id}/results, GET /monitors/{id}/availability
read:incidentsGET /incidents
read:slaGET /sla
read:statusGET /status/{slug}

Errors

StatuserrorWhen
401Missing bearer tokenThere is no Authorization header, or it is not a Bearer token.
401Invalid or expired API keyThe key is unknown, revoked or past its expiry date.
429Rate limit exceededMore than 120 requests in the current 60 second window for this key.
403Missing required scope: <scope>The key is valid but does not carry the scope the endpoint needs.
404Monitor not found / Status page not foundNo such monitor or page in the key's organization (a status page must also be public).
{ "error": "Missing required scope: read:results" }

Rate limit

Each key may make 120 requests in each 60 second window. A request over the limit gets a 429 with Retry-After (seconds until the window resets) and the headers X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset. These headers are sent on 429 responses only. The limit is counted before the scope is checked, so requests that are refused for a missing scope still count.

CORS

Responses carry Access-Control-Allow-Origin: *, allow the methods GET and OPTIONS and the headers Authorization and Content-Type.

List monitors

GET /monitors, scope read:monitors. Returns every monitor of the organization.

curl -H "Authorization: Bearer $POSSIBUG_API_KEY" \
  https://possibug.com/api/v1/monitors
{
  "data": [
    {
      "id": "<monitor id>",
      "name": "Checkout API",
      "type": "http",
      "enabled": true,
      "status": "up",
      "intervalSeconds": 60,
      "lastCheckedAt": "2026-01-15T09:30:00.000Z",
      "lastDurationMs": 182,
      "tags": ["prod"]
    }
  ]
}
FieldTypeMeaning
idstringMonitor id.
namestringMonitor name.
typestringhttp, tcp, udp, ping, dns, domain, pg, redis, mongo or custom.
enabledbooleanFalse when the monitor is paused.
statusstringup, down, degraded, pending, or paused when enabled is false.
intervalSecondsnumberSeconds between checks.
lastCheckedAtstring or nullISO 8601 time of the latest check.
lastDurationMsnumber or nullDuration of the latest check.
tagsstring[]The monitor's tags.

Get a monitor

GET /monitors/{id}, scope read:monitors. 404 if the id is not a monitor of the organization.

curl -H "Authorization: Bearer $POSSIBUG_API_KEY" \
  https://possibug.com/api/v1/monitors/<monitor id>
{
  "data": {
    "id": "<monitor id>",
    "name": "Checkout API",
    "type": "http",
    "enabled": true,
    "status": "up",
    "intervalSeconds": 60,
    "timeoutMs": 10000,
    "validationMode": "static",
    "lastCheckedAt": "2026-01-15T09:30:00.000Z",
    "lastChangedAt": "2026-01-14T22:05:12.000Z",
    "lastDurationMs": 182,
    "lastError": null,
    "tags": ["prod"],
    "availability24h": { "uptimePercent": 100, "total": 1440, "down": 0, "p95Ms": 240 }
  }
}

It returns the list fields and these:

FieldTypeMeaning
timeoutMsnumberThe monitor's timeout in milliseconds.
validationModestringstatic (simple rules), js or llm.
lastChangedAtstring or nullWhen the status last changed.
lastErrorstring or nullThe error of the latest check, if it failed.
availability24hobject{ uptimePercent, total, down, p95Ms } over the last 24 hours.

Check results

GET /monitors/{id}/results, scope read:results. Newest first. Query parameters:

  • limit: how many results, 100 by default, at most 1,000.
  • from, to: an ISO 8601 time. Only results that started at or after from and at or before to are returned. To page through history, move to back to the startedAt of the oldest result you have.
curl -H "Authorization: Bearer $POSSIBUG_API_KEY" \
  "https://possibug.com/api/v1/monitors/<monitor id>/results?limit=50&from=2026-01-15T00:00:00Z&to=2026-01-15T12:00:00Z"
{
  "data": [
    {
      "startedAt": "2026-01-15T09:30:00.000Z",
      "status": "up",
      "durationMs": 182,
      "statusCode": 200,
      "verdict": "pass",
      "error": null,
      "timings": { "dnsMs": 4.1, "tcpMs": 12.3, "tlsMs": 31.8, "ttfbMs": 160.2, "totalMs": 182.4, "tlsCertDaysRemaining": 61 }
    }
  ]
}
FieldTypeMeaning
startedAtstringISO 8601 time the check started.
statusstringup, down or degraded.
durationMsnumberHow long the check took.
statusCodenumber or nullHTTP status code, when the check has one.
verdictstring or nullpass or fail.
errorstring or nullThe failure reason, if any.
timingsobject or nullPhase timings: dnsMs, tcpMs, tlsMs, ttfbMs, totalMs and tlsCertDaysRemaining for HTTP checks; domain checks add domainDaysRemaining, domainExpiresAt, registrar and domainNote. Only the keys that apply are present.

Availability

GET /monitors/{id}/availability, scope read:results. The same figures for four windows, keyed 24h, 7d, 30d and 90d. Each window has uptimePercent (the share of checks that were not down; 100 when there were no checks), total (checks), down, degraded, avgMs and p95Ms (the last two are null when there are no checks). Degraded checks count as up for uptimePercent.

curl -H "Authorization: Bearer $POSSIBUG_API_KEY" \
  https://possibug.com/api/v1/monitors/<monitor id>/availability
{
  "data": {
    "24h": { "uptimePercent": 100, "total": 1440, "down": 0, "degraded": 0, "avgMs": 175.2, "p95Ms": 240 },
    "7d":  { "uptimePercent": 99.98, "total": 10080, "down": 2, "degraded": 5, "avgMs": 181.9, "p95Ms": 260 },
    "30d": { "...": "same fields" },
    "90d": { "...": "same fields" }
  }
}

Incidents

GET /incidents, scope read:incidents. The 200 most recent incidents, newest first. Optional query parameter status: open, acknowledged or resolved.

curl -H "Authorization: Bearer $POSSIBUG_API_KEY" \
  "https://possibug.com/api/v1/incidents?status=open"
{
  "data": [
    {
      "id": "<incident id>",
      "monitorId": "<monitor id>",
      "status": "open",
      "severity": "major",
      "title": "Checkout API is down",
      "cause": "connect to api.example.com timed out after 10000ms",
      "startedAt": "2026-01-15T09:30:00.000Z",
      "resolvedAt": null,
      "durationSeconds": null
    }
  ]
}
FieldTypeMeaning
idstringIncident id.
monitorIdstring or nullThe monitor the incident belongs to.
statusstringopen, acknowledged or resolved.
severitystringcritical, major, minor or maintenance.
titlestringIncident title.
causestring or nullWhy it opened.
startedAtstringISO 8601 time.
resolvedAtstring or nullISO 8601 time, null while it is not resolved.
durationSecondsnumber or nullLength of the incident once resolved.

SLA objectives

GET /sla, scope read:sla. Every SLA objective of the organization with its current figures for its window.

curl -H "Authorization: Bearer $POSSIBUG_API_KEY" \
  https://possibug.com/api/v1/sla
{
  "data": [
    {
      "id": "<objective id>",
      "name": "Checkout availability",
      "scopeType": "monitor",
      "scopeId": "<monitor id>",
      "targetUptime": 99.9,
      "actualUptime": 99.97,
      "breached": false,
      "errorBudgetRemainingSeconds": 1814,
      "windowDays": 30,
      "p95Ms": 240,
      "latencyP95Ms": null,
      "latencyBreached": false
    }
  ]
}
FieldTypeMeaning
id, namestringThe objective's id and name.
scopeType, scopeIdstringmonitor or service, and that monitor's or service's id.
targetUptimenumberTarget, as a percentage.
actualUptimenumberShare of checks in the window that were not down, as a percentage. 100 when there are no checks.
breachedbooleanTrue when actualUptime is below targetUptime.
errorBudgetRemainingSecondsnumberSeconds of downtime left in the window, never below 0.
windowDaysnumberLength of the window in days for a rolling objective. An objective set to Calendar month measures from the start of the current month (UTC), whatever this number is.
p95Ms, latencyP95Ms, latencyBreachednumber or null, number or null, booleanMeasured p95 latency, the objective's p95 limit if it has one, and whether the limit is exceeded.

Status page

GET /status/{slug}, scope read:status. The slug is the one in the page address (/status/<slug>). The page must belong to the key's organization and be public; otherwise the answer is 404. See status pages.

curl -H "Authorization: Bearer $POSSIBUG_API_KEY" \
  https://possibug.com/api/v1/status/<slug>
{
  "data": {
    "title": "Example status",
    "overall": "up",
    "components": [
      { "label": "Website", "status": "up", "uptimePercent": 100 }
    ],
    "incidents": [
      {
        "title": "Checkout API is down",
        "status": "resolved",
        "severity": "major",
        "startedAt": "2026-01-14T22:00:00.000Z",
        "resolvedAt": "2026-01-14T22:05:12.000Z"
      }
    ]
  }
}
FieldTypeMeaning
titlestringThe page title.
overallstringup, degraded or down: the worst status of the page's items.
componentsarrayItems on the page: { label, status, uptimePercent }. status is up, down, degraded, paused or pending; uptimePercent is null when uptime is hidden or there are no checks.
incidentsarrayRecent incidents of the whole organization, up to 20, newest first; empty when the page hides past problems. Each is { title, status, severity, startedAt, resolvedAt }.