1. Features
  2. Calendar
Calendar

Every calendar, with recurring series done right.

Every Google, Microsoft 365 and CalDAV calendar in one event model, with series, RSVP, free/busy and Teams, Meet, Zoom or Webex meetings.

this-week.tsthis-week.py
import { paginate } from "@workwae/sdk";

// Singles, occurrences and exceptions overlapping the range
const events = paginate(workwae.calendarEvents.list, {
  accountId,
  start: new Date("2026-11-02T00:00:00Z"),
  end: new Date("2026-11-09T00:00:00Z"),
});

for await (const event of events) {
  // "single" | "occurrence" | "exception"
  console.log(event.kind, event.subject, event.start.dateTime);
  if (event.seriesId) {
    // The series holds the rule, stored once
    const series = await workwae.calendarEvents.get({
      accountId,
      eventId: event.seriesId,
    });
    console.log(series.recurrence, series.recurrenceTimeZone);
  }
}
from datetime import datetime, timezone

from workwae import paginate

# Singles, occurrences and exceptions overlapping the range
events = paginate(
    workwae.calendar_events.list,
    account_id=account_id,
    start=datetime(2026, 11, 2, tzinfo=timezone.utc),
    end=datetime(2026, 11, 9, tzinfo=timezone.utc),
)

for event in events:
    # "single" | "occurrence" | "exception"
    print(event.kind, event.subject, event.start.date_time)
    if event.series_id:
        # The series holds the rule, stored once
        series = workwae.calendar_events.get(
            account_id=account_id,
            event_id=event.series_id,
        )
        print(series.recurrence, series.recurrence_time_zone)
What you get

A full calendar API, not a read-only feed.

The same calendars, events and answers on every provider, with differences handled or reported.

Every calendar it sees

Own and shared calendars with owner, access level, canEdit, color, zone and primary flag; hidden ones sync too.

A rolling window

90 days back to 365 ahead, moving on its own; list any 400 days of it by start.

Series stored once

One RFC 5545 rule with exceptions and cancelled starts, expanded in the window, so a series change is one update.

Writes at every level

Create, update and delete singles, series or one occurrence, which then becomes an exception.

RSVP

Answer an occurrence or the series, with an optional comment, telling the organizer or not.

Free/busy and suggestions

Busy blocks and common free slots for up to 20 attendees from one provider request.

Time zones kept

Write wall-clock times with an IANA zone, read back the instant and zone; all-day ends are exclusive and Windows zones map to IANA.

Online meetings

Teams or Meet, Zoom or Webex, or any https link, read back as onlineMeetingUrl.

Changes as events

Updates name the changed fields, and calendar sync never holds up mail.

Build it: series

Create a series, then change one occurrence.

Rules run in the start's IANA zone, so a 10:00 meeting stays at 10:00 across daylight saving changes.

  • Four kinds: single, series, occurrence and exception, the last two with seriesIdseries_id and originalStartoriginal_start.
  • Address the level you mean. Patch an occurrence or the whole series; a rule on an occurrence is refused, and a rule on a single makes it a series.
  • Explicit removals. A removed occurrence is listed in the series' cancelledStartscancelled_starts.
  • Attendees are told by default; notify: false keeps a change quiet where the provider allows it.
series.tsseries.py
const timeZone = "Europe/Berlin";

const series = await workwae.calendarEvents.create({
  accountId,
  calendarId,
  subject: "Design review",
  start: { dateTime: "2026-11-05T10:00:00", timeZone },
  end: { dateTime: "2026-11-05T11:00:00", timeZone },
  attendees: [{ address: "lena@example.com" }],
  recurrence: ["RRULE:FREQ=WEEKLY;BYDAY=TH;COUNT=10"],
});

// Find the third occurrence in the index
const { items } = await workwae.calendarEvents.list({
  accountId,
  calendarId,
  start: new Date("2026-11-19T00:00:00Z"),
  end: new Date("2026-11-20T00:00:00Z"),
});
const third = items.find((e) => e.seriesId === series.id)!;

// Move just that one: it becomes an exception
await workwae.calendarEvents.update({
  accountId,
  eventId: third.id,
  start: { dateTime: "2026-11-19T14:00:00", timeZone },
  end: { dateTime: "2026-11-19T15:00:00", timeZone },
});

// Cancel the whole series, quietly
await workwae.calendarEvents.delete({
  params: { accountId, eventId: series.id },
  query: { notify: false },
});
from datetime import datetime, timezone

time_zone = "Europe/Berlin"

series = workwae.calendar_events.create(
    account_id=account_id,
    calendar_id=calendar_id,
    subject="Design review",
    start={"date_time": datetime(2026, 11, 5, 10), "time_zone": time_zone},
    end={"date_time": datetime(2026, 11, 5, 11), "time_zone": time_zone},
    attendees=[{"address": "lena@example.com"}],
    recurrence=["RRULE:FREQ=WEEKLY;BYDAY=TH;COUNT=10"],
)

# Find the third occurrence in the index
items = workwae.calendar_events.list(
    account_id=account_id,
    calendar_id=calendar_id,
    start=datetime(2026, 11, 19, tzinfo=timezone.utc),
    end=datetime(2026, 11, 20, tzinfo=timezone.utc),
).items
third = next(e for e in items if e.series_id == series.id)

# Move just that one: it becomes an exception
workwae.calendar_events.update(
    account_id=account_id,
    event_id=third.id,
    start={"date_time": datetime(2026, 11, 19, 14), "time_zone": time_zone},
    end={"date_time": datetime(2026, 11, 19, 15), "time_zone": time_zone},
)

# Cancel the whole series, quietly
workwae.calendar_events.delete(
    account_id=account_id,
    event_id=series.id,
    notify=False,
)
Build it: availability

Find a time that works for everyone.

Workwae computes common free slots from one provider request and caches the answer for 60 seconds, so a booking page can ask again for free.

  • Up to 20 attendees over up to 62 days, the account included unless includeAccountinclude_account is false.
  • Your slots: length and step from 5 minutes to a day (30 by default), working days and hours, and their zone.
  • Honest gaps. An attendee the provider can't see carries an error and is listed in unresolved, with complete: false; requireAllrequire_all withholds suggestions until everyone could be read.
  • Several accounts: POST /v1/availability/find finds slots where all of them are free, or which of them are free per slot.
  • Busy status: busy, tentative, oof, working_elsewhere (doesn't block a slot) or unknown; Google reports every block as busy.
availability.tsavailability.py
const { attendees, suggestions } = await workwae.availability.find({
  accountId,
  attendees: ["lena@example.com", "omar@example.com"],
  start: new Date("2026-11-09T00:00:00Z"),
  end: new Date("2026-11-14T00:00:00Z"),
  durationMinutes: 60,
  stepMinutes: 30,
  timeZone: "Europe/Berlin",
  workingHours: {
    start: "09:00",
    end: "17:00",
    days: ["mon", "tue", "wed", "thu"],
  },
  maxSuggestions: 5,
});

// Attendees the provider could not see
for (const { address, error } of attendees) {
  if (error) console.warn(address, error);
}

// Earliest first
const [slot] = suggestions;
from datetime import datetime, timezone

result = workwae.availability.find(
    account_id=account_id,
    attendees=["lena@example.com", "omar@example.com"],
    start=datetime(2026, 11, 9, tzinfo=timezone.utc),
    end=datetime(2026, 11, 14, tzinfo=timezone.utc),
    duration_minutes=60,
    step_minutes=30,
    time_zone="Europe/Berlin",
    working_hours={
        "start": "09:00",
        "end": "17:00",
        "days": ["mon", "tue", "wed", "thu"],
    },
    max_suggestions=5,
)

# Attendees the provider could not see
for attendee in result.attendees:
    if attendee.error:
        print(attendee.address, attendee.error)

# Earliest first
slot = result.suggestions[0]
Build it: scheduling links

Bookable time, without a double booking.

A scheduling link holds the rules; Workwae serves its open slots and books one by re-checking the calendars and creating the event. You render the booking page.

  • Rules: working hours per weekday in a time zone, slot length and step, buffers, minimum notice, a daily cap and how many days ahead.
  • One host or all: mode all invites every account; any picks the account with the fewest recent bookings.
  • Safe under load: two requests for the same slot can't both book it; the second answers 409 slot_taken.
  • Events: booking.created and booking.cancelled webhooks, and the event's own Teams, Meet, Zoom or Webex link.

Explore bookings Bookings guide

scheduling.tsscheduling.py
const link = await workwae.schedulingLinks.create({
  name: "Intro call",
  accountIds: [lenaAccountId, omarAccountId],
  mode: "any", // round-robin
  durationMinutes: 30,
  timeZone: "America/New_York",
  bufferAfterMinutes: 10,
  minimumNoticeMinutes: 240,
  onlineMeetingService: "zoom",
});

// For your booking page
const { items } = await workwae.schedulingLinks.slots({ linkId: link.id });

// Re-checks the calendars, then creates the event
const booking = await workwae.bookings.create({
  linkId: link.id,
  start: items[0].start,
  invitee: { name: "Priya Shah", address: "priya@example.com" },
});
link = workwae.scheduling_links.create(
    name="Intro call",
    account_ids=[lena_account_id, omar_account_id],
    mode="any",  # round-robin
    duration_minutes=30,
    time_zone="America/New_York",
    buffer_after_minutes=10,
    minimum_notice_minutes=240,
    online_meeting_service="zoom",
)

# For your booking page
slots = workwae.scheduling_links.slots(link_id=link.id).items

# Re-checks the calendars, then creates the event
booking = workwae.bookings.create(
    link_id=link.id,
    start=slots[0].start,
    invitee={"name": "Priya Shah", "address": "priya@example.com"},
)
Build it: meetings and RSVP

Attach a meeting, answer an invitation.

Each event gets the provider's Teams or Meet link, a link you have, or a Zoom or Webex meeting Workwae creates and moves with the event.

  • One option per event: onlineMeetingonline_meeting, onlineMeetingUrlonline_meeting_url and onlineMeetingServiceonline_meeting_service are mutually exclusive.
  • onlineMeetingUrl: nullonline_meeting_url=None removes any conference on Google, Meet included, and only the location's link on Microsoft.
  • Answers go per occurrence or series; Google changes only the account's own attendee entry, and an organizer can't answer its own meeting.
  • Zoom and Webex meetings follow the event's subject, times and rule. How meetings work.
meeting-and-rsvp.tsmeeting-and-rsvp.py
// Teams on Microsoft 365, Meet on Google
await workwae.calendarEvents.create({
  accountId,
  calendarId,
  subject: "Kickoff",
  start: { dateTime: "2026-11-10T16:00:00", timeZone: "UTC" },
  end: { dateTime: "2026-11-10T16:30:00", timeZone: "UTC" },
  attendees: [{ address: "omar@example.com" }],
  onlineMeeting: true,
});

// Or a link you already have, on any provider
await workwae.calendarEvents.update({
  accountId,
  eventId,
  onlineMeetingUrl: "https://meet.example.com/r/standup",
});

// Decline one occurrence with a note
await workwae.calendarEvents.respond({
  accountId,
  eventId: occurrence.id,
  response: "declined",
  comment: "Out that day, notes please",
});
from datetime import datetime

# Teams on Microsoft 365, Meet on Google
workwae.calendar_events.create(
    account_id=account_id,
    calendar_id=calendar_id,
    subject="Kickoff",
    start={"date_time": datetime(2026, 11, 10, 16), "time_zone": "UTC"},
    end={"date_time": datetime(2026, 11, 10, 16, 30), "time_zone": "UTC"},
    attendees=[{"address": "omar@example.com"}],
    online_meeting=True,
)

# Or a link you already have, on any provider
workwae.calendar_events.update(
    account_id=account_id,
    event_id=event_id,
    online_meeting_url="https://meet.example.com/r/standup",
)

# Decline one occurrence with a note
workwae.calendar_events.respond(
    account_id=account_id,
    event_id=occurrence_id,
    response="declined",
    comment="Out that day, notes please",
)
Reference and FAQ

The details, when you need them.

Per-provider details

Every push channel has a backstop poll; intervals are defaults.

Calendar sync behavior by provider
Aspect Google Calendar Microsoft 365 CalDAV (IMAP accounts)
Calendars Calendar list read in full at most once per backstop interval, as some changes never show incrementally All calendars and calendar groups, listed on the first pass and polls; not another mailbox's calendars From a provider table (iCloud, Fastmail, Yahoo, GMX, Zoho, mailbox.org, Posteo), .well-known or DNS SRV
Push A channel per owned or writable calendar and the list, renewed a day before expiry One subscription per account None; API writes sync at once
Backstop poll Daily with push, hourly without; reader and free/busy calendars rely on it Every 10 minutes with push, every minute without Every 15 minutes
Change detection Sync-token lists, series included, frugal for Google's daily quota A calendarView delta per calendar; rules from the series master sync-collection or ctag and etag; 50 changed objects per read
Window Series expanded locally; rolls daily without a request From the first of the UTC month to about a month past the window; re-read monthly, announcing only real changes Series expanded locally in the start's zone
Recurrence writes RFC 5545 lines; an occurrence is resolved right before a write One RRULE with an Outlook pattern; RDATE, EXDATE, EXRULE, several rules and finer frequencies are refused RRULE, RDATE and EXDATE on the series object; overrides are its exceptions
Invitations Sent by Google; notify decides whether attendees hear Always sent for meetings it organizes; a delete can carry a comment Sent by a scheduling server (RFC 6638), else via the account's SMTP for meetings it organizes
Free/busy One freeBusy.query for all attendees One getSchedule for all attendees One VFREEBUSY where the server schedules, else the account's own calendars only
Online meetings Meet; another link becomes an add-on conference Teams; another link becomes the location's link, with a join line in the body No provider links; another link is the CONFERENCE property
  • Calendar sync has its own backoff, so a grant without calendar access reports a calendar error while mail syncs.
  • Google needs the full calendar scope; calendar.events can't read the calendar list.
  • Microsoft all-day events anchor in the mailbox zone with MailboxSettings.Read, else in the event's creation zone.
  • CalDAV writes are conditional on the version read; another client's change is reapplied up to three times before a conflict.
Calendar events

Singles, series and exceptions are announced, never plain occurrences, so a weekly series change is one calendar_event.updated. See webhooks and the change feed.

Calendar events
Event When Data
calendar.initialized The first calendar sync finished; nothing before it is announced event by event calendars, events (counts)
calendar.created A calendar appeared calendar
calendar.updated Name, color, access, time zone or hidden state changed calendar, changes
calendar.deleted A calendar was deleted or unshared calendar
calendar_event.created A single, series or exception appeared; a changed occurrence arrives as a new exception event
calendar_event.updated A single, series or exception changed event, changes (for example start, attendees, selfResponse)
calendar_event.deleted A single, series or exception went away eventId, calendarId, kind, seriesId
Why does listing events not return the series itself?

A range listing returns what happens in it: singles, occurrences and exceptions. Get the series by any occurrence's seriesId to read its rule, time zone and cancelled starts.

Can I read events outside the window?

No, only the window is indexed. A series that started earlier still has its occurrences inside it.

What if the account can only read a calendar?

It still syncs, with canEdit false. Writes to it are refused with calendar_read_only.

What happens when the provider cannot express a request?

Workwae refuses it with a named reason and writes nothing, for example a rule Outlook has no pattern for. Another is notify: false on a Microsoft meeting the account organizes.

Can calendar be turned off for some accounts?

Yes, with a tenant default and a per-account setting; while off, calendar routes answer calendar_disabled. Connect asks for no calendar scopes when the plan leaves calendar out.

Early access

Build on every calendar your users already have.

Workwae is in early access. Tell us what you are building, and read the docs in the meantime.