Guide
Scheduling & timezones
Every scheduled delivery fires in the recipient's own timezone — so "send on day 3 at 9am" means 9am where the patient is, not on your server.
The recipient's timezone
Each recipient carries an IANA timezone (e.g. Europe/London,
America/New_York). Key facts:
- It is always set — never null.
-
It defaults to
Europe/London(UK) if you don't supply one when creating the recipient. -
It's validated on write — an invalid zone is rejected with
422at create/update time, so a bad value can never silently misfire a send later. - You can change it any time with
PATCH /v1/recipients/{id}.
All of that recipient's schedules resolve against this zone. See
timezone on the recipient schemas in the
API reference.
Two ways to schedule
1. Plan templates — relative cadence
A plan template is reusable across many recipients, so its items are defined relative to each enrolment, not as absolute times:
start_offset_days— days after the enrolment date for the first send.-
send_time— the time-of-day to send (interpreted pertime_basis, below). If you omit it, it defaults to 09:00 (never midnight, never your server's clock). rrule— an optional recurrence (iCalendar RRULE) for repeating items.
When a recipient is enrolled, each item is resolved to an absolute instant
for that recipient — enrolment date + offset at send_time — and
stored on a schedule.
2. Custom schedules — one specific recipient
For a bespoke schedule, POST a custom schedule with a starts_at
timestamp (plus an optional rrule). As with plan items, how the time is read
is governed by time_basis.
Timezone basis: recipient_local vs absolute
Both plan items and custom schedules carry a time_basis that decides how their
send time is interpreted. This is the one knob for the two real use cases:
-
recipient_local(default) — the wall-clock is read in each recipient's own timezone. "9am" means 9am in London for a London patient and 9am in New York for a New York patient. For a custom schedule, send a naive/local datetime like2026-01-01T09:00:00(any offset is ignored — it's a local wall time). This is almost always what you want for patient-facing sends. -
absolute— the time is a fixed instant, the same moment for everyone, regardless of where they are. For a custom schedule, send a tz-aware datetime (e.g.2026-01-01T12:00:00Z); a naive one is treated as UTC. Use this for a one-off announcement to everyone at the same time.
Either way, we store the recipient's timezone and do the maths — you never have to convert per-recipient local times to UTC yourself.
Recurrence & "Ongoing": an rrule with no end
(no COUNT / UNTIL) is an open-ended series — the plan runs
indefinitely until you cancel it. A bounded rrule stops after its last
occurrence; no rrule at all is a single one-time send.