Cron API reference.

FourWay calls an address you own at the time you set, retries calmly when it fails, and keeps a receipt for every attempt. Updated 10 Nov 2026.

Live, free to start. You can also create and watch jobs on the website, no code needed: see Cron or open Your Cron.

1. Get a key

Sign in, open Your Cron and go to API keys (/app/cron/keys). You can have up to 2 keys. A key acts as your account: the same jobs as your dashboard and your plan's limits. Delete it and it stops working at once.

Send it on every request as Authorization: Bearer <key>. Keep it in your server's private settings, never in a browser or a public file.

Base address: https://fourway.io/api/v1/cron. Every answer has the same envelope: { "ok", "data", "meta", "error", "error_code" }.

2. Create a job

POST /jobs with a JSON body. Give an address and exactly one of run_at, every_s or cron.

# Once, at a time you choose
curl -X POST https://fourway.io/api/v1/cron/jobs \
  -H "Authorization: Bearer $FOURWAY_CRON_KEY" -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/send-reminders","run_at":"2026-11-01T09:00:00Z"}'
# Every weekday at 09:00 New York time, POST with your own JSON
curl -X POST https://fourway.io/api/v1/cron/jobs \
  -H "Authorization: Bearer $FOURWAY_CRON_KEY" -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/jobs/daily-report","cron":"0 9 * * 1-5","tz":"America/New_York","payload":{"report":"daily"}}'
Job fields
FieldWhat it does
urlThe address to call: public https:// on port 443. Private and local addresses are refused. Or reuse one with destination_id.
run_atOne time: unix seconds or ISO 8601.
every_sEvery N seconds, no shorter than your plan allows (Free: 300).
cron, tzA 5-field cron expression (0 9 * * 1-5, plus @daily, H, L, 5#3) in an IANA time zone (default UTC).
method, payloadPOST (default) sends the payload as the body, untouched; GET adds it to the address as query parameters. Without a payload, a POST sends FourWay's own JSON (run id, times, attempt).
timeout_sHow long to wait for an answer. Default 30, up to your plan's limit.
keyYour own dedupe key. A second create with the same key answers 409 DUPLICATE with the existing id.
max_attempts, retry_safeAttempts in all (1 to 20, default 4). Set retry_safe to false for calls that must never repeat.
timing, misfire, stateexact (default) or standard, which spreads load inside the minute. After an outage, coalesce (run once) or skip. paused creates a job that waits until you resume it.

The answer (201) is the job. When url made a new destination, data.destination.secret holds its signing secret. It is shown this once.

3. Other calls

API calls
CallDoes
GET /jobsYour jobs, newest first.
GET /jobs/{id}One job, with its payload and next runs.
PATCH /jobs/{id}Change when or what, pause ({"state":"paused"}) or resume ("active"). The address cannot change: make a new job.
DELETE /jobs/{id}Stop and remove the job.
GET /jobs/{id}/runsRecent runs, each attempt with its time, HTTP status, duration, error and the first 4 KB of the answer.
GET /logsRecent call attempts across your jobs (optional filters: job_id, outcome, limit), newest first. Also on the website at /app/cron/log.
GET /logs/{run_id}/{attempt_no}One attempt's full receipt: request method, URL, signed headers, HTTP status, timing, error and response excerpt.
GET, POST, DELETE /destinationsList, add or remove addresses. A destination is removed only when no job uses it.

Errors: 400 VALIDATION_ERROR (the message says what to fix), 401 AUTH_REQUIRED, 404 NOT_FOUND, 409 DUPLICATE or LIMIT_REACHED, 413 TOO_LARGE, 429 RATE_LIMITED (see Retry-After), 503 UNAVAILABLE. Reads (GET) and changes each have their own requests-per-10-minutes allowance, so polling never blocks changes.

4. What your endpoint receives

Request headers
HeaderValue
Idempotency-Key<job id>:<planned time>, the same for every retry of one run, which always sends the same request. If you edit the job's method or data while a run waits to retry, that run is not sent again and ends failed. Ignore a key you have already handled.
FourWay-Run-Id, FourWay-AttemptThe run, and the attempt number (1, 2 …).
FourWay-TimestampUnix seconds when the attempt was sent.
FourWay-Signaturev1= and a hex HMAC-SHA256, with the destination's secret, over "<timestamp>." + body for POST, or + query string for GET.

Checking the signature in PHP (optional, recommended):

$ts  = $_SERVER['HTTP_FOURWAY_TIMESTAMP'] ?? '';
$sig = $_SERVER['HTTP_FOURWAY_SIGNATURE'] ?? '';
$signed = $_SERVER['REQUEST_METHOD'] === 'GET'
    ? (string)parse_url($_SERVER['REQUEST_URI'], PHP_URL_QUERY)
    : file_get_contents('php://input');
$ok = ctype_digit($ts) && abs(time() - (int)$ts) <= 300
   && hash_equals('v1=' . hash_hmac('sha256', $ts . '.' . $signed, $SECRET), $sig);

5. Success and retries

  • A 2xx answer is success. Redirects are not followed.
  • A 429, a 5xx or no answer in time is retried, with growing waits, until max_attempts. A Retry-After header is respected, up to an hour.
  • Other answers (3xx, 4xx) end the run as failed at once: retrying would not help.
  • With retry_safe: false, a call that may have reached you is never sent again; only calls that certainly did not (DNS failure, refused connection) are retried.

6. Alerts

Add a webhook on the website or with POST /alert-channels ({"url": …}). You hear about a problem once when it starts and once when it is over:

  • run_failed: a run failed after all its attempts.
  • failure_streak: the job's last 3 runs all failed.
  • not_started: a run is more than 60 seconds late.

Each message is a signed JSON POST. Its text field is what Slack and Google Chat incoming webhooks show, so their webhook addresses work as they are.

7. Plan limits

Limits per plan
PlanJobsAt mostWaits up toCalls at once per addressPayloadAPI requests per 10 min
Free5every 5 minutes30 s116 KB100
Early access25every minute120 s264 KB300
Pro500every minute1200 s101 MB3000

Everyone starts on Free. Early access and Pro are given on request, and nobody is charged during early access. See pricing, or write to us to move up.

Not built yet: jobs that wait while your website is slow, and automatic clean-up of old runs.