Get Incident History
GET /api/websites/:websitePublicId/incident-history
Get Incident History
GET /api/websites/:websitePublicId/incident-history
Returns incidents for a single website (latest 100), including a computed duration.
Authentication
Requires a valid session.
- Header:
Authorization: Bearer <token>
Parameters
websitePublicId(Path, required): Website public UUID.
Example (cURL)
BASE_URL="https://uptimeify.io"
TOKEN="<your-api-token>"
curl -X GET "$BASE_URL/api/websites/6bfec6f6-245a-47ce-843b-157d97d56f88/incident-history" \
-H "Authorization: Bearer $TOKEN" \
-H "Accept: application/json"
Example Response
{
"incidents": [
{
"id": 123,
"type": "downtime",
"status": "resolved",
"startedAt": "Feb 26, 2026, 12:10:00",
"endedAt": "Feb 26, 2026, 12:12:30",
"duration": "2m 30s",
"durationMs": 150000,
"details": "HTTP/2 503 - Response time: 1.20s",
"isOngoing": false
}
],
"total": 1
}
Note: startedAt and endedAt are formatted strings (server-side en-US).
Common Errors
400 Website public ID (UUID) requiredif:websitePublicIdis invalid401 Unauthorizedif you are not authenticated403 Forbiddenif you do not have access to the website500 Failed to fetch incident historyon unexpected errors