Events

List incidents for a check

Returns the most recent incidents for the check (newest first). An incident is open when closed_at is null. Always returns a JSON array (never null).

get/api/v1/checks/{id}/incidents

Request

  • Base URL: https://app.lastping.dev
  • URL: https://app.lastping.dev/api/v1/checks/{id}/incidents
  • Auth: API key in header X-Api-Key

Query parameters

limitinteger
Example:50

Maximum number of incidents to return (default 50, max 200).

Response

Array of incidents (may be empty).

incident_idinteger

The incident's id. Pass it to GET /api/v1/incidents/{id}.

opened_atstring date-time

RFC 3339 UTC timestamp when the incident was opened.

closed_atstring date-time nullable

RFC 3339 UTC timestamp when the incident was resolved, or null if still open.

causestring

Machine-readable cause string. One of silence (no ping by the expected deadline), fail (an explicit failure ping), overrun (a run exceeded its budget), never_started (the first scheduled run never started), runaway (pinging far faster than expected), stalled (a run stopped reporting progress), blocked (a run sat blocked, waiting on a human, longer than blocked_timeout_s), assertion (a run's output failed an assertion) or upstream (3 runs in a row, or failure_threshold when higher, ended on the model provider's API error).

detailstring

CI failure detail attached to this incident via POST /ci/{id}/detail. Omitted when empty. Contains the bounded log excerpt (≤ 64 KB) posted by the CI workflow's failure-capture step.

Example response

[
  {
    "incident_id": 4821,
    "opened_at": "2026-07-10T03:10:00Z",
    "closed_at": "2026-07-10T04:00:00Z",
    "cause": "silence",
    "detail": "STEP failed: go test ./... exited with code 1\n..."
  }
]

Changes

No recorded changes to this operation across all 2 revisions of this API.