SEND A WEBHOOK POST REQUEST ON A DAILY SCHEDULE (CRON, NO SERVERS)
Send a webhook POST request on a daily schedule (cron, no servers)
How to send webhook POST requests on a daily schedule: one cron expression and one API call create a recurring daily webhook, signed with HMAC, time-zone aware, with retries and an activity trail — no cron daemon, no server to keep awake.
“Send a webhook POST request on a daily schedule” is the most common shape of scheduled work there is — the daily digest, the nightly sync, the 9am report, the once-a-day backup check. It needs exactly two things: something that owns the clock, and an HTTP POST with your payload when the clock ticks. Here’s the no-server version, with the whole setup in one API call.
Step 1: The cron expression (and its timezone)
A daily schedule is a 5-field cron expression. The three you’ll reach for first:
| Goal | Expression |
|---|---|
| Every day at 9:00 | 0 9 * * * |
| Weekdays at 9:00 | 0 9 * * 1-5 |
| Twice a day (9am / 5pm) | 0 9,17 * * * |
The timezone is part of the schedule — "0 9 * * *" + America/New_York fires at 9am New York, DST handled by the scheduler, not by clever code in your receiver. More patterns live in the cron cheat sheet.
Step 2: One API call — schedule + webhook + event
curl -X POST https://api.recurrence.cloud/api/v1/schedules/with-webhook \
-H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \
-d '{
"schedule": { "name": "daily-digest", "cronExpr": "0 9 * * *", "timezone": "America/New_York" },
"webhook": { "url": "https://api.yourapp.dev/hooks/digest" },
"event": { "subject": "digest-prod", "payload": { "type": "digest.daily", "period": "24h" } },
"appId": "$APP_ID"
}'
That single call creates the recurring schedule, registers the receiver, and attaches the event definition. Tomorrow at 9am New York time — and every day after — the scheduler POSTs to your URL:
{
"events": [
{ "id": "evt_…", "subject": "digest-prod", "scheduleName": "daily-digest",
"data": { "type": "digest.daily", "period": "24h" } }
]
}
Change the event, the cron, or the timezone later by PATCHing the schedule — no redeploy, no cron-file edit. recurrenceText (“every day at 09:00”) works too, for tools and agents that don’t speak crontab.
Step 3: Verify the signature, accept the POST
The daily POST is signed: X-Webhook-Signature is a hex HMAC-SHA256 over the raw request body, verifiable against your webhook secret. Verify before doing work — an unsigned daily trigger is a remote trigger anyone can fire:
app.post("/hooks/digest", async (c) => {
const raw = await c.req.raw.text(); // exact bytes, pre-parse
const ok = await verifyHmacHex(
c.req.header("X-Webhook-Signature")!, raw, process.env.WEBHOOK_SECRET!);
if (!ok) return c.json({ error: "invalid signature" }, 401); // constant-time compare, generic body
await queue.push(JSON.parse(raw)); // ack fast, process async
return c.json({ ok: true });
});
The full verification patterns (constant-time compare, fail-closed rules) are in the HMAC verification guide, and you can prove your logic locally before deploy by replaying captured deliveries against localhost.
Why not just a cron entry?
You could curl your endpoint from crontab on some server that must never sleep. What you’d miss is everything around the tick:
| crontab + curl | Recurrence Cloud | |
|---|---|---|
| The clock | A host that must stay up | Managed, retries on the schedule too |
| Payload | Your shell escaping | Structured, schema-validated event JSON |
| Signed | DIY — sign it yourself every time | HMAC-SHA256 signature on every delivery |
| Failure handling | Silence | Retries with backoff + activity trail + failure alerts |
| Timezones | TZ= tricks, DST archaeology |
First-class schedule field |
| Changes | Edit crontab → deploy | API/dashboard → apply |
Daily schedules worth copying
- Daily digest —
0 8 * * *+{ "type": "digest.daily" }; your receiver aggregates overnight activity and notifies. - Nightly sync —
0 3 * * *in the client’s timezone; batch events by subject so the whole sync is one atomic delivery. - Daily report to a third party — schedule → your transformer → webhook out; the scheduler owns retries if the third party is down.
From zero to a signed daily webhook POST is one curl — the recurring POST happens whatever you’re doing, and the receipts tell you it kept happening.
FAQ
How do I send a webhook POST request on a daily schedule?
Create a recurring schedule with a daily cron expression (0 9 * * * runs every day at 9:00), register the webhook URL that should receive it, attach an event payload, and let a scheduler POST the signed request every day at that time. With Recurrence Cloud it is one API call: POST /api/v1/schedules/with-webhook creates the daily schedule, the receiver, and the event together.
What cron expression runs a webhook every day at 9am?
0 9 * * * — minute 0, hour 9, every day of the month, every month, every day of the week. Pair it with a timezone field (e.g. America/New_York) so 9am means the local 9am, DST-corrected. For weekdays only use 0 9 * * 1-5.
Can I send daily webhook POSTs without a server?
Yes. A scheduled webhook receiver just needs to accept HTTP POSTs — it can be an edge function, a serverless route, or any endpoint — because the clock lives outside with the scheduler. Nothing of yours needs to stay awake to hit the schedule.
How do I verify the daily webhook is genuine?
Each daily delivery is signed: Recurrence Cloud sends X-Webhook-Signature, a hex HMAC-SHA256 digest of the raw request body, which you verify against your webhook secret with a constant-time comparison. Reject any unsigned POST — an unsigned endpoint that triggers daily work is a remote trigger anyone can fire.
What happens if the daily receiver is down?
The delivery is retried on a per-schedule policy — exponential backoff until maxRetries is reached — and every attempt (status code, latency, response excerpt) is recorded in the activity trail. Failure alerts can also POST a signed warning to another endpoint of yours.