Every calendar it sees
Own and shared calendars with owner, access level, canEdit, color, zone and primary flag; hidden ones sync too.
Every Google, Microsoft 365 and CalDAV calendar in one event model, with series, RSVP, free/busy and Teams, Meet, Zoom or Webex meetings.
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)The same calendars, events and answers on every provider, with differences handled or reported.
Own and shared calendars with owner, access level, canEdit, color, zone and primary flag; hidden ones sync too.
90 days back to 365 ahead, moving on its own; list any 400 days of it by start.
One RFC 5545 rule with exceptions and cancelled starts, expanded in the window, so a series change is one update.
Create, update and delete singles, series or one occurrence, which then becomes an exception.
Answer an occurrence or the series, with an optional comment, telling the organizer or not.
Busy blocks and common free slots for up to 20 attendees from one provider request.
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.
Teams or Meet, Zoom or Webex, or any https link, read back as onlineMeetingUrl.
Updates name the changed fields, and calendar sync never holds up mail.
Rules run in the start's IANA zone, so a 10:00 meeting stays at 10:00 across daylight saving changes.
single, series,
occurrence and exception, the last two with
seriesIdseries_id and originalStartoriginal_start.
cancelledStartscancelled_starts.
notify: false keeps a change
quiet where the provider allows it.
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,
)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.
includeAccountinclude_account is false.
error and is listed in unresolved, with
complete: false; requireAllrequire_all withholds suggestions until
everyone could be read.
POST /v1/availability/find finds slots
where all of them are free, or which of them are free per slot.
busy, tentative, oof,
working_elsewhere (doesn't block a slot) or unknown; Google
reports every block as busy.
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]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.
all invites every account;
any picks the account with the fewest recent bookings.
409 slot_taken.
booking.created and
booking.cancelled webhooks, and the event's own Teams, Meet, Zoom or
Webex link.
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"},
)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.
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.
// 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",
)Every push channel has a backstop poll; intervals are defaults.
| 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 scope; calendar.events can't read the calendar list.MailboxSettings.Read, else in the event's creation zone.
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.
| Event | When | Data |
|---|---|---|
calendar. | The first calendar sync finished; nothing before it is announced event by event | calendars, events (counts) |
calendar. | A calendar appeared | calendar |
calendar. | Name, color, access, time zone or hidden state changed | calendar, changes |
calendar. | A calendar was deleted or unshared | calendar |
calendar_ | A single, series or exception appeared; a changed occurrence arrives as a new exception | event |
calendar_ | A single, series or exception changed | event, changes (for example start, attendees, selfResponse) |
calendar_ | A single, series or exception went away | eventId, calendarId, kind, seriesId |
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.
No, only the window is indexed. A series that started earlier still has its occurrences inside it.
It still syncs, with canEdit false. Writes to it are refused
with calendar_read_only.
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.
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.
Workwae is in early access. Tell us what you are building, and read the docs in the meantime.