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.
| Scope | Endpoints |
|---|---|
| read:monitors | GET /monitors, GET /monitors/{id} |
| read:results | GET /monitors/{id}/results, GET /monitors/{id}/availability |
| read:incidents | GET /incidents |
| read:sla | GET /sla |
| read:status | GET /status/{slug} |
Errors
| Status | error | When |
|---|---|---|
| 401 | Missing bearer token | There is no Authorization header, or it is not a Bearer token. |
| 401 | Invalid or expired API key | The key is unknown, revoked or past its expiry date. |
| 429 | Rate limit exceeded | More than 120 requests in the current 60 second window for this key. |
| 403 | Missing required scope: <scope> | The key is valid but does not carry the scope the endpoint needs. |
| 404 | Monitor not found / Status page not found | No 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"]
}
]
}| Field | Type | Meaning |
|---|---|---|
| id | string | Monitor id. |
| name | string | Monitor name. |
| type | string | http, tcp, udp, ping, dns, domain, pg, redis, mongo or custom. |
| enabled | boolean | False when the monitor is paused. |
| status | string | up, down, degraded, pending, or paused when enabled is false. |
| intervalSeconds | number | Seconds between checks. |
| lastCheckedAt | string or null | ISO 8601 time of the latest check. |
| lastDurationMs | number or null | Duration of the latest check. |
| tags | string[] | 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:
| Field | Type | Meaning |
|---|---|---|
| timeoutMs | number | The monitor's timeout in milliseconds. |
| validationMode | string | static (simple rules), js or llm. |
| lastChangedAt | string or null | When the status last changed. |
| lastError | string or null | The error of the latest check, if it failed. |
| availability24h | object | { 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 afterfromand at or beforetoare returned. To page through history, movetoback to thestartedAtof 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 }
}
]
}| Field | Type | Meaning |
|---|---|---|
| startedAt | string | ISO 8601 time the check started. |
| status | string | up, down or degraded. |
| durationMs | number | How long the check took. |
| statusCode | number or null | HTTP status code, when the check has one. |
| verdict | string or null | pass or fail. |
| error | string or null | The failure reason, if any. |
| timings | object or null | Phase 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
}
]
}| Field | Type | Meaning |
|---|---|---|
| id | string | Incident id. |
| monitorId | string or null | The monitor the incident belongs to. |
| status | string | open, acknowledged or resolved. |
| severity | string | critical, major, minor or maintenance. |
| title | string | Incident title. |
| cause | string or null | Why it opened. |
| startedAt | string | ISO 8601 time. |
| resolvedAt | string or null | ISO 8601 time, null while it is not resolved. |
| durationSeconds | number or null | Length 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
}
]
}| Field | Type | Meaning |
|---|---|---|
| id, name | string | The objective's id and name. |
| scopeType, scopeId | string | monitor or service, and that monitor's or service's id. |
| targetUptime | number | Target, as a percentage. |
| actualUptime | number | Share of checks in the window that were not down, as a percentage. 100 when there are no checks. |
| breached | boolean | True when actualUptime is below targetUptime. |
| errorBudgetRemainingSeconds | number | Seconds of downtime left in the window, never below 0. |
| windowDays | number | Length 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, latencyBreached | number or null, number or null, boolean | Measured 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"
}
]
}
}| Field | Type | Meaning |
|---|---|---|
| title | string | The page title. |
| overall | string | up, degraded or down: the worst status of the page's items. |
| components | array | Items 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. |
| incidents | array | Recent incidents of the whole organization, up to 20, newest first; empty when the page hides past problems. Each is { title, status, severity, startedAt, resolvedAt }. |