Ping endpoints
All ping endpoints live on https://api.cronbeat.dev. The ping key in the path is the only authentication:
no cookie, no header, no CSRF token.
| Endpoint | Methods | Effect |
|---|---|---|
/ping/<key> |
GET, POST, HEAD |
Success. The job finished fine. |
/ping/<key>/start |
GET, POST |
The job started. |
/ping/<key>/fail |
GET, POST |
The job failed. |
/ping/<key>/log |
POST |
Stores the body only. Does not change the status. |
What each ping does to the monitor is described in Statuses.
Metrics
Section titled “Metrics”Any ping route accepts up to 5 optional numbers as query parameters named m_<name>, for example
/ping/<key>?m_rows=1280&m_duration_ms=5400. They are stored with the ping and can be checked by
success-run checks.
- The name is lowercase letters, digits and
_, starts with a letter and has up to 32 characters. Names are case-sensitive. - The value is a finite number, at most 1e15 in size.
- A parameter that does not follow these rules, and every parameter beyond the fifth, is ignored silently. A ping is never rejected because of its metrics.
Responses
Section titled “Responses”| Status | When |
|---|---|
200 |
Accepted. The body is the plain text OK. |
404 |
Unknown ping key. |
429 |
Rate limit exceeded (per ping key and per client IP). Retry later. |
Request body
Section titled “Request body”For POST requests CronBeat stores up to 10 KB of the body with the ping (anything beyond is cut off). You can use
it to attach the last lines of a log or an exit code. GET and HEAD requests carry no body.
# Send the tail of a log together with a failure pingtail -c 2000 /var/log/backup.log | curl -fsS -m 10 --data-binary @- https://api.cronbeat.dev/ping/PING_KEY/failCronBeat also records the source IP address and the User-Agent of each ping, which are visible in the ping history.
Rate limits
Section titled “Rate limits”Pings are limited per ping key and per client IP: 60 requests per minute per key and 600 per minute per IP by
default. These are server settings and can change. A job that runs every few minutes is nowhere near them; if
you get a 429, a script is probably pinging in a loop.
Recommended curl flags
Section titled “Recommended curl flags”curl -fsS -m 10 --retry 3 https://api.cronbeat.dev/ping/PING_KEY-ffail on HTTP errors,-sSsilent but show errors,-m 10give up after 10 seconds,--retry 3retry on transient errors.- A failed ping call should not break your job. If the job must not fail because CronBeat was unreachable, append
|| trueto the ping command.
Patterns
Section titled “Patterns”Success only. The simplest setup, one call at the end. Catches missed runs and failures that stop the ping.
Start and success. Send /start first. You get run time measurement and, with a maximum runtime, a too_long
alert for jobs that hang.
Start, success and fail. Also call /fail when the job fails, to be alerted immediately instead of at the
deadline.
See Code examples for each language and tool.

