API reference
List incidents
List incidents with the Uptenna API, newest first: filter by monitor and by open or resolved, and page through the history with a cursor.
GET https://uptenna.com/v1/incidents
Your incidents, newest first, optionally for one monitor or only open or resolved ones. Paginated with a cursor.
When next_cursor is null there are no more pages. Cursors are opaque: pass them back as they are.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
monitor_id | string | no | Only this monitor's incidents. |
status | string | no | Only open or only resolved incidents. One of open, resolved. |
limit | integer | no | 1 to 100. Default 50. |
cursor | string | no | The next_cursor of the previous page. |
Example request
curl "https://uptenna.com/v1/incidents?status=resolved&limit=20" \
-H "Authorization: Bearer $UPTENNA_API_KEY"const res = await fetch("https://uptenna.com/v1/incidents?status=resolved&limit=20", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.UPTENNA_API_KEY}`,
},
});
if (!res.ok) throw new Error((await res.json()).error.message);
const { data } = await res.json();Response
Returns 200 OK with data, a list of incident objects, and next_cursor.
{
"data": [
{
"id": "inc_b8Q2mXz4LkTe",
"monitor_id": "mon_Xk3v9QmT2bLp",
"monitor_name": "API",
"kind": "http",
"status": "resolved",
"severity": "down",
"reason": "status_503",
"reason_text": "Got HTTP 503 (expected 2xx or 3xx)",
"status_code": 503,
"started_at": "2026-11-28T03:12:00.000Z",
"resolved_at": "2026-11-28T03:16:00.000Z"
}
],
"next_cursor": "MTc2NDI5OTUyMDAwMC5pbmNfYjhRMm1YejRMa1Rl"
}Errors
Errors look like { "error": { "code", "message" } } (see Errors).
| Status | Code | When |
|---|---|---|
| 400 | invalid_parameter | status, limit or cursor isn't valid. |
| 401 | unauthorized | The Authorization header is missing, malformed, or the key is unknown or revoked. |
| 429 | rate_limited | More than 120 requests in 60 seconds with this key. Wait for the Retry-After header's seconds. |