API Reference
The HealthyCron API is designed as a standard REST API. All endpoints are secured via HTTPS, and responses are formatted as JSON.
https://healthycron.io
Authentication
Pinging endpoints (/ping/*) explicitly do not require authentication so that they can be easily executed in constrained environments (e.g. bash scripts).
Management endpoints (/api/*) for creating or modifying monitors require an API key. Pass it in the standard Authorization header: Authorization: Bearer {api_key}
Pinging Endpoints
/ping/{uuid}
Record a successful run of your cron job. Resets the grace period timer. Accepts GET or POST.
/ping/{uuid}/start
Marks the cron job as executing. HealthyCron uses the time gap between this and the next success ping to calculate duration.
/ping/{uuid}/fail
Explicitly triggers a failure, immediately marking the monitor as Down and firing alerts to assigned integrations.
Management API (Auth Required)
/api/monitors
List all monitors in the project associated with the API key.
/api/monitors
Create a new monitor. Pass the name, schedule, and grace period in the JSON body.
{
"name": "New Monitor",
"schedule": "0 * * * *",
"grace_period": 5
}
/api/monitors/{id}
Update an existing monitor's configuration. You only need to send the fields you wish to change.
/api/monitors/{id}
Permanently delete a monitor and all its associated ping history logs.