Updated

API

If you would like to check status for MolecularMatch from your own applications, we provide a basic JSON API.

All API methods support JSONP, making the information easy to consume in browser applications:

<script>
function apiStatus(data) {
  console.log(data.status);
}
</script>
<script src="https://status.molecularmatch.com/api/status.json?callback=apiStatus"></script>
				

List Available Methods

GET /api.json
Returns all methods in the API. Using the URLs returned from this API root, instead of hardcoding the current values, can prevent your client from breaking on URL changes.
{
  "status_url": "https://status.molecularmatch.com/api/status.json",
  "messages_url": "https://status.molecularmatch.com/api/messages.json",
  "last_message_url": "https://status.molecularmatch.com/api/last-message.json"
}
					

List Current System Status

GET /api/status.json
Returns the current system status--one of good (green), minor (yellow), or major (red)--and timestamp.
{
  "status": "good",
  "last_updated": "2016-01-07T12:26:37Z"
}
					

List Previous Statuses

GET /api/last-message.json
Returns the last human communication, status, and timestamp.
{
  "status": "good",
  "body": "All systems fully operational",
  "createdAt": "2016-01-07T12:26:37Z"
}
					
GET /api/messages.json
Returns the most recent human communications with status and timestamp.
[
  {
    "status": "good",
    "body": "All systems fully operational",
    "createdAt": "2016-01-07T12:26:37Z"
  },
  {
    "status": "minor",
    "body": "Almost done restoring functionality",
    "createdAt": "2016-01-07T12:08:26Z"
  }
]