Status page

Raileo provides a full fledged API for status page, so that you can host your own status page with complete freedom over the presentation

get
Get Status page data

https://raileo.com/api/v1/statuspage/:id
Get the status page
Request
Response
Request
Path Parameters
id
required
string
ID of the status pahe
Headers
Authentication
required
string
Bearer 1cvGZuuCSgTjvLBRYart9ikdoM21YFVKfdXotxnH7kuESJki
Query Parameters
days
optional
number
Number of days from today to past n days
Response
200: OK
Cake successfully retrieved.
{
"data": {
"website_data": [
{
"url_name": "Example 1",
"status": "200",
"last_checked": "2020-06-09 06:05:02",
"maintenance": 0,
"uptime_data": [
{
"date": "09-Jun-20",
"uptime_average": 100,
"downtime_average": 0
},
{
"date": "08-Jun-20",
"uptime_average": 100,
"downtime_average": 0
},
{
"date": "07-Jun-20",
"uptime_average": 100,
"downtime_average": 0
},
{
"date": "06-Jun-20",
"uptime_average": 100,
"downtime_average": 0
},
{
"date": "05-Jun-20",
"uptime_average": 90,
"downtime_average": 10
}
]
}
],
"status_page_name": "Example Status Page"
}
}
404: Not Found
Could not find a cake matching this query.
{
"data": {
"website_data": [],
"status_page_name": ""
}
}

get
All incidents

https://raileo.com/api/v1/statuspage/:id/incidents
Get all incidents associated with the status page
Request
Response
Request
Path Parameters
id
required
number
ID of the status page
Headers
Authorization
required
string
Bearer 1cvGZuuCSgTjvLBRYart9ikdoM21YFVKfdXotxnH7kuESJki
Response
200: OK
{
"data": [
{
"id": 2,
"status_page_id": 1,
"title": "Problems with notification delivery",
"description": "<p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>",
"announcement_type": "incident",
"status": "monitoring",
"created_at": "2020-06-09 06:39:55",
"updated_at": "2020-06-09 06:39:55"
},
{
"id": 1,
"status_page_id": 1,
"title": "Downtime after the latest system upgrade",
"description": "<p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.&nbsp;</p>",
"announcement_type": "incident",
"status": "update",
"created_at": "2020-06-09 06:39:21",
"updated_at": "2020-06-09 06:40:15"
}
]
}

get
Single incident details

https://raileo.com/api/v1/statuspage/:id/incidents/:incident_id
Get all the details about a single incident, including latest status and history
Request
Response
Request
Path Parameters
incident_id
required
number
incident id
id
required
number
ID of the status page
Headers
Authorization
required
string
Bearer 1cvGZuuCSgTjvLBRYart9ikdoM21YFVKfdXotxnH7kuESJki
Response
200: OK
{
"data": {
"details": {
"id": 1,
"status_page_id": 1,
"title": "Downtime after the latest system upgrade",
"description": "<p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.&nbsp;</p>",
"announcement_type": "incident",
"status": "update",
"created_at": "2020-06-09 06:39:21",
"updated_at": "2020-06-09 06:40:15"
},
"history": [
{
"title": "Downtime after the latest system upgrade",
"status": "update",
"id": 3,
"announcement_id": 1,
"description": "<p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.&nbsp;</p>",
"announcement_type": "incident",
"created_at": "2020-06-09 06:40:15",
"updated_at": "2020-06-09 06:40:15"
},
{
"title": "Downtime after the latest system upgrade",
"status": "monitoring",
"id": 1,
"announcement_id": 1,
"description": "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.&nbsp;</p>",
"announcement_type": "incident",
"created_at": "2020-06-09 06:39:21",
"updated_at": "2020-06-09 06:39:21"
}
]
}
}

get
All announcements

https://raileo.com/api/v1/statuspage/:id/announcements
Get all announcements created for the status page
Request
Response
Request
Path Parameters
id
required
number
ID of the status page
Headers
Authorization
required
string
Bearer 1cvGZuuCSgTjvLBRYart9ikdoM21YFVKfdXotxnH7kuESJki
Response
200: OK
{
"data": [
{
"id": 3,
"status_page_id": 1,
"title": "Planned maintenance",
"description": "<p>Facilisis magna etiam tempor orci eu lobortis elementum nibh. Diam in arcu cursus euismod quis viverra nibh cras pulvinar. Potenti nullam ac tortor vitae purus faucibus ornare.</p>",
"announcement_type": "announcement",
"status": "active",
"created_at": "2020-06-09 06:52:43",
"updated_at": "2020-06-09 06:52:43"
}
]
}

get
Single announcement details

https://raileo.com/api/v1/statuspage/:id/announcements/:announcement_id
Get all the details about a single announcement
Request
Response
Request
Path Parameters
announcement_id
required
number
announcement id
id
required
number
ID of status page
Headers
Authorization
required
string
Bearer 1cvGZuuCSgTjvLBRYart9ikdoM21YFVKfdXotxnH7kuESJki
Response
200: OK
{
"data": {
"details": {
"id": 3,
"status_page_id": 1,
"title": "Planned maintenance",
"description": "<p>Facilisis magna etiam tempor orci eu lobortis elementum nibh. Diam in arcu cursus euismod quis viverra nibh cras pulvinar. Potenti nullam ac tortor vitae purus faucibus ornare.</p>",
"announcement_type": "announcement",
"status": "active",
"created_at": "2020-06-09 06:52:43",
"updated_at": "2020-06-09 06:52:43"
},
"history": [
{
"title": "Planned maintenance",
"status": "active",
"id": 4,
"announcement_id": 3,
"description": "<p>Facilisis magna etiam tempor orci eu lobortis elementum nibh. Diam in arcu cursus euismod quis viverra nibh cras pulvinar. Potenti nullam ac tortor vitae purus faucibus ornare.</p>",
"announcement_type": "announcement",
"created_at": "2020-06-09 06:52:43",
"updated_at": "2020-06-09 06:52:43"
}
]
}
}