List calendars
The account must have been connected with scopes=calendar (412 account_scope_missing otherwise).
Authentication
API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
Query parameters
The connected Google, Microsoft or IMAP account.
Responses
Success· the request worked
Errors· the request failed
List events in a window
Recurring series are expanded into their occurrences inside the window by default. `expandRecurring=false` lists the masters instead, including series that started before `from` and still recur in the window. Events that overlap the window edges are included. `title` and `location` are substring matches applied to the fetched page. When the provider does not answer, the last list read for the same account and query within the past six hours is returned with `stale: true`, `asOf` and an `X-Zernio-Stale-As-Of` header instead of a 502. When there is no such list and the window is wider than 31 days, Zernio reads once more with the window cut to one day back and two weeks ahead of now (inside `from` and `to`). It returns that with `partial: true`, `coveredFrom`, `coveredTo` and a `pagination.nextCursor` for the rest. Send the same request with that `cursor` until `nextCursor` is null. Each call returns a slice of up to 90 days, future first, then the past. Slices are not sorted against each other, and an event on a slice edge can appear twice, so merge by `id`. The extra fields are absent on a normal read.
Create an event
Creates a calendar event. Conferencing and recurrence behave differently on Microsoft and Google accounts. ### Microsoft accounts - `conferencing: teams` adds a Teams meeting. The created event comes back with `conferencing: null` when the tenant has no Teams (the EEA Business Basic SKUs ship without it). - `google_meet` is rejected with 400 (`param: conferencing`). ### Google accounts - `conferencing: google_meet` adds a Meet link. - `teams` is rejected with 400. - `recurrence` accepts any RRULE Google Calendar supports. ### Recurrence `recurrence` takes one RRULE line with FREQ, INTERVAL, COUNT, UNTIL, BYDAY and BYSETPOS. Other parts are rejected with 400 (`param: recurrence`). ### Reminders Each `reminders.overrides` entry is `{ method, minutes }`, with `method` `popup` (default) or `email`. - Google takes up to 5 overrides of either method. - Outlook keeps one popup reminder, the first override. An `email` override answers 400 `reminder_method_unsupported`.