Get status page incidents
Get all the incidents for a status page ordered by latest entry
GET api/status-pages/{statusPage}/incidents
Example request:
curl -X GET "https://ploi.io/api/status-pages/{statusPage}/incidents" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response:
HTTP/1.1 200 OK
Content-Type: application/json
{
"data": [
{
"id": 2,
"title": "Server connection snowy-crater recovered",
"description": "Connection to server snowy-crater has been recovered",
"severity": "resolved"
},
{
"id": 1,
"title": "Server snowy-crater is not reachable",
"description": "Unable to establish connection to server snowy-crater, please check connection",
"severity": "high"
}
],
"links": {
"first": "https://ploi.io/api/status-pages/1/incidents?page=1",
"last": "https://ploi.io/api/status-pages/1/incidents?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "https://ploi.io/api/status-pages/1/incidents",
"per_page": 15,
"to": 3,
"total": 3
}
}