Documentation
CronObserver monitors scheduled jobs through check-ins. You send a POST when a job finishes, and we alert you if anything is late or fails.
Full HTTP reference: API reference (OpenAPI).
Overview
- Create an observer and copy its token.
- When the job finishes, send a check-in to the observer URL.
- If the check-in does not arrive on time, you receive alerts.
Check-in endpoint
Use the observer token or an integration token. Successful check-ins return 204. GET and HEAD work too, so any HTTP pinger can check in.
401when the integration token is expired.404when the token does not exist.4xxfor invalid JSON payloads.
curl -i -X POST https://cronobserver.com/checkin/<token> # or simply curl -fsS https://cronobserver.com/checkin/<token>
Start, success and failure
Report each stage of a run. All three accept POST, GET and HEAD.
/checkin/<token>/start: the run started. It does not change the monitor state./checkin/<token>: the run succeeded. If it follows a start, the duration is recorded./checkin/<token>/fail: the run failed. You get an alert right away, withexitCodeandmessage, without waiting for the interval and grace.
Send the same runId (in the body or as ?rid=) on start and end to link them when runs overlap. Without it, the end closes the latest open run.
Set Max runtime on the monitor (maxRuntimeSeconds in the API): a run that started and did not succeed or fail within that time is alerted as stuck, once.
URL=https://cronobserver.com/checkin/<token> RID=$(date +%s) curl -fsS "$URL/start?rid=$RID" if run-job; then curl -fsS "$URL?rid=$RID" else curl -fsS "$URL/fail?rid=$RID&exitCode=$?" fi
Optional payload
You can send a JSON payload with execution details. It is stored with the check-in and helps with failure analysis. "status": "failed" on the plain check-in counts as /fail, so this is a failure report:
curl -X POST https://cronobserver.com/checkin/<token> \
-H "Content-Type: application/json" \
-d '{
"status": "failed",
"exitCode": 1,
"message": "Timeout calling the payments API",
"metadata": { "host": "worker-01" }
}'runId, exitCode and message link the run and explain a failure. For AI agents and LLM jobs:
| Key | Example | Meaning |
|---|---|---|
model | "claude-opus-5-5" | Model used in the run |
tokens_in / tokens_out | 18234 / 2100 | Tokens consumed |
cost_usd | 0.42 | Cost of the run |
items_processed | 37 | What the run produced (rows, tickets, emails) |
eval_score | 0.91 | Your own quality score, 0–1 |
All keys are optional and stored with the run. They don't trigger alerts by themselves.
curl -X POST https://cronobserver.com/checkin/<token> \
-H "Content-Type: application/json" \
-d '{"runId":"nightly-42","model":"claude-sonnet","tokens_in":18200,"tokens_out":2400,"cost_usd":0.09,"items_processed":120,"eval_score":0.94}'REST API (v1)
Manage monitors from code, CI or an AI agent. Create an API key in Settings → API keys. Each key belongs to one organization and has scopes: read, write and checkin. Keys are shown once; we only store a hash.
# list monitors
curl -s https://cronobserver.com/api/v1/monitors \
-H "Authorization: Bearer $CRONOBSERVER_API_KEY"
# create a monitor that expects a run every day at 21:00 in São Paulo, with 30 minutes of grace
curl -s -X POST https://cronobserver.com/api/v1/monitors \
-H "Authorization: Bearer $CRONOBSERVER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "nightly-summary-agent", "interval": {"type": "cron", "cronExpression": "0 21 * * ? *", "timezone": "America/Sao_Paulo"}, "graceMinutes": 30, "maxRuntimeSeconds": 1800}'| Endpoint | Scope | What it does |
|---|---|---|
GET /v1/monitors · GET /v1/monitors/{id} | read | List or read monitors |
POST /v1/monitors · PATCH · DELETE /v1/monitors/{id} | write | Create, update, delete |
GET /v1/monitors/{id}/events | read | Check-ins, failures and alerts, paginated |
GET /v1/monitors/{id}/explain | read | Why the monitor is in its current state |
POST /v1/monitors/{id}/pause · /resume | write | Pause and resume |
POST /v1/monitors/{id}/mute · /unmute | write | Silence alerts (optionally until a date) |
POST /v1/monitors/{id}/checkin · /checkin/start · /checkin/fail | checkin | Report a run by id: success, start or failure |
GET /v1/incidents · POST /v1/incidents/{id}/ack | read · write | Open incidents and acknowledge |
Full reference: OpenAPI 3.1 · interactive docs. Plan limits apply to the API exactly as in the dashboard.
Telegram alerts
- Telegram: open @CronObserverBot (
t.me/CronObserverBot) on Telegram and send/start(in a group, add the bot first and send/startthere). The bot replies with the chat ID. Paste it in Telegram chat ID on the monitor (telegramChatIdin the API). For a channel, add the bot as an admin and paste the channel's@username; we store its numeric ID. - It gets the same alerts as Slack and Teams: overdue, failed or stuck run, and recovery. It can also be a step of an escalation policy (Team and up). It doesn't count against the daily email quota. Paid plans (Starter and up).
Cron schedules and time zones
Cron monitors use AWS cron syntax and run in the monitor's time zone (UTC by default). In the API, set interval.timezone to an IANA name: {"type":"cron","cronExpression":"0 9 * * ?","timezone":"America/Sao_Paulo"} expects the job at 09:00 in São Paulo. A new monitor is expected from the moment it is created: if the job never checks in, you are alerted after the first window plus grace.
Quick examples
JavaScript (Node.js)
await fetch("https://cronobserver.com/checkin/<token>", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ status: "success", message: "Job finished" })
});TypeScript
type CheckinPayload = {
status: "success" | "failed";
message: string;
metadata?: Record<string, string | number | boolean>;
};
const payload: CheckinPayload = {
status: "success",
message: "Report generated",
metadata: { reportId: 42 }
};
await fetch("https://cronobserver.com/checkin/<token>", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(payload)
});Go
payload := []byte(`{"status":"success","message":"Job completed"}`)
req, _ := http.NewRequest("POST", "https://cronobserver.com/checkin/<token>", bytes.NewBuffer(payload))
req.Header.Set("Content-Type", "application/json")
client := &http.Client{}
client.Do(req)Rails
require "net/http"
require "json"
uri = URI("https://cronobserver.com/checkin/<token>")
Net::HTTP.post(uri, { status: "success", message: "Job ok" }.to_json, "Content-Type" => "application/json")Java
HttpClient client = HttpClient.newHttpClient();
String payload = "{\"status\":\"success\",\"message\":\"Job completed\"}";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://cronobserver.com/checkin/<token>"))
.header("Content-Type", "application/json")
.POST(HttpRequest.BodyPublishers.ofString(payload))
.build();
client.send(request, HttpResponse.BodyHandlers.discarding());Python (requests)
import requests
requests.post(
"https://cronobserver.com/checkin/<token>",
json={"status": "success", "message": "Job executed"}
)Integrations
GitHub Actions
Schedule the workflow and send a check-in at the end of the job. Store the token in secrets.
- name: CronObserver check-in
if: success()
run: curl -fsS --retry 3 -X POST "$CRONOBSERVER_CHECKIN_URL"
env:
CRONOBSERVER_CHECKIN_URL: ${{ secrets.CRONOBSERVER_CHECKIN_URL }}GitLab CI
Use GitLab schedules and a final notify stage to send the check-in.
cronobserver:checkin:
stage: notify
image: curlimages/curl:8.11.1
script:
- curl -fsS --retry 3 -X POST "$CRONOBSERVER_CHECKIN_URL"
only:
- schedulesKubernetes CronJob
Store the URL in a Secret and inject it into the CronJob container. The check-in happens after the script finishes. Your image needs curl (alpine: apk add --no-cache curl).
env:
- name: CRONOBSERVER_CHECKIN_URL
valueFrom:
secretKeyRef:
name: cronobserver-checkin
key: url
...
command: ["sh", "-c", "run-job && curl -fsS --retry 3 -X POST $CRONOBSERVER_CHECKIN_URL"]AWS Lambda
Use an EventBridge schedule to invoke the function and send a check-in at the end.
await fetch(process.env.CRONOBSERVER_CHECKIN_URL, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ status: "success", message: "Lambda ok" })
});Docker Compose
Set the URL as an environment variable and run curl after the job finishes. Your image needs curl (alpine: apk add --no-cache curl). The $$ keeps Compose from replacing the variable before the container starts.
services:
job:
image: curlimages/curl:8.11.1
environment:
- CRONOBSERVER_CHECKIN_URL=https://cronobserver.com/checkin/<token>
command: sh -c "run-job && curl -fsS --retry 3 -X POST $$CRONOBSERVER_CHECKIN_URL"Tokens and security
There are two token types for check-ins:
- Observer token: permanent and tied to the monitor.
- Integration token: temporary, revocable, and expiring (format
it_*). Ideal for CI/CD and shared environments.
Store tokens in secrets/environment variables and avoid committing them to repositories.
Synthetic Checks
Available on the paid plans, from Starter (US$ 9/month). On the Free plan, alerts are email only.
Synthetic Checks are active probes run by CronObserver. Instead of waiting for a check-in, the system sends HTTP requests to a configured URL and validates that the response matches expectations.
- Supported types:
httpGetandhttpPost. - Validation by expected status (e.g., 200). If the status differs, the check fails.
- Timeout control and response time measurement.
- SSRF protection: blocks private IPs and localhost (optional allowlist).
When a Synthetic Check fails, the observer records the error and sends alerts. When it recovers, a recovery event is also sent.
Send alerts to Datadog, Dynatrace, New Relic, and Sentry
Configure integrations per observer. Secrets are write-only, stored encrypted, and never returned by the API.
Available on Team (US$ 29/month) and Business. On the Free plan, alerts are email only.
Required when enabled
- Datadog:
apiKey - Dynatrace:
baseUrl+apiToken - New Relic:
apiKey(region optional) - Sentry:
dsn
Payload details
- Alert type: overdue, escalation, or threshold.
- Observer metadata only (no payloads or tokens).
- Events include timestamps and alert context.