Skip to Content
Uptimeify Docs
Incident management

Reports

Incident report (volume, MTTA, MTTR by team, severity, category or month) and on-call report (minutes per user) for a date range, as JSON or CSV, and the NIS-2 management report as JSON or PDF.

Two reports over an explicit date range, each available as JSON or as a CSV download, and the NIS-2 management report as JSON or PDF.

Authentication

Any IM-eligible role (admin, editor, responder) or an organization-wide API token. Incident Management must be enabled for the organization.

Date range

Both reports require from and to as ISO 8601. from is inclusive, to exclusive, to must be after from, and the range may span at most 400 days.

Incident report

GET /api/im/reports/incidents

Counts the incidents triggered in the range and their mean time to acknowledge (MTTA) and to resolve (MTTR), in minutes. An incident that was never acknowledged or resolved is left out of that average, it does not count as zero. Test incidents are excluded.

Query Parameters

ParameterTypeRequiredDescription
from, toISO 8601YesSee Date range.
groupBystringNomonth (default), team, severity, category or service. With service, groupKey is the service ID and incidents without a service form the group none. Any other value is rejected with 400.
tznumberNoYour UTC offset in minutes (e.g. 120), default 0, clamped to plus or minus 1440. Decides which local month an incident belongs to. Not an integer: 400.
formatstringNojson (default) or csv, which returns a CSV file instead of JSON. Any other value: 400.

Example (cURL)

curl "$BASE_URL/api/im/reports/incidents?from=2026-07-01T00:00:00Z&to=2026-10-01T00:00:00Z&groupBy=severity" \
  -H "Authorization: Bearer $TOKEN"

Response

{
  "from": "2026-07-01T00:00:00.000Z",
  "to": "2026-10-01T00:00:00.000Z",
  "groupBy": "severity",
  "summary": { "count": 27, "mttaMinutes": 6.4, "mttrMinutes": 82.15 },
  "groups": [
    { "groupKey": "sev1", "groupLabel": "sev1", "count": 3, "mttaMinutes": 1.8, "mttrMinutes": 41.5 },
    { "groupKey": "sev3", "groupLabel": "sev3", "count": 24, "mttaMinutes": 7.1, "mttrMinutes": 87.24 }
  ]
}

groupKey / groupLabel per grouping: team gives the team ID and team name, severity gives sev1 to sev4, category gives availability, security, other or uncategorized (not classified yet), month gives the UTC instant of the local month start (e.g. 2026-08-31T22:00:00.000Z for August with tz=120) in both fields. Groups without incidents are omitted. Averages are rounded to two decimals and null when no incident in the group qualifies.

With format=csv the response is text/csv with Content-Disposition: attachment; filename="incidents-report-<date>.csv" and the columns <groupBy>,count,mttaMinutes,mttrMinutes. Month labels are written as YYYY-MM, empty averages as empty cells. The summary is not part of the CSV.

On-call report

GET /api/im/reports/on-call

On-call minutes per user inside the range. Shifts that start before from or end after to only count their part inside the range. Team-level overrides of type online (without a schedule) are added on top of the scheduled shifts.

Query Parameters

ParameterTypeRequiredDescription
from, toISO 8601YesSee Date range.
formatstringNojson (default) or csv, which returns a CSV file instead of JSON. Any other value: 400.

Example (cURL)

curl "$BASE_URL/api/im/reports/on-call?from=2026-09-01T00:00:00Z&to=2026-10-01T00:00:00Z" \
  -H "Authorization: Bearer $TOKEN"

Response

{
  "periodStart": "2026-09-01T00:00:00.000Z",
  "periodEnd": "2026-10-01T00:00:00.000Z",
  "users": [
    { "userId": "u_abc123", "userName": "Jana Weber", "minutes": 21600 },
    { "userId": "u_def456", "userName": "Tobias Brandt", "minutes": 21600 }
  ]
}

users is sorted by userId, minutes rounded to two decimals. Users without on-call time in the range do not appear.

With format=csv the response is text/csv with Content-Disposition: attachment; filename="on-call-report-<date>.csv" and the columns userId,userName,minutes,hours.

NIS-2 management report

GET /api/im/reports/nis2-management · GET /api/im/reports/nis2-management.pdf

Key figures of a quarter or a period of your choice for management to take note of (Art. 20 NIS-2, § 38 BSIG): incidents, report cases with their deadlines, and follow-up. The PDF is the same content as a document; the dashboard offers it on the follow-up page. The report supports management's oversight. It does not replace your own assessment and certifies nothing.

Access as for the follow-up: NIS-2 switched on (403 nis2NotEnabled) and a signed-in session of an organization admin or reporting officer. API and agent tokens and other users get 403 nis2OfficerRequired, so the requests are shown without a token. Every PDF generated is written to the organization audit log with the user and the period.

Query Parameters

ParameterTypeRequiredDescription
quarterstringOne of the twoYYYY-QN such as 2026-Q3, in the time zone of the NIS-2 settings.
from, toISO 8601 date or date-timeOne of the twoA date means local midnight in that time zone; to as a date counts as a whole day. A date-time counts as given, to exclusive. At most 366 days.
langstringNoPDF only: de or en. Default: your language, German or otherwise English.

quarter together with from/to or a value in another format answers 400 invalidRequestBody.

What is counted

FieldDescription
incidentsIncidents triggered in the period (test incidents excluded): total, nearMissCount, mttaMinutes/mttrMinutes as in the incident report, bySeverity and byCategory (uncategorized = not classified yet).
reportCasesReport cases whose awareAt lies in the period: total, reportable, notReportable, undecided. deadlines counts per deadline (earlyWarning 24 h, notification 72 h, final one month after the notification) metOnTime, metLate, open and overdue, as of generatedAt.
followUppostmortemsDue (incidents of the period that need a postmortem) and postmortemsCompleted; notFollowedUpCount (all incidents still needing one), openActionCount, overdueActionCount and repeatedCauses (six months up to the end of the period). For a signed-off quarter these come from the frozen quarterly review and quarterlyReview is set. asOf says when actions were counted.
GET /api/im/reports/nis2-management?quarter=2026-Q3

200 OK

{
  "organizationId": 42,
  "organizationName": "Muster GmbH",
  "from": "2026-06-30T22:00:00.000Z",
  "to": "2026-09-30T22:00:00.000Z",
  "quarter": "2026-Q3",
  "timezone": "Europe/Berlin",
  "entityClass": "essential",
  "generatedAt": "2026-10-02T08:30:00.000Z",
  "generatedBy": { "userId": "u_8f2c", "name": "Jana Weber" },
  "incidents": {
    "total": 27,
    "nearMissCount": 2,
    "mttaMinutes": 6.4,
    "mttrMinutes": 82.15,
    "bySeverity": { "sev1": 3, "sev2": 5, "sev3": 15, "sev4": 4 },
    "byCategory": { "availability": 20, "security": 2, "other": 1, "uncategorized": 4 }
  },
  "reportCases": {
    "total": 2,
    "reportable": 1,
    "notReportable": 1,
    "undecided": 0,
    "deadlines": {
      "earlyWarning": { "metOnTime": 1, "metLate": 0, "open": 0, "overdue": 0 },
      "notification": { "metOnTime": 0, "metLate": 1, "open": 0, "overdue": 0 },
      "final": { "metOnTime": 0, "metLate": 0, "open": 1, "overdue": 0 }
    }
  },
  "followUp": {
    "postmortemsDue": 8,
    "postmortemsCompleted": 7,
    "notFollowedUpCount": 1,
    "repeatedCauses": [{ "causeName": "Expired TLS certificate", "incidentCount": 2 }],
    "openActionCount": 3,
    "overdueActionCount": 1,
    "asOf": "2026-10-01T09:12:00.000Z",
    "quarterlyReview": { "reviewedAt": "2026-10-01T09:12:00.000Z", "reviewerName": "Jana Weber" }
  }
}

GET /api/im/reports/nis2-management.pdf?quarter=2026-Q3&lang=en answers application/pdf with Content-Disposition: attachment; filename="nis2-management-report-2026-Q3.pdf" (for a period: the start date instead of the quarter).

Errors: 403 nis2NotEnabled, 403 nis2OfficerRequired, 400 imReportRangeRequired (neither quarter nor from and to), 400 imReportRangeInvalid (from not before to), 400 imReportRangeTooLarge (more than 366 days), 400 invalidRequestBody.

Common errors

  • 401 Unauthorized (unauthorized) when not authenticated
  • 403 Forbidden (customerScopedTokenForbidden) for a customer-scoped token
  • 403 Forbidden (imAccessDenied) when the session has no IM-eligible role
  • 403 Forbidden (imNotEnabled) when Incident Management is not enabled for the organization
  • 400 Bad Request (imReportRangeRequired) when from or to is missing or not a valid date
  • 400 Bad Request (imReportRangeInvalid) when from is not before to
  • 400 Bad Request (imReportRangeTooLarge) when the range exceeds 400 days
  • 400 Bad Request (invalidRequestBody) when groupBy or format has an unknown value or tz is not an integer

On this page