MIGRATING FROM CRONHOOKS: API MAPPING, SIGNATURE DIFFERENCES, AND THE 204
Migrating from Cronhooks: API mapping, signature differences, and the 204
Cronhooks' DELETE schedule endpoint returns 204 No Content — here's that call, plus a field-by-field mapping from Cronhooks schedules, groups, and Cronhooks-Signature headers to Recurrence Cloud's schedules, events, and X-Webhook-Signature.
If you’re on Cronhooks — one-time or recurring scheduled webhooks via a plain REST API — most of what you’ve built maps directly to Recurrence Cloud’s primitives: schedules, receivers, events, retries on the clock, and a signature on every delivery. This is the field-by-field map, including the small response-code gotchas that break automation scripts: Cronhooks’ mutation endpoints (DELETE /schedules/{id}, trigger, pause, resume) respond with 204 No Content on success, where Recurrence Cloud returns a JSON body.
Cronhooks’ model in one paragraph
A Cronhooks schedule is a titled HTTP call: url, method, optional headers, optional payload, an IANA timezone, and either runAt (one-time, isRecurring: false) or a cronExpression (recurring, isRecurring: true), with optional startsAt/endsAt bounds. Schedules live in groups that hold environment variables usable as {{VAR}} in URLs, headers, and payloads. A sendCronhookObject flag appends the schedule object to the payload, sendFailureAlert routes failure notifications to email/Slack or a webhook ({"action": "webhook.failed", ...}), and every delivery carries a Cronhooks-Signature header — an HMAC-SHA256 hex digest of the raw body, verified against your webhook secret with a constant-time compare.
Endpoint-by-endpoint mapping
| Cronhooks | Recurrence Cloud | Notes |
|---|---|---|
POST /schedules (Bearer token) |
POST /api/v1/schedules/with-webhook (X-API-Key) |
Create schedule + receiver + first event in one atomic call — Cronhooks has no composite |
GET /schedules?skip&limit |
GET /api/v1/schedules |
Paginated list, scoped to your API key’s org |
GET /schedules/{id} · PUT /schedules/{id} |
GET /api/schedules/{id} · PATCH /api/schedules/{id} |
Partial update instead of full-PUT; active: false pauses |
DELETE /schedules/{id} → 204 |
DELETE /api/schedules/{id} → 200 + {success: true} |
Mainly a client-code change: expect a body on delete |
POST /schedules/{id}/trigger → 204 |
run-now trigger on the schedule | Immediate test fire; next run untouched |
POST /schedules/{id}/pause · resume → 204 |
PATCH with active: false / true |
One flag instead of two verbs; schedule survives either way |
Groups (POST/GET/PUT/DELETE /groups) |
Organizations → apps → environments | Typed testing/production envs; scoping per API key instead of {{VAR}} interpolation |
GET /groups/{id}/schedules |
GET /api/v1/schedules filtered by app |
Apps are the grouping unit tied to billing and webhooks |
| — | POST /api/schedules/test-due |
Dry-run which schedules fire and why — timezone debugging without side effects |
| — | GET /api/activity |
Org-wide delivery stream with per-attempt receipts |
One-time vs recurring: the field changes, the model doesn’t
Cronhooks switches on isRecurring: runAt for one-time, cronExpression for recurring. In Recurrence Cloud, both shapes are the same schedule entity — a cron expression (with a timezone, DST handled for you), or human-friendly recurrence (recurrenceText: "every 2 weeks on monday at 09:00", or frequency/interval/byDay/startTime fields) for code and agents that don’t speak crontab. One-time fires are just a schedule that runs once; delete-after-fire is built in.
The bigger conceptual shift: Cronhooks attaches a payload blob to a schedule. Recurrence Cloud attaches event definitions — a subject grouping key plus a free-form payload — to a schedule. Events sharing a subject on the same fire are delivered as one batch ({ subject, count, events: [...] }), which is what makes multi-tenant sweeps a single atomic delivery with one signature check instead of N calls.
Retries, signatures, and the header your receiver checks
| Cronhooks | Recurrence Cloud | |
|---|---|---|
| Retry config | retryCount + retryIntervalSeconds, one-time schedules only |
Per-schedule policy, one-off and recurring: maxRetries (0–10) with exponential backoff backoffSeconds × 2^(attempt-1) |
| Failure alerts | {"action": "webhook.failed", ...} to your webhook, plus email/Slack |
Signed failure-alert webhooks to your own endpoints, surfaced in the activity trail |
| Signature header | Cronhooks-Signature — HMAC-SHA256 hex of raw body vs your secret |
X-Webhook-Signature — HMAC-SHA256 hex of the raw body, with X-Signature-Algorithm: sha256 and org/app/webhook/batch/attempt headers; an authenticated event envelope travels alongside |
| Verification | Constant-time compare in your language of choice | Same discipline — verification guide with code — fail closed with 401 |
| Secret handling | Per-webhook wh_... secret |
Secret per registered webhook; rotate without touching schedules |
Both header names go wherever headers go — most receivers change two lines during migration: the header you read, and the secret environment variable it’s compared against.
The migration checklist
- Inventory your schedules (
GET /schedules?skip=0&limit=…): note eachcronExpression/runAt, timezone, method, and headers. - Register receivers and copy signing secrets — no re-deploys of your endpoints; only the expected signature header changes.
- Recreate schedules via
POST /api/v1/schedules/with-webhook, mapping payload blobs to event definitions with subjects. - Point receivers at the new delivery. Run a run-now trigger, or capture the response in webhook inspector tooling to confirm signature verification passes before cutover.
- Map group variables to environment-scoped app config; anything interpolated into scheduled payloads becomes an explicit event field — auditable and diff-reviewable.
- Update client code for response bodies: 204-empty on Cronhooks mutations vs JSON success on Recurrence Cloud.
- Enable retry policies and failure alerts per schedule, then monitor the activity trail for the first week.
Most teams finish the mechanical mapping in an afternoon; the receipts — per-attempt retry history, per-webhook activity, signed failure alerts — are the part Cronhooks doesn’t hand you, and the reason you’re migrating.
FAQ
What does the Cronhooks delete schedule API return?
DELETE https://api.cronhooks.io/schedules/{id} returns 204 No Content when the delete succeeds (and an error JSON body on failure). Recurrence Cloud's equivalent, DELETE /api/schedules/{id}, responds with 200 and a JSON body containing success, so update clients that assume an empty-body response.
How does Cronhooks sign scheduled webhook deliveries?
Cronhooks sends a Cronhooks-Signature header: an HMAC-SHA256 hex digest of the raw request body computed with your webhook secret, which you verify with a constant-time comparison. Recurrence Cloud signs with X-Webhook-Signature — a hex HMAC-SHA256 over the raw body — plus an authenticated event envelope and organization, app, webhook, batch, and attempt headers.
What replaces Cronhooks groups and environment variables in Recurrence Cloud?
Organizations, apps, and typed environments (testing and production). Where Cronhooks interpolated {{VAR}} into URLs, headers, and payloads, Recurrence Cloud scopes app references per environment and puts per-schedule values in the event payload — typed, validated, and versioned in code review rather than interpolated at send time.
How do Cronhooks retries compare to Recurrence Cloud?
Cronhooks exposes retryCount and retryIntervalSeconds for one-time schedules only; recurring schedules have no retry policy. Recurrence Cloud attaches a retry policy per schedule — configurable attempts with exponential backoff (backoffSeconds × 2^(attempt-1)) — for one-off and recurring alike, and every attempt is recorded in the activity trail.
Can I trigger a Cronhooks-style on-demand fire in Recurrence Cloud?
Yes. Cronhooks has POST /schedules/{id}/trigger; Recurrence Cloud's equivalent is a run-now trigger on the schedule. Both fire immediately without disturbing the schedule, and both return success without affecting the next planned run — pair it with a test-due dry-run to debug timezone or cron logic.
Is Cronhooks' sendCronhookObject supported?
You don't need an equivalent: Recurrence Cloud events carry a first-class envelope — event id, subject, schedule name, and your payload — so receivers always know which schedule fired and which batch it belongs to, and can dedupe on the event id.