The status dashboard public API endpoint allows you to obtain status information for all services programmatically. The status dashboard public API does not require authentication (but does support it) and can be used for a variety of purposes, including embedding status information directly into your websites.
To enable the endpoint on a specific status dashboard, login to the StatusDashboard administration portal and navigate to Status Dashboards > Edit > Dashboard Options > API.
OUTPUT PARAMETERS | |||||||||||
id integer |
The id of the service. |
||||||||||
name |
The name of the service. |
||||||||||
description |
The service description. |
||||||||||
group |
The service group. |
||||||||||
status |
The current status of the service. The possible options are:
|
Authentication
The endpoint supports authentication via inclusion of an API key in the HTTP header of requests to the API. To enable authentication on the status dashboard public API endpoint, login to the StatusDashboard administration portal and navigate to Status Dashboards > Edit > Dashboard Options > API > Authentication. When authentication is enabled, you must include a header named Authorization with a value of the API key.
ETag Support
The endpoint recognizes the If-None-Match request header from clients. On every API response, the server will send an ETag response header which represents the version of data being sent. Clients can send this same value back to the server within the If-None-Match header indicating the version of data they currently have. If the client and server ETag value match (indicating that the client has the current data), then the server will send an HTTP204 No Content back to the client without sending the data.
Examples
Dashboard Status (List method, GET)
* Assumes a subdomain url of https://acme.statusdashboard.com
curl https://acme.statusdashboard.com/api/v1/public/dashboard/ { "meta": { "limit": 100, "next": null, "offset": 0, "previous": null, "total_count": 3 }, "objects": [ { "description": "", "group": "North America DataCenter",
"id": 152, "name": "File Server", "status": 1 }, { "description": "http://owa.domain.com", "group": "North America DataCenter",
"id": 151, "name": "Exchange Server", "status": 2 }, { "description": "", "group": "North America DataCenter",
"id": 150, "name": "Web Site", "status": 0 } ] }
Upon success, you'll receive back an HTTP 200 (OK) indicating that the API call succeeded.
Dashboard Status (List method, GET, with authentication enabled)
* Assumes a subdomain url of https://acme.statusdashboard.com
curl -H "Authorization: 1add9d1c2ae74ba7933bfe1fa1d3c275" https://acme.statusdashboard.com/api/v1/public/dashboard/ { "meta": { "limit": 100, "next": null, "offset": 0, "previous": null, "total_count": 3 }, "objects": [ { "description": "", "group": "North America DataCenter",
"id": 152, "name": "File Server", "status": 1 }, { "description": "http://owa.domain.com", "group": "North America DataCenter",
"id": 151, "name": "Exchange Server", "status": 2 }, { "description": "", "group": "North America DataCenter",
"id": 150, "name": "Web Site", "status": 0 } ] }
Upon success, you'll receive back an HTTP 200 (OK) indicating that the API call succeeded.