Get the incident-chart rows for an organization
const url = 'https://api.adversarial.com/api/v1/incidents/chart?start_date=2026-01-01&end_date=2026-12-31';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.adversarial.com/api/v1/incidents/chart?start_date=2026-01-01&end_date=2026-12-31'Returns the incidents visible in the requested window, unpaginated. The window may span at most two years, and each requested severity level’s rows are capped server-side so one severity cannot crowd out the others.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”One side of a date range: an RFC 3339 timestamp in any UTC offset, used as given, or a bare YYYY-MM-DD naming a whole UTC day.
Inclusive start of the window. A bare YYYY-MM-DD starts it at
00:00:00Z of that day; an RFC 3339 timestamp in any UTC offset is used
as given. Defaults to 365 days before now.
Example
2026-01-01One side of a date range: an RFC 3339 timestamp in any UTC offset, used as given, or a bare YYYY-MM-DD naming a whole UTC day.
Inclusive end of the window. A bare YYYY-MM-DD ends it at
23:59:59.999999Z of that day, so the whole last day is plotted; an
RFC 3339 timestamp in any UTC offset is used as given. Defaults to now.
Example
2026-12-31Severity levels to plot. Absent means every level. Unscored incidents are never plotted, so there is no unscored bucket to select.
Filter on what an incident is linked under, using the same vocabulary
as the register: null (top-level), any (linked children only), or a
parent id as INC-<n> or a bare number. Repeat to union. Defaults to
null — parity with the register, so the chart plots bundle parents
only.
Responses
Section titled “Responses”Incident rows visible in the requested chart window
One incident row for the incident chart, as served by
GET /v1/incidents/chart: the incident’s identity, severity, and
lifecycle dates.
object
Example
[ { "id": "INC-00001", "severity": "SEV-5" }]