Skip to main content
GET
/
incidents
List Incidents
curl --request GET \
  --url http://localhost/api/incidents
{
  "data": [
    {
      "id": "<string>",
      "type": "incidents",
      "attributes": {
        "id": 123,
        "guid": "<string>",
        "name": "<string>",
        "message": "<string>",
        "visible": 0,
        "stickied": true,
        "notifications": 123,
        "status": {
          "human": "<string>",
          "value": "<string>"
        },
        "occurred": {
          "human": "<string>",
          "string": "<string>"
        },
        "created": {
          "human": "<string>",
          "string": "<string>"
        },
        "updated": {
          "human": "<string>",
          "string": "<string>"
        },
        "components_count": "<string>"
      },
      "relationships": {
        "components": {
          "data": [
            {
              "type": "components",
              "id": "<string>"
            }
          ]
        },
        "updates": {
          "data": [
            {
              "type": "updates",
              "id": "<string>"
            }
          ]
        },
        "user": {
          "data": {
            "type": "<string>",
            "id": "<string>"
          }
        }
      }
    }
  ],
  "links": {
    "first": "<string>",
    "last": "<string>",
    "prev": "<string>",
    "next": "<string>"
  },
  "meta": {
    "current_page": 123,
    "from": 123,
    "path": "<string>",
    "per_page": 123,
    "to": 123
  },
  "included": [
    {
      "id": "<string>",
      "type": "components",
      "attributes": {
        "id": 123,
        "name": "<string>",
        "description": "<string>",
        "link": "<string>",
        "order": 123,
        "status": {
          "human": "<string>",
          "value": "<string>"
        },
        "enabled": true,
        "meta": [
          "<unknown>"
        ],
        "created": {
          "human": "<string>",
          "string": "<string>"
        },
        "updated": {
          "human": "<string>",
          "string": "<string>"
        },
        "pivot": {
          "component_status": {
            "human": "<string>",
            "value": "<string>"
          }
        }
      },
      "relationships": {
        "group": {
          "data": {
            "type": "componentGroups",
            "id": "<string>"
          }
        },
        "incidents": {
          "data": [
            {
              "type": "incidents",
              "id": "<string>"
            }
          ]
        }
      }
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.cachethq.io/llms.txt

Use this file to discover all available pages before exploring further.

Query Parameters

sort
string

Available sorts are name, status, id. You can sort by multiple options by separating them with a comma. To sort in descending order, use - sign in front of the sort, for example: -name.

include
string

Available includes are components, componentsCount, componentsExists, updates, updatesCount, updatesExists, user, userCount, userExists. You can include multiple options by separating them with a comma.

per_page
integer
default:15

How many items to show per page.

page
integer

Which page to show.

filter[name]
string
filter[status]
string
filter[occurred_at]
string

Response

200 - application/vnd.api+json

Paginated set of Incident

data
Incident · object[]
required
meta
object
required
included
(Component · object | Update · object | User · object)[]