curl --request GET \
--url https://api.phare.io/uptime/incidents \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": 1,
"organization_id": 1,
"project_id": 1,
"title": "Service is not working as expected",
"slug": "APP-123",
"impact": "unknown",
"state": "unknown",
"status": "ongoing",
"description": "The server answered with an unexpected status code: 503.",
"exclude_from_downtime": false,
"incident_at": "2023-11-07T05:31:56Z",
"recovery_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"meta": {
"current_page": 2,
"from": 11,
"to": 20,
"per_page": 100,
"path": "https://api.phare.io/{resource}?page=2"
},
"links": {
"first": "https://api.phare.io/{resource}?page=2",
"last": "https://api.phare.io/{resource}?page=10",
"prev": "https://api.phare.io/{resource}?page=1",
"next": "https://api.phare.io/{resource}?page=1"
}
}Get a paginated list of incidents
curl --request GET \
--url https://api.phare.io/uptime/incidents \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": 1,
"organization_id": 1,
"project_id": 1,
"title": "Service is not working as expected",
"slug": "APP-123",
"impact": "unknown",
"state": "unknown",
"status": "ongoing",
"description": "The server answered with an unexpected status code: 503.",
"exclude_from_downtime": false,
"incident_at": "2023-11-07T05:31:56Z",
"recovery_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"meta": {
"current_page": 2,
"from": 11,
"to": 20,
"per_page": 100,
"path": "https://api.phare.io/{resource}?page=2"
},
"links": {
"first": "https://api.phare.io/{resource}?page=2",
"last": "https://api.phare.io/{resource}?page=10",
"prev": "https://api.phare.io/{resource}?page=1",
"next": "https://api.phare.io/{resource}?page=1"
}
}Use a user token to access authenticated routes. The token must be specified in the Authorization HTTP header with the following format 'Authorization: Bearer
Page number to show
1
Number of resources to return per page
1 <= x <= 10020
Success, incidents retrieved
Show child attributes
1
Parent organization ID
1
Parent project ID
1
Incident title
"Service is not working as expected"
Incident unique slug name
"APP-123"
unknown, operational, degradedPerformance, partialOutage, majorOutage, maintenance unknown, investigating, identified, monitoring, resolved ongoing, recovering, recovered Description of the error that caused the incident
"The server answered with an unexpected status code: 503."
Flag to exclude the incident from downtime calculations
false
Date of incident confirmation
Date of incident recovery
Date of creation for the entity
Date of last update for the entity
Links for pagination
Show child attributes
"https://api.phare.io/{resource}?page=2"
"https://api.phare.io/{resource}?page=10"
"https://api.phare.io/{resource}?page=1"
"https://api.phare.io/{resource}?page=1"
Was this page helpful?