Introduction
Learn how to interact with the Cachet API.
This documentation refers to the Cachet v3 API. If you are looking for the Cachet v2 API, please refer to the previous Cachet API documentation.
JSON API
Cachet provides a RESTful JSON API that allows you to interact with the status page programmatically. The API is designed to be simple and easy to use.
Example Response
Filtering
Several endpoints support filtering to allow you to retrieve only the data you need. For example, you can filter incidents by status:
Sorting
You can sort the results of an endpoint by passing the sort
parameter. The sort
parameter should be a comma-separated list of fields to sort by. You can also specify the sort order by appending asc
or desc
to the field name.
To reverse the sort order, you can prefix the field name with a hyphen.
Pagination
All API endpoints that return multiple items support pagination. By default, 15 items are returned per page.
You can specify the number of items to return per page by passing the per_page
parameter.
To navigate between pages, use the page
parameter.
Rate Limiting
The Cachet API is rate-limited to prevent abuse. The rate limit is set to 300 requests per minute per IP address.
Cachet will return the X-RateLimit-Limit
, X-RateLimit-Remaining
, and X-RateLimit-Reset
headers in the response to provide information about the rate limit.
You can override the default rate limit by setting the CACHET_API_RATE_LIMIT
environment variable.