Ausfälle auflisten (Organisation)
GET /api/incidents?organizationId=:organizationId
Ausfälle auflisten (Organisation)
GET /api/incidents?organizationId=:organizationId
Listet Incidents für eine Organisation auf. Die Daten sind durch deine Session/Permissions eingeschränkt.
Readonly-User sehen nur Incidents für Kunden, denen sie zugewiesen sind.
Authentifizierung
Erfordert eine gültige Session.
- Header:
Authorization: Bearer <token>
Query Parameter
organizationId(optional): Wenn nicht gesetzt, wird dieorganizationIdaus deiner Session verwendet.limit(optional, Standard:100, max:500): Maximale Anzahl an Incidents.offset(optional, Standard:0): Pagination-Offset.includeTotal(optional, Standard:0): Wenn1(odertrue), enthält die Response zusätzlichtotal,limitundoffset.
Beispiel (cURL)
BASE_URL="https://uptimeify.io"
TOKEN="<dein-api-token>"
curl -X GET "$BASE_URL/api/incidents?organizationId=1" \
-H "Authorization: Bearer $TOKEN" \
-H "Accept: application/json"
Pagination:
curl -X GET "$BASE_URL/api/incidents?organizationId=1&limit=100&offset=0" \
-H "Authorization: Bearer $TOKEN" \
-H "Accept: application/json"
Antwort (Auszug)
[
{
"id": 123,
"websiteId": 101,
"status": "open",
"severity": "downtime",
"started_at": "2026-02-26T12:10:00.000Z",
"resolved_at": null,
"last_notified_at": "2026-02-26T12:11:00.000Z",
"error_message": "Timeout",
"status_code": null,
"response_time_ms": null,
"website": {
"id": 101,
"name": "Main Marketing Site",
"url": "https://example.com",
"status": "active"
},
"customer": {
"id": 12,
"email": "ops@example.com",
"company": "Acme Corp"
}
}
]
Wenn includeTotal=1, ändert sich das Response-Format zu:
{
"incidents": [],
"total": 1234,
"limit": 100,
"offset": 0
}
Häufige Fehler
400 Organization ID is requiredwenn keine Organisation ermittelt werden kann401 Unauthorizedwenn du nicht angemeldet bist403 Forbiddenwenn du keine Leserechte für die Organisation hast500 Failed to fetch incidentsbei unerwarteten Fehlern