A RECURRING EVENTS API: SCHEDULE RECURRING EVENTS OVER HTTP
A recurring events API: schedule recurring events over HTTP
What a recurring events API looks like in practice: cron-timed event definitions with subjects and payloads, delivered as signed webhooks in a single call from any HTTP client — plus batching, idempotency, and the MCP/A2A variant for agents.
A “recurring events API” shows up in two very different searches: developers looking for a calendar-style recurrence endpoint (RRULE, recurring calendar events), and developers looking for a machine-shaped primitive — recurring events my backend code hears about on a schedule, over HTTP, from an API. This article is the second one, because it’s the one that turns “every Monday, wake up this workflow” into something you can create from curl — and it’s exactly what Recurrence Cloud is.
The model: schedule, subject, payload, receiver
Three REST resources and one delivery make up the whole surface:
| Resource | Fields | Meaning |
|---|---|---|
| Schedule | name, cronExpr or recurrenceText, timezone, retry policy |
The when — evaluated by the scheduler, DST-correct |
| Webhook (receiver) | url, secret |
The where — any HTTPS endpoint of yours |
| Event definition | subject (grouping key), payload (your JSON) |
The what — attached to a schedule |
| Delivery (run) | signed POST per fire | The proof — status, latency, response, retries recorded |
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": "weekly-invoice-sweep", "cronExpr": "0 6 1 * *", "timezone": "UTC" },
"webhook": { "url": "https://api.yourapp.dev/sweeps/invoices" },
"event": { "subject": "invoice-run-2026-12", "payload": { "cycle": "2026-12" } },
"appId": "$APP_ID"
}'
Attach more recurring events to the same schedule:
curl -X POST https://api.recurrence.cloud/api/v1/events \
-H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \
-d '{ "scheduleId": "sch_…", "subject": "invoice-run-2026-12", "payload": { "stage": "reminders", "day": 15 } }'
Why “events” and not “jobs”
A recurring events API draws its power from a modeling decision: the recurring thing is a typed event, not a bare “run.”
- Subjects make fan-out sane. One schedule, many events, grouped by subject. A multi-tenant sweep becomes one schedule (
0 3 * * *) with N subject-keyed events — delivered as one batched webhook per subject, one signature check, one activity entry, atomic retries. - Payloads are yours. The event data crossing the wire is defined by you at attach time — validated JSON, not shell escaping. Receivers stay dumb and reliable.
- Subjects make idempotency natural. Retries reuse the same event ids and batch id, so a receiver can key deduplication and side-effect guards on them.
Cron, rrule, or plain English — you pick the input
Recurrence is expressed three ways, same endpoint:
cronExpr—0 9 * * 1-5(machines, cheat sheet)recurrenceText—"every 2 weeks on monday at 09:00"(humans, agents, chat)- Structured fields —
frequency+interval,byDay,byMonthDay,startTime(code, UI builders)
That’s the practical answer to the calendar-vs-machine fork: the wire format is cron-shaped (what schedulers and workers evaluate), but the API accepts human-style recurrence so product code and agents don’t need a cron string builder. A test-due dry-run and a next-runs preview show exactly when a schedule fires — no guessing about DST or weekday semantics.
The agent-compatible recurring events API
The same lifecycle is exposed for automation that isn’t a human with a curl:
- MCP — a remote MCP server exposes 17 scheduling tools; agents create, update, inspect, and delete recurring event schedules via JSON-RPC, scoped to their key and fully audited.
- A2A / agent-task APIs — an agent card at
/.well-known/agent-card.jsonwith task-based endpoints for the same surface. - Every agent call is logged — tool, arguments, outcome — so agent-created schedules have governance, not just convenience.
What the recipient experiences
Once per fire, one POST, no polling anywhere:
{
"events": [
{ "id": "evt_01", "subject": "invoice-run-2026-12", "scheduleName": "weekly-invoice-sweep",
"data": { "cycle": "2026-12" } },
{ "id": "evt_02", "subject": "invoice-run-2026-12", "data": { "stage": "reminders", "day": 15 } }
],
"organizationId": "org_1", "appId": "app_1", "webhookId": "wh_1"
}
Signed (X-Webhook-Signature, HMAC-SHA256 over the raw body — verify before acting, guide here); every attempt visible in the activity trail; failures retried on the schedule’s policy. A recurring events API is really a delivery contract: cron in, signed structured events out, receipts in between. That’s the whole idea — and the API that implements it is four endpoints deep, not a platform migration.
FAQ
What is a recurring events API?
An API for defining events that fire on a recurring time pattern — usually cron expressions — rather than in response to user actions. Recurrence Cloud's recurring events API is plain REST: create a schedule (cron expression + timezone), register a webhook receiver, and attach event definitions (a subject grouping key plus a payload). When the schedule fires, the events are delivered as a signed webhook POST.
How do I create recurring events via an API?
One call with Recurrence Cloud: POST /api/v1/schedules/with-webhook with a schedule object (name, cronExpr, timezone), a webhook object (your HTTPS URL), an event object (subject + payload), and an appId. Additional events attach to the same schedule with POST /api/v1/events, and PATCH edits the schedule — including recurrenceText phrases like 'every 2 weeks on monday at 09:00'.
What's the difference between a recurring events API and a calendar RRULE API?
Same idea, different audience. RRULE (iCalendar) describes recurrence in human calendar terms — a recurring calendar event API like Google Calendar's events endpoint is for things a human attends. A recurring *webhook* events API describes recurrence in machine terms — cron expressions firing HTTP calls carrying your payloads. Recurrence Cloud supports both styles of input: cronExpr and recurrenceText.
How are recurring events grouped when they fire?
By subject. Events sharing a subject attached to the same schedule are delivered together in one webhook payload ({ subject, count, events: [...] }) — one HTTP call, one signature check, one activity entry with atomic retries. That's the model for multi-tenant sweeps where a thousand per-customer events should be one batched recurring delivery, not a thousand calls.
Can AI agents create recurring events?
Yes. Recurrence Cloud exposes the same lifecycle over MCP — a remote MCP server whose 17 scheduling tools let agents create, inspect, update, and delete recurring event schedules via JSON-RPC — and over the A2A protocol (agent card, task-based APIs), with every tool call recorded in a dedicated agent audit log.