Skip to the documentation
API

Calendar

Every operation in this group: what it accepts, what it returns and the errors it can answer with.

Operations

Events and invitations, as the Calendar page of the app shows them: list a window, read an event or the one a thread carries, put events on the calendar and change them, call off a meeting, and answer an invitation. A change that invites, updates or cancels attendees, and every answer, goes out by email, so it also needs emails:send.

GET/calendar/events

List occurrences in a window

Scopescalendar:readReads

from and to are REQUIRED. Occurrences are expanded from recurrence rules, so a calendar has no meaningful unbounded listing. A default window would turn an infinite series into a question with no answer. At most a year apart.

Lists your own events: the ones you made and the ones an address of yours organises or attends. For the workspace owner and their keys, an address counts as theirs unless it was given to a teammate. Set includeTeam to true to add the rest of the workspace, apart from events somebody marked private. A member and a narrowed key always get their own view, whatever includeTeam says.

Requires the calendar:read scope.

Query parameters

fromstringRequired

Start of the window.

Formatdate-time
tostringRequired

End of the window, after from and at most 366 days later.

Formatdate-time
timezonestringRequired

IANA zone. Decides what an all-day event means.

includeTeamboolean

Adds the events of the rest of the workspace, apart from the ones marked private. Only the workspace owner and their keys see more with it.

Defaultfalse
qstring

Words to look for in the title, the place and the organiser. Only events that hold every word come back, so search a long window, at most a year, to find an event by name.

Up to 200 characters
calendarIdsstring

Only the events in these calendars, as ids separated by commas. Events from calendar subscriptions are left out when you name calendars.

limitinteger

Rows per page, 1 to 100.

At least 1At most 100Default25
cursorstring

The previous page's nextCursor, passed back as it came. It is opaque: it holds where the last row sat in this list's order, so a row deleted or edited between pages never breaks the walk, and the next page starts at the first row that sorts after it. A value this list did not hand out is a 400 invalid_cursor.

Returns

A page of occurrences, sorted by start and then by event id, with hasMore and nextCursor. Send the same from, to, timezone and q with every cursor. Nothing in the window is dropped: a series repeats at most once a day, so it gives at most one occurrence per day of the window, and every one is reachable through the pages. The cursor holds the start and event id of the last row, so an event deleted or moved between pages never breaks the walk.

Errors

The errors every operation can return400401403404422429500Error catalog

Also available in

TypeScript
calendar.listEvents()calendar.listAllEvents()calendar.iterateEvents()
Python
calendar.list_events()calendar.list_all_events()calendar.iterate_events()
Ruby
calendar.list_eventscalendar.list_all_eventscalendar.iterate_events
PHP
calendar->listEventscalendar->listAllEventscalendar->iterateEvents
Go
Calendar.ListEventsCalendar.ListAllEventsCalendar.IterateEvents
Java
calendar().listEventscalendar().listAllEventscalendar().iterateEvents
C#
Calendar.ListEventsAsyncCalendar.ListAllEventsAsyncCalendar.IterateEventsAsync
MCP
listCalendarEvents

POST/calendar/events

Create an event

Scopescalendar:writeSends mail

Puts an event on the calendar, as New event on the Calendar page of the app does. start and end are ISO 8601 with a zone, and timezone is the IANA zone the event belongs to, UTC unless you say. recurrence takes an RRULE such as FREQ=WEEKLY;BYDAY=MO, and reminders the minutes before the start.

With attendees, an invitation goes to each of them from the address in from, which has to be one the key or app may send as, so the call also needs emails:send. sendInvites: false keeps the change to your own calendar.

Requires the calendar:write scope.

Request body

summarystringRequired

The title, 1 to 255 characters.

1 to 255 characters
descriptionstring

Notes about the event, up to 8,000 characters.

Up to 8000 characters
locationstring

Where it is: a room, an address or a link.

Up to 255 characters
urlstring

A link that belongs to the event.

Up to 2000 charactersFormaturi
meetingUrlstring

A link to the video call, such as a Zoom, Meet or Teams address. It goes into the invitation, so guests see a Join button in their calendar too. Send an empty string to take it off.

Up to 2000 characters
startstringRequired

When it starts, a Date or ISO 8601 with a zone.

Formatdate-time
endstringRequired

When it ends, after start and at most two years later.

Formatdate-time
allDayboolean

Whether it fills whole days. start and end then mark the days.

timezonestring

The IANA zone the event belongs to, UTC unless you say.

1 to 64 characters
recurrencestring

An RRULE such as FREQ=WEEKLY;BYDAY=MO when it repeats.

Up to 512 characters
attendeesobject[]

Up to 200 people to invite, each { email, name?, optional? }.

Up to 200 items
emailstringRequired
Up to 320 charactersFormatemail
namestring
Up to 128 characters
optionalboolean
remindersobject[]

Up to five reminders, each { minutesBefore, action? }.

Up to 5 items
minutesBeforeintegerRequired
At least 0At most 40320
actionstring
One of"DISPLAY""EMAIL""AUDIO"
transparencystring

OPAQUE shows you busy and TRANSPARENT free.

One of"OPAQUE""TRANSPARENT"
visibilitystring

PUBLIC, PRIVATE or CONFIDENTIAL.

One of"PUBLIC""PRIVATE""CONFIDENTIAL"
sendInvitesboolean

False keeps the change to your own calendar, and sends nothing.

fromstring

The address the invitations come from. It has to be one the key may send as.

Up to 320 characters
calendarIdstring

The calendar to put the event in: one you keep, or one you are a member of with write access. Your default calendar unless you say.

1 to 64 characters

Returns

The event, with its attendees.

Errors

403

from_address_forbidden: the key or app may not send as from. insufficient_scope when invitations would go out and emails:send is missing. calendar_read_only: you are a member of calendarId with read access.

404

calendar_not_found: no calendar you keep or are a member of has that calendarId.

The errors every operation can return400401422429500Error catalog

Also available in

TypeScript
calendar.createEvent()
Python
calendar.create_event()
Ruby
calendar.create_event
PHP
calendar->createEvent
Go
Calendar.CreateEvent
Java
calendar().createEvent
C#
Calendar.CreateEventAsync
MCP
createCalendarEvent

GET/calendar/events/{id}

Retrieve an event

Scopescalendar:readReads

The event with its attendees and their responses. rawIcs is omitted. Everything understood in it is already structured here, and /ics serves the document.

Requires the calendar:read scope.

Path parameters

idstringRequired

Event id, the eventId of an occurrence, such as cal_ followed by 24 hex characters.

Returns

The event.

Errors

The errors every operation can return400401403404422429500Error catalog

Also available in

TypeScript
calendar.getEvent()
Python
calendar.get_event()
Ruby
calendar.get_event
PHP
calendar->getEvent
Go
Calendar.GetEvent
Java
calendar().getEvent
C#
Calendar.GetEventAsync
MCP
getCalendarEvent

PATCH/calendar/events/{id}

Change an event

Scopescalendar:writeSends mail

Changes an event you organise. A field left out keeps its value, and attendees replaces the whole list. Everyone invited gets the updated invitation. calendarId moves the event, with every date of a repeating one, to another calendar, and a move on its own tells nobody.

For a repeating event, scope says which dates change, as the app asks when you edit one date: occurrence changes only the date that starts at occurrenceStart, following that date and every one after it (they become a new series, and the old one ends the day before), and series all of them, with a new start or end moving every date by the same amount.

With attendees, an invitation goes to each of them from the address in from, which has to be one the key or app may send as, so the call also needs emails:send. sendInvites: false keeps the change to your own calendar.

Requires the calendar:write scope.

Path parameters

idstringRequired

The event id from GET /calendar/events.

Request body

summarystring

The title, 1 to 255 characters.

1 to 255 characters
descriptionstring

Notes about the event, up to 8,000 characters.

Up to 8000 characters
locationstring

Where it is: a room, an address or a link.

Up to 255 characters
urlstring

A link that belongs to the event.

Up to 2000 charactersFormaturi
meetingUrlstring

A link to the video call, such as a Zoom, Meet or Teams address. It goes into the invitation, so guests see a Join button in their calendar too. Send an empty string to take it off.

Up to 2000 characters
startstring

When it starts, a Date or ISO 8601 with a zone.

Formatdate-time
endstring

When it ends, after start and at most two years later.

Formatdate-time
allDayboolean

Whether it fills whole days. start and end then mark the days.

timezonestring

The IANA zone the event belongs to, UTC unless you say.

1 to 64 characters
recurrencestring

An RRULE such as FREQ=WEEKLY;BYDAY=MO when it repeats.

Up to 512 characters
attendeesobject[]

Up to 200 people to invite, each { email, name?, optional? }. It replaces the whole list.

Up to 200 items
emailstringRequired
Up to 320 charactersFormatemail
namestring
Up to 128 characters
optionalboolean
remindersobject[]

Up to five reminders, each { minutesBefore, action? }.

Up to 5 items
minutesBeforeintegerRequired
At least 0At most 40320
actionstring
One of"DISPLAY""EMAIL""AUDIO"
transparencystring

OPAQUE shows you busy and TRANSPARENT free.

One of"OPAQUE""TRANSPARENT"
visibilitystring

PUBLIC, PRIVATE or CONFIDENTIAL.

One of"PUBLIC""PRIVATE""CONFIDENTIAL"
sendInvitesboolean

False keeps the change to your own calendar, and sends nothing.

fromstring

The address the invitations come from. It has to be one the key may send as.

Up to 320 characters
calendarIdstring

Moves the event, with every date of a repeating one, to this calendar: one you keep, or one you are a member of with write access.

1 to 64 characters
scopestring

Which dates the change reaches when the event repeats: occurrence for the one date in occurrenceStart, following for that date and every one after it, or series for all of them. Left out, the change reaches the event or date the id names.

One of"occurrence""following""series"
occurrenceStartstring

The start of the date you mean, as it appears in the list of events. Needed with occurrence and following.

Formatdate-time

Returns

The event as it stands now.

Errors

403

not_organizer: the event was organised by somebody else, so you can only answer it. from_address_forbidden: the key or app may not send as from. calendar_read_only: you may not move the event out of its calendar, or into calendarId.

404

calendar_not_found: no calendar you keep or are a member of has that calendarId.

409

event_cancelled: the meeting was called off.

The errors every operation can return400401422429500Error catalog

Also available in

TypeScript
calendar.updateEvent()
Python
calendar.update_event()
Ruby
calendar.update_event
PHP
calendar->updateEvent
Go
Calendar.UpdateEvent
Java
calendar().updateEvent
C#
Calendar.UpdateEventAsync
MCP
updateCalendarEvent

DELETE/calendar/events/{id}

Remove an event

Scopescalendar:writeDeletes

Removes an event from the calendar for good, as Remove does in the app. Nobody else is told: to call off a meeting with others in it, use POST /calendar/events/{id}/cancel. For a repeating event, scope and occurrenceStart remove one date or that date and every one after it.

Requires the calendar:write scope.

Path parameters

idstringRequired

The event id from GET /calendar/events.

Query parameters

scopestring

Which dates the change reaches when the event repeats: occurrence for the one date in occurrenceStart, following for that date and every one after it, or series for all of them. Left out, the change reaches the event or date the id names.

One of"occurrence""following""series"
occurrenceStartstring

The start of the date you mean, as it appears in the list of events. Needed with occurrence and following.

Formatdate-time

Returns

The event is gone.

Errors

403

not_organizer: the event was organised by somebody else.

The errors every operation can return400401404422429500Error catalog

Also available in

TypeScript
calendar.deleteEvent()
Python
calendar.delete_event()
Ruby
calendar.delete_event
PHP
calendar->deleteEvent
Go
Calendar.DeleteEvent
Java
calendar().deleteEvent
C#
Calendar.DeleteEventAsync
MCP
deleteCalendarEvent

GET/calendar/events/{id}/ics

The event as an .ics document

Scopescalendar:readReads

Served as text/calendar with NO METHOD parameter. A METHOD makes a document actionable (a client seeing method=REQUEST draws accept/decline and can reply to the organiser), and this endpoint has no authority to invite anybody on the workspace behalf. It states what the event currently is.

Requires the calendar:read scope.

Path parameters

idstringRequired

Event id, the eventId of an occurrence.

Returns

200stringtext/calendar

An iCalendar document.

Errors

The errors every operation can return400401403404422429500Error catalog

Also available in

TypeScript
calendar.getEventIcs()
Python
calendar.get_event_ics()
Ruby
calendar.get_event_ics
PHP
calendar->getEventIcs
Go
Calendar.GetEventIcs
Java
calendar().getEventIcs
C#
Calendar.GetEventIcsAsync
MCP
getCalendarEventIcs

POST/calendar/events/{id}/cancel

Cancel a meeting

Scopescalendar:writeSends mail

Calls off a meeting you organise, as Cancel meeting does in the app. It stays on the calendar with status CANCELLED, and everyone invited is told it is off, from the address in from, so a meeting with attendees also needs emails:send. For a repeating meeting, scope and occurrenceStart call off one date, or that date and every one after it, and guests get the matching update. The body is optional.

Requires the calendar:write scope.

Path parameters

idstringRequired

The event id from GET /calendar/events.

Request body

fromstring

The address the cancellation comes from. It has to be one the key may send as.

Up to 320 characters
notifyGuestsboolean
scopestring

Which dates the change reaches when the event repeats: occurrence for the one date in occurrenceStart, following for that date and every one after it, or series for all of them. Left out, the change reaches the event or date the id names.

One of"occurrence""following""series"
occurrenceStartstring

The start of the date you mean, as it appears in the list of events. Needed with occurrence and following.

Formatdate-time

Returns

The event, cancelled.

Errors

403

not_organizer: the event was organised by somebody else. from_address_forbidden: the key or app may not send as from.

The errors every operation can return400401404422429500Error catalog

Also available in

TypeScript
calendar.cancelEvent()
Python
calendar.cancel_event()
Ruby
calendar.cancel_event
PHP
calendar->cancelEvent
Go
Calendar.CancelEvent
Java
calendar().cancelEvent
C#
Calendar.CancelEventAsync
MCP
cancelCalendarEvent

POST/calendar/events/{id}/respond

Answer an invitation

Scopescalendar:writeemails:sendSends mail

Accepts, declines or tentatively accepts an invitation, as the buttons of an invitation in the app do. The answer goes to the organiser by email from the invited address the key or app may send as, or from respondingAs when the invitation went to more than one of yours. Send proposedStart and proposedEnd together to propose a new time with your answer, as Propose a new time does in the app: the organiser gets a counter-proposal and decides.

Requires the calendar:write and emails:send scopes.

Path parameters

idstringRequired

The event id from GET /calendar/events.

Request body

responsestringRequired

ACCEPTED, DECLINED or TENTATIVE.

One of"ACCEPTED""DECLINED""TENTATIVE"
respondingAsstring

Which of your invited addresses answers, when there is more than one.

Up to 320 characters
proposedStartstring

A new start to propose with your answer, sent together with proposedEnd.

Formatdate-time
proposedEndstring

The end of the proposed time.

Formatdate-time
notifyGuestsboolean

Returns

The event, with your answer.

Errors

403

not_invited: the event did not invite respondingAs, or any address the key or app may send as.

409

event_cancelled: the meeting was called off. reply_not_sent: the answer could not be sent to the organiser, so nothing changed.

The errors every operation can return400401404422429500Error catalog

Also available in

TypeScript
calendar.respondToEvent()
Python
calendar.respond_to_event()
Ruby
calendar.respond_to_event
PHP
calendar->respondToEvent
Go
Calendar.RespondToEvent
Java
calendar().respondToEvent
C#
Calendar.RespondToEventAsync
MCP
respondToCalendarEvent

POST/calendar/events/{id}/decline-proposal

Decline a proposed time

Scopescalendar:writeemails:sendSends mail

Keeps the original time of a meeting you organise after a guest proposed another one, as Decline in the proposal on the event does in the app. The guest is told by email from from, or from the organising address. To take the proposed time instead, change the event with PATCH /calendar/events/{id}.

Requires the calendar:write and emails:send scopes.

Path parameters

idstringRequired

The event id from GET /calendar/events.

Request body

attendeestringRequired

The guest whose proposal you decline, by email address.

Up to 320 charactersFormatemail
fromstring

The address the answer is sent from, when it is not the organising address.

Up to 320 characters

Returns

The event, with the proposal cleared.

Errors

403

not_organizer: the event was organised by somebody else. event_read_only: the event comes from a calendar you subscribe to.

404

proposal_not_found: that guest has not proposed a new time. event_not_found: no such event.

The errors every operation can return400401422429500Error catalog

Also available in

TypeScript
calendar.declineProposal()
Python
calendar.decline_proposal()
Ruby
calendar.decline_proposal
PHP
calendar->declineProposal
Go
Calendar.DeclineProposal
Java
calendar().declineProposal
C#
Calendar.DeclineProposalAsync
MCP
declineCalendarProposal

POST/calendar/events/{id}/hide

Hide an event from your calendar

Scopescalendar:writeChanges data

Takes an event off your own calendar and leaves it where it is for everyone else, as Hide from my calendar does in the app. Use it for an invitation that reached you through a shared address, or one you may not remove. It stops its reminders for you too. POST /calendar/events/{id}/unhide brings it back.

Requires the calendar:write scope.

Path parameters

idstringRequired

The event id from GET /calendar/events.

Returns

The event, hidden for you.

Errors

The errors every operation can return400401403404422429500Error catalog

Also available in

TypeScript
calendar.hideEvent()
Python
calendar.hide_event()
Ruby
calendar.hide_event
PHP
calendar->hideEvent
Go
Calendar.HideEvent
Java
calendar().hideEvent
C#
Calendar.HideEventAsync
MCP
hideCalendarEvent

POST/calendar/events/{id}/unhide

Show a hidden event again

Scopescalendar:writeChanges data

Puts an event you hid back on your calendar, as Show on my calendar does on the invitation in the app.

Requires the calendar:write scope.

Path parameters

idstringRequired

The event id from GET /calendar/events.

Returns

The event, on your calendar again.

Errors

The errors every operation can return400401403404422429500Error catalog

Also available in

TypeScript
calendar.unhideEvent()
Python
calendar.unhide_event()
Ruby
calendar.unhide_event
PHP
calendar->unhideEvent
Go
Calendar.UnhideEvent
Java
calendar().unhideEvent
C#
Calendar.UnhideEventAsync
MCP
hideCalendarEvent

GET/calendar/free-busy

Free and busy times

Scopescalendar:readReads

When the people you name are busy, as Find a time in the event editor of the app shows it. Each address of the workspace shows the busy times of the person who holds it, from their events, the invitations they have not declined, their subscribed calendars and their bookings, without any detail. Add durationMinutes to get suggestions: the first times everyone known is free. A key or app limited to some addresses is refused, since the answer reads whole calendars.

Requires the calendar:read scope.

Query parameters

fromstringRequired

The start of the window.

Formatdate-time
tostringRequired

A free and busy window may span at most 31 days.

Formatdate-time
emailsstringRequired

The addresses to look up, at most 20. An address of the workspace shows when the person who holds it is busy; any other address comes back with known false. Separate them with commas.

timezonestring

IANA zone the suggested times keep to working hours in.

Default"UTC"
durationMinutesinteger

The length of the meeting in minutes. With it, suggestions lists the first times everyone known is free, on weekdays between 09:00 and 17:00 in timezone.

At least 5At most 480

Returns

When each person is busy, and the suggested times.

Errors

422

capability_unsupported: the key or app is limited to some addresses. invalid_parameter: the window, an address or the duration is not valid.

The errors every operation can return400401403404429500Error catalog

Also available in

TypeScript
calendar.freeBusy()
Python
calendar.free_busy()
Ruby
calendar.free_busy
PHP
calendar->freeBusy
Go
Calendar.FreeBusy
Java
calendar().freeBusy
C#
Calendar.FreeBusyAsync
MCP
findMeetingTime

GET/calendar/feeds

List calendar links

Scopescalendar:readReads

The secret links that publish your calendar to other calendar apps, as Share in the calendar settings of the app lists them. Anyone with a link can read what it shows, so treat url and webcalUrl like passwords.

Requires the calendar:read scope.

Returns

Your calendar links.

Errors

The errors every operation can return400401403404422429500Error catalog

Also available in

TypeScript
calendar.listFeeds()
Python
calendar.list_feeds()
Ruby
calendar.list_feeds
PHP
calendar->listFeeds
Go
Calendar.ListFeeds
Java
calendar().listFeeds
C#
Calendar.ListFeedsAsync
MCP
listCalendarFeeds

POST/calendar/feeds

Create a calendar link

Scopescalendar:writeChanges data

Makes a secret link that publishes your calendar as an iCalendar feed, for Google Calendar (From URL), Outlook (Subscribe from web) or Apple Calendar (New subscription). full shows every detail, busy only the times you are busy. calendarId publishes one calendar you keep instead of all of them. The calendar app checks the link again on its own schedule, usually every few hours.

Requires the calendar:write scope.

Request body

namestringRequired

The name calendar apps show for the calendar, up to 100 characters.

1 to 100 characters
modestringRequired

full for every detail, busy for busy times only.

One of"full""busy"
calendarIdstring

The calendar the link publishes: one you keep. Every calendar you keep or are a member of, and the events you are invited to, unless you say.

1 to 64 characters

Returns

The new link.

Errors

403

calendar_not_owned: you are a member of that calendar, and only its keeper may publish it.

404

calendar_not_found: no calendar you keep has that id.

409

calendar_feed_limit: you already keep the most links one person may.

The errors every operation can return400401422429500Error catalog

Also available in

TypeScript
calendar.createFeed()
Python
calendar.create_feed()
Ruby
calendar.create_feed
PHP
calendar->createFeed
Go
Calendar.CreateFeed
Java
calendar().createFeed
C#
Calendar.CreateFeedAsync
MCP
createCalendarFeed

DELETE/calendar/feeds/{id}

Delete a calendar link

Scopescalendar:writeDeletes

Turns a calendar link off for good. Calendar apps that subscribed to it stop getting updates.

Requires the calendar:write scope.

Path parameters

idstringRequired

The calendar link id.

Returns

The link is gone.

Errors

404

calendar_feed_not_found: no link of yours has that id.

The errors every operation can return400401403422429500Error catalog

Also available in

TypeScript
calendar.deleteFeed()
Python
calendar.delete_feed()
Ruby
calendar.delete_feed
PHP
calendar->deleteFeed
Go
Calendar.DeleteFeed
Java
calendar().deleteFeed
C#
Calendar.DeleteFeedAsync
MCP
deleteCalendarFeed

POST/calendar/feeds/{id}/reset

Reset a calendar link

Scopescalendar:writeChanges data

Replaces the secret in a calendar link, so the old address stops working everywhere it was shared. Paste the new address into the calendar apps you still want to update.

Requires the calendar:write scope.

Path parameters

idstringRequired

The calendar link id.

Returns

The link with its new address.

Errors

404

calendar_feed_not_found: no link of yours has that id.

The errors every operation can return400401403422429500Error catalog

Also available in

TypeScript
calendar.resetFeed()
Python
calendar.reset_feed()
Ruby
calendar.reset_feed
PHP
calendar->resetFeed
Go
Calendar.ResetFeed
Java
calendar().resetFeed
C#
Calendar.ResetFeedAsync
MCP
resetCalendarFeed

GET/calendar/subscriptions

List calendar subscriptions

Scopescalendar:readReads

The other calendars you subscribe to by link, such as a Google or Outlook calendar address, a team rota or public holidays, as Other calendars in the app lists them. Their events show on your calendar, read-only.

Requires the calendar:read scope.

Returns

Your subscriptions.

Errors

The errors every operation can return400401403404422429500Error catalog

Also available in

TypeScript
calendar.listSubscriptions()
Python
calendar.list_subscriptions()
Ruby
calendar.list_subscriptions
PHP
calendar->listSubscriptions
Go
Calendar.ListSubscriptions
Java
calendar().listSubscriptions
C#
Calendar.ListSubscriptionsAsync
MCP
listCalendarSubscriptions

POST/calendar/subscriptions

Subscribe to a calendar

Scopescalendar:writeChanges data

Adds a calendar by its iCalendar link: an https, http or webcal address, such as the secret address of a Google calendar or a published Outlook calendar. It is read at once, then again about every half hour. name defaults to the name the calendar gives itself.

Requires the calendar:write scope.

Request body

urlstringRequired

The calendar link, https, http or webcal.

1 to 2048 characters
namestring

The name to show, up to 100 characters.

1 to 100 characters
colorstring

The colour of its events, from CALENDAR_COLORS.

One of"blue""sky""teal""green""lime""yellow""orange""red""pink""purple""gray"

Returns

The subscription, with its first events read.

Errors

409

calendar_subscription_exists: you already subscribe to that address. calendar_subscription_limit: you already subscribe to the most calendars one person may.

422

calendar_subscription_url_invalid: not a public https, http or webcal link. calendar_subscription_unreadable: nothing at the address read as a calendar.

The errors every operation can return400401403404429500Error catalog

Also available in

TypeScript
calendar.createSubscription()
Python
calendar.create_subscription()
Ruby
calendar.create_subscription
PHP
calendar->createSubscription
Go
Calendar.CreateSubscription
Java
calendar().createSubscription
C#
Calendar.CreateSubscriptionAsync
MCP
subscribeToCalendar

PATCH/calendar/subscriptions/{id}

Change a calendar subscription

Scopescalendar:writeChanges data

Renames a subscription or gives it another colour.

Requires the calendar:write scope.

Path parameters

idstringRequired

The subscription id.

Request body

namestring

The new name, up to 100 characters.

1 to 100 characters
colorstring

The new colour, from CALENDAR_COLORS.

One of"blue""sky""teal""green""lime""yellow""orange""red""pink""purple""gray"

Returns

The subscription as it stands now.

Errors

404

calendar_subscription_not_found: no subscription of yours has that id.

The errors every operation can return400401403422429500Error catalog

Also available in

TypeScript
calendar.updateSubscription()
Python
calendar.update_subscription()
Ruby
calendar.update_subscription
PHP
calendar->updateSubscription
Go
Calendar.UpdateSubscription
Java
calendar().updateSubscription
C#
Calendar.UpdateSubscriptionAsync
MCP
updateCalendarSubscription

DELETE/calendar/subscriptions/{id}

Unsubscribe from a calendar

Scopescalendar:writeDeletes

Removes a subscription and every event it brought onto your calendar.

Requires the calendar:write scope.

Path parameters

idstringRequired

The subscription id.

Returns

The subscription is gone.

Errors

404

calendar_subscription_not_found: no subscription of yours has that id.

The errors every operation can return400401403422429500Error catalog

Also available in

TypeScript
calendar.deleteSubscription()
Python
calendar.delete_subscription()
Ruby
calendar.delete_subscription
PHP
calendar->deleteSubscription
Go
Calendar.DeleteSubscription
Java
calendar().deleteSubscription
C#
Calendar.DeleteSubscriptionAsync
MCP
unsubscribeFromCalendar

POST/calendar/subscriptions/{id}/refresh

Refresh a calendar subscription

Scopescalendar:writeChanges data

Reads a subscribed calendar again now instead of waiting for the next half-hourly read, and restarts one that stopped after repeated failures.

Requires the calendar:write scope.

Path parameters

idstringRequired

The subscription id.

Returns

The subscription after the read.

Errors

404

calendar_subscription_not_found: no subscription of yours has that id.

429

calendar_subscription_refresh_too_soon: it was read moments ago.

rate_limited: the workspace's keys and apps together made more requests in 60 seconds than its limit, 1,000 on Starter, 5,000 on Pro and 10,000 on Max, unless the workspace has a limit of its own. Wait for the seconds in Retry-After. A request refused this way is not billed. Answered requests are billed at the apiRequests rate of the plan while pay as you go is on. Per 1,000,000 requests that is $0.50 on Starter, $0.30 on Pro and $0.20 on Max.

The errors every operation can return400401403422500Error catalog

Also available in

TypeScript
calendar.refreshSubscription()
Python
calendar.refresh_subscription()
Ruby
calendar.refresh_subscription
PHP
calendar->refreshSubscription
Go
Calendar.RefreshSubscription
Java
calendar().refreshSubscription
C#
Calendar.RefreshSubscriptionAsync
MCP
refreshCalendarSubscription

GET/threads/{id}/event

The event a thread carries

Scopescalendar:readReads

The calendar event that came with an invitation in the thread, as the invitation card of the reading pane shows it. A thread with no event, or one the key or app does not reach, is a 404. Answer it with POST /calendar/events/{id}/respond.

Requires the calendar:read scope.

Path parameters

idstringRequired

The thread id.

Returns

The event.

Errors

The errors every operation can return400401403404422429500Error catalog

Also available in

TypeScript
threads.getEvent()
Python
threads.get_event()
Ruby
threads.get_event
PHP
threads->getEvent
Go
Threads.GetEvent
Java
threads().getEvent
C#
Threads.GetEventAsync
CLI
nextmail threads get-event
MCP
getCalendarEvent

GET/calendar/calendars

List calendars

Scopescalendar:readReads

Your calendars, as the calendar list beside the Calendar page shows them: the ones you keep first, your default calendar among them, then the ones other members of the workspace gave you access to, each with its own colour and position. A calendar you keep lists its members. Your to-do lists are calendars of kind todos, listed with kind=todos.

A calendar belongs to the person who keeps it. An API key acts for the workspace owner, and an app for the person who connected it. A key or app limited to some addresses cannot manage calendars.

Requires the calendar:read scope.

Query parameters

kindstring

events lists your calendars of events, and todos your to-do lists. Calendars of events unless you say.

One of"events""todos"Default"events"

Returns

Every calendar you keep or are a member of.

Errors

422

capability_unsupported: the key or app is limited to some addresses.

The errors every operation can return400401403404429500Error catalog

Also available in

TypeScript
calendar.listCalendars()
Python
calendar.list_calendars()
Ruby
calendar.list_calendars
PHP
calendar->listCalendars
Go
Calendar.ListCalendars
Java
calendar().listCalendars
C#
Calendar.ListCalendarsAsync
MCP
listCalendars

POST/calendar/calendars

Create a calendar

Scopescalendar:writeChanges data

Makes a new calendar of yours, as New calendar does in the app. Put events in it with calendarId on POST /calendar/events. With kind todos it is a to-do list instead, for POST /calendar/todos. Calendar apps that sync over CalDAV show it as a calendar or a to-do list of its own.

Requires the calendar:write scope.

Request body

namestringRequired

The name the apps show for the calendar, up to 100 characters.

1 to 100 characters
kindstring

events for a calendar of events, or todos for a to-do list. A calendar of events unless you say.

One of"events""todos"
colorstring

The colour its events are drawn in: blue, sky, teal, green, lime, yellow, orange, red, pink, purple or gray.

One of"blue""sky""teal""green""lime""yellow""orange""red""pink""purple""gray"
descriptionstring

What the calendar is for, up to 1,000 characters. null clears it.

Can be nullUp to 1000 characters

Returns

The new calendar.

Errors

409

calendar_limit: you keep as many calendars as one person may.

The errors every operation can return400401403404422429500Error catalog

Also available in

TypeScript
calendar.createCalendar()
Python
calendar.create_calendar()
Ruby
calendar.create_calendar
PHP
calendar->createCalendar
Go
Calendar.CreateCalendar
Java
calendar().createCalendar
C#
Calendar.CreateCalendarAsync
MCP
createCalendar

GET/calendar/calendars/{id}

Get a calendar

Scopescalendar:readReads

One calendar you keep or are a member of.

Requires the calendar:read scope.

Path parameters

idstringRequired

A calendar id, cln_ followed by 24 hex characters, as the list of calendars shows it.

Returns

The calendar.

Errors

404

calendar_not_found: no calendar you keep or are a member of has that id.

The errors every operation can return400401403422429500Error catalog

Also available in

TypeScript
calendar.getCalendar()
Python
calendar.get_calendar()
Ruby
calendar.get_calendar
PHP
calendar->getCalendar
Go
Calendar.GetCalendar
Java
calendar().getCalendar
C#
Calendar.GetCalendarAsync
MCP
listCalendars

PATCH/calendar/calendars/{id}

Change a calendar

Scopescalendar:writeChanges data

Renames a calendar you keep, describes it, gives it another colour, moves it in your list or makes it your default. For a calendar you are a member of, color and position are your own and change only for you, and the rest belongs to its keeper.

Requires the calendar:write scope.

Path parameters

idstringRequired

A calendar id, cln_ followed by 24 hex characters, as the list of calendars shows it.

Request body

namestring

The name the apps show for the calendar, up to 100 characters.

1 to 100 characters
colorstring

The colour its events are drawn in: blue, sky, teal, green, lime, yellow, orange, red, pink, purple or gray.

One of"blue""sky""teal""green""lime""yellow""orange""red""pink""purple""gray"
descriptionstring

What the calendar is for, up to 1,000 characters. null clears it.

Can be nullUp to 1000 characters
positioninteger

Where the calendar sits in your list, from 0 at the top. Your own calendars and the ones you are a member of are ordered apart.

At least 0At most 10000
isDefaultboolean

true makes it your default calendar, where new events and invitations go. A calendar stops being the default only when another one becomes it.

Returns

The calendar as it stands now.

Errors

403

calendar_not_owned: you are a member of it, and only its keeper may rename or describe it.

404

calendar_not_found: no calendar you keep or are a member of has that id.

409

calendar_is_default: a calendar stops being your default only when another one becomes it.

The errors every operation can return400401422429500Error catalog

Also available in

TypeScript
calendar.updateCalendar()
Python
calendar.update_calendar()
Ruby
calendar.update_calendar
PHP
calendar->updateCalendar
Go
Calendar.UpdateCalendar
Java
calendar().updateCalendar
C#
Calendar.UpdateCalendarAsync
MCP
updateCalendar

DELETE/calendar/calendars/{id}

Delete a calendar

Scopescalendar:writeDeletes

Deletes a calendar you keep, as Delete calendar does in the app. Deleting a calendar deletes the events in it. Unless notifyGuests is false, everyone invited to an upcoming meeting you organised in it is sent a cancellation from the address that invited them, as Cancel meeting does. A meeting that came in through a calendar import is cancelled quietly unless notifyGuests is true. Sending those cancellations needs emails:send as well, so a key without it passes notifyGuests=false. Its members lose it, and calendar links that publish it stop working. A to-do list goes with its to-dos and tells nobody. For a calendar you are a member of, you leave it, it stays with its keeper and nobody is told.

Requires the calendar:write scope.

Path parameters

idstringRequired

A calendar id, cln_ followed by 24 hex characters, as the list of calendars shows it.

Query parameters

notifyGuestsstring

false deletes the calendar without telling anyone. Left out or true, the guests of every upcoming meeting you organised in it are sent a cancellation, and true tells the guests of imported meetings too.

One of"true""false"

Returns

The calendar is gone from your list.

Errors

404

calendar_not_found: no calendar you keep or are a member of has that id.

409

calendar_is_default: your default calendar or to-do list cannot be deleted.

The errors every operation can return400401403422429500Error catalog

Also available in

TypeScript
calendar.deleteCalendar()
Python
calendar.delete_calendar()
Ruby
calendar.delete_calendar
PHP
calendar->deleteCalendar
Go
Calendar.DeleteCalendar
Java
calendar().deleteCalendar
C#
Calendar.DeleteCalendarAsync
MCP
deleteCalendar

PUT/calendar/calendars/{id}/members/{memberId}

Set a calendar member

Scopescalendar:writeChanges data

Gives a member of the workspace access to a calendar you keep, or changes what they may do, as Members does in the app. With read they see its events beside their own calendars; with write they also add, change, move and remove them. Events marked private stay out of their view.

Requires the calendar:write scope.

Path parameters

idstringRequired

A calendar id, cln_ followed by 24 hex characters, as the list of calendars shows it.

memberIdstringRequired

The id of a workspace member, as the list of members shows it. GET /members lists them.

Request body

accessstringRequired

read to see it, or write to add, change and delete what is in it too.

One of"read""write"

Returns

The member and their access.

Errors

403

calendar_not_owned: you are a member of that calendar, and only its keeper may change its members.

404

calendar_not_found: no calendar you keep or are a member of has that id.

409

calendar_member_limit: the calendar has as many members as it may.

422

member_not_found: that person is not in this workspace. member_is_keeper: that is you.

The errors every operation can return400401429500Error catalog

Also available in

TypeScript
calendar.setCalendarMember()
Python
calendar.set_calendar_member()
Ruby
calendar.set_calendar_member
PHP
calendar->setCalendarMember
Go
Calendar.SetCalendarMember
Java
calendar().setCalendarMember
C#
Calendar.SetCalendarMemberAsync
MCP
setCalendarMember

DELETE/calendar/calendars/{id}/members/{memberId}

Remove a calendar member

Scopescalendar:writeDeletes

Takes away a member’s access to a calendar you keep. Your own member id leaves a calendar you are a member of.

Requires the calendar:write scope.

Path parameters

idstringRequired

A calendar id, cln_ followed by 24 hex characters, as the list of calendars shows it.

memberIdstringRequired

The id of a workspace member, as the list of members shows it. GET /members lists them.

Returns

The member no longer reaches the calendar.

Errors

403

calendar_not_owned: only its keeper may remove other members.

404

calendar_not_found: no calendar you keep or are a member of has that id.

422

member_not_found: that person is not a member of the calendar.

The errors every operation can return400401429500Error catalog

Also available in

TypeScript
calendar.removeCalendarMember()
Python
calendar.remove_calendar_member()
Ruby
calendar.remove_calendar_member
PHP
calendar->removeCalendarMember
Go
Calendar.RemoveCalendarMember
Java
calendar().removeCalendarMember
C#
Calendar.RemoveCalendarMemberAsync
MCP
removeCalendarMember

GET/calendar/logins

List calendar sign-ins

Scopesaccount:readReads

The calendar sign-ins of one person, newest first, as Calendar and contacts apps in the app lists them. The passwords are never shown again. Leave member out for your own. The workspace owner and anyone whose role manages members may pass a member's user id, which takes members:write instead of the account scope.

A calendar sign-in belongs to a person, not to an address: its username starts with cal- and holds no @, so it is never an address and never takes one, and it signs calendar and contacts apps in over CalDAV and CardDAV to that person's calendars, the calendars and address books other members gave them access to, and their contacts. IMAP, POP3 and SMTP refuse it, and nothing it does sends mail: an event with guests saved through it sends no invitation, and an invitation is answered and a meeting with guests cancelled in the app instead.

Requires the account:read scope, or members:write in its place.

Query parameters

memberstring

The user id of a member, to list theirs.

Returns

Every calendar sign-in the person holds that is not revoked.

Errors

403

insufficient_authority: only the owner or someone who manages members may list another member's.

422

member_not_found: that person is not in this workspace. capability_unsupported: the key or app is limited to some addresses.

The errors every operation can return400401404429500Error catalog

Also available in

TypeScript
calendar.listCalendarLogins()
Python
calendar.list_calendar_logins()
Ruby
calendar.list_calendar_logins
PHP
calendar->listCalendarLogins
Go
Calendar.ListCalendarLogins
Java
calendar().listCalendarLogins
C#
Calendar.ListCalendarLoginsAsync
MCP
listCalendarLogins

POST/calendar/logins

Create a calendar sign-in

Scopesaccount:writeChanges data
Asks for a verification code

Makes a calendar sign-in and shows its password this once, with the server settings and an Apple configuration profile. The key or app must itself hold every one of calendar:read, calendar:write, contacts:read and contacts:write that the person's role holds, since the sign-in carries them. A person holds at most 20. Leave member out for your own. The workspace owner and anyone whose role manages members may pass a member's user id, which takes members:write instead of the account scope. The owner's own sign-ins are made only by the owner. An access token needs a verification code first. It writes an entry in the workspace security log.

A calendar sign-in belongs to a person, not to an address: its username starts with cal- and holds no @, so it is never an address and never takes one, and it signs calendar and contacts apps in over CalDAV and CardDAV to that person's calendars, the calendars and address books other members gave them access to, and their contacts. IMAP, POP3 and SMTP refuse it, and nothing it does sends mail: an event with guests saved through it sends no invitation, and an invitation is answered and a meeting with guests cancelled in the app instead.

Requires the account:write scope, or members:write in its place.

Request body

namestringRequired

What to call it, such as the device it is for, 1 to 64 characters. It is trimmed.

1 to 64 characters
memberstring

The user id of the member it is for. Leave it out for your own.

1 to 128 characters

Returns

The new sign-in, with its password shown this once.

Errors

403

calendar_login_no_reach: the person's role reaches neither the calendar nor contacts. insufficient_authority: the sign-in would carry a permission the caller lacks, or belongs to the owner. step_up_required: an access token needs a verification code first.

step_up_required: the call was made with an OAuth access token that has not been verified in the last 60 minutes. Ask for a code with POST /security/step-up, send it to POST /security/step-up/verify, then repeat the call. The person can also choose Allow changes for 60 minutes on the app in Account settings, Connected apps, on the Nextmail website. An API key is never asked for a code.

422

calendar_login_limit_reached: the person holds as many as one person may. member_not_found: that person is not in this workspace. capability_unsupported: the key or app is limited to some addresses.

The errors every operation can return400401404429500Error catalog

Also available in

TypeScript
calendar.createCalendarLogin()
Python
calendar.create_calendar_login()
Ruby
calendar.create_calendar_login
PHP
calendar->createCalendarLogin
Go
Calendar.CreateCalendarLogin
Java
calendar().createCalendarLogin
C#
Calendar.CreateCalendarLoginAsync
MCP
createCalendarLogin

DELETE/calendar/logins/{id}

Revoke a calendar sign-in

Scopesaccount:writeDeletes

Revokes one calendar sign-in, so the calendar and contacts apps using it are signed out within minutes. The calendars and contacts stay. Yours takes account:write, and another member's takes members:write, held by the owner or someone who manages members. It writes an entry in the workspace security log.

Requires the account:write scope, or members:write in its place.

Path parameters

idstringRequired

The sign-in id.

Returns

The sign-in no longer works.

Errors

404

calendar_login_not_found: no sign-in you may manage has that id.

422

capability_unsupported: the key or app is limited to some addresses.

The errors every operation can return400401403429500Error catalog

Also available in

TypeScript
calendar.revokeCalendarLogin()
Python
calendar.revoke_calendar_login()
Ruby
calendar.revoke_calendar_login
PHP
calendar->revokeCalendarLogin
Go
Calendar.RevokeCalendarLogin
Java
calendar().revokeCalendarLogin
C#
Calendar.RevokeCalendarLoginAsync
MCP
revokeCalendarLogin

POST/calendar/logins/profile-link

Make a calendar sign-in link for an Apple device

Scopesaccount:writeChanges data
Asks for a verification code

Makes a one-time link that sets calendars and contacts up on an iPhone, iPad or Mac. Opened on the device, it downloads an Apple configuration profile with a new calendar sign-in inside, and only CalDAV and CardDAV in it, never mail. The link works once and expires within minutes, so treat it as a secret until it is used. It takes what creating a sign-in takes. Leave member out for your own. The workspace owner and anyone whose role manages members may pass a member's user id, which takes members:write instead of the account scope.

Requires the account:write scope, or members:write in its place.

Request body

namestringRequired

What to call the sign-in it makes, such as the device it is for, 1 to 64 characters.

1 to 64 characters
displayNamestringRequired

The name the device shows for the profile, 1 to 160 characters.

1 to 160 characters
descriptionstringRequired

The line the device shows under that name, 1 to 160 characters.

1 to 160 characters
memberstring

The user id of the member it is for. Leave it out for your own.

1 to 128 characters

Returns

The link, which works once.

Errors

403

calendar_login_no_reach: the person's role reaches neither the calendar nor contacts. insufficient_authority: the sign-in would carry a permission the caller lacks, or belongs to the owner. step_up_required: an access token needs a verification code first.

step_up_required: the call was made with an OAuth access token that has not been verified in the last 60 minutes. Ask for a code with POST /security/step-up, send it to POST /security/step-up/verify, then repeat the call. The person can also choose Allow changes for 60 minutes on the app in Account settings, Connected apps, on the Nextmail website. An API key is never asked for a code.

422

calendar_login_limit_reached: the person holds as many as one person may. member_not_found: that person is not in this workspace. capability_unsupported: the key or app is limited to some addresses.

429

profile_link_rate_limited: you made as many of these links in the last hour as you may.

rate_limited: the workspace's keys and apps together made more requests in 60 seconds than its limit, 1,000 on Starter, 5,000 on Pro and 10,000 on Max, unless the workspace has a limit of its own. Wait for the seconds in Retry-After. A request refused this way is not billed. Answered requests are billed at the apiRequests rate of the plan while pay as you go is on. Per 1,000,000 requests that is $0.50 on Starter, $0.30 on Pro and $0.20 on Max.

The errors every operation can return400401404500Error catalog

Also available in

TypeScript
calendar.createCalendarLoginProfileLink()
Python
calendar.create_calendar_login_profile_link()
Ruby
calendar.create_calendar_login_profile_link
PHP
calendar->createCalendarLoginProfileLink
Go
Calendar.CreateCalendarLoginProfileLink
Java
calendar().createCalendarLoginProfileLink
C#
Calendar.CreateCalendarLoginProfileLinkAsync
MCP
createCalendarLoginProfileLink

GET/calendar/todos

List to-dos

Scopescalendar:readReads

The to-dos in your to-do lists and the ones other members of the workspace gave you access to, as the To-dos view of the Calendar page shows them. A to-do list is a calendar of kind todos: GET /calendar/calendars?kind=todos lists them. Open to-dos come soonest due first, with the ones without a due date last. Done ones come most recently done first, and all lists the newest first. Paging is keyset: pass nextCursor back as cursor while hasMore is true.

A to-do list belongs to the person who keeps it. An API key acts for the workspace owner, and an app for the person who connected it. A key or app limited to some addresses cannot reach to-dos.

Requires the calendar:read scope.

Query parameters

calendarIdsstring

Only the to-dos in these to-do lists, as ids separated by commas. Every to-do list you keep or are a member of unless you say.

statestring

open for to-dos still to do, done for completed and cancelled ones, or all. Open ones unless you say.

One of"open""done""all"Default"open"
dueBeforestring

Only to-dos due before this moment, as an ISO 8601 date-time with an offset.

Formatdate-time
dueAfterstring

Only to-dos due at or after this moment, as an ISO 8601 date-time with an offset.

Formatdate-time
limitinteger

To-dos per page, 1 to 500.

At least 1At most 500Default100
cursorstring

The nextCursor from the previous page. One that names no to-do in these lists is a 400 invalid_cursor.

Returns

One page of to-dos.

Errors

404

calendar_not_found: one of calendarIds is no to-do list you keep or are a member of.

422

calendar_wrong_kind: one of calendarIds is a calendar of events. capability_unsupported: the key or app is limited to some addresses.

The errors every operation can return400401403429500Error catalog

Also available in

TypeScript
calendar.listTodos()calendar.listAllTodos()calendar.iterateTodos()
Python
calendar.list_todos()calendar.list_all_todos()calendar.iterate_todos()
Ruby
calendar.list_todoscalendar.list_all_todoscalendar.iterate_todos
PHP
calendar->listTodoscalendar->listAllTodoscalendar->iterateTodos
Go
Calendar.ListTodosCalendar.ListAllTodosCalendar.IterateTodos
Java
calendar().listTodoscalendar().listAllTodoscalendar().iterateTodos
C#
Calendar.ListTodosAsyncCalendar.ListAllTodosAsyncCalendar.IterateTodosAsync
MCP
listTodos

POST/calendar/todos

Create a to-do

Scopescalendar:writeChanges data

Adds a to-do to a to-do list, as the quick add box of the To-dos view does in the app. Calendar apps that sync the list over CalDAV, such as Reminders, Thunderbird and tasks.org, show it on their next sync.

Requires the calendar:write scope.

Request body

titlestringRequired

What has to be done, 1 to 500 characters.

1 to 500 characters
calendarIdstring

The to-do list to put it in: one you keep, or one you are a member of with write access. Your default to-do list unless you say.

1 to 64 characters
notesstring

Notes on the to-do, up to 8,000 characters. null clears them.

Can be nullUp to 8000 characters
statusstring

NEEDS-ACTION while it is open, IN-PROCESS once it is started, COMPLETED when it is done and CANCELLED when it will not be done. Completing a repeating to-do moves it to its next date and keeps it open.

One of"NEEDS-ACTION""IN-PROCESS""COMPLETED""CANCELLED"
startstring

When work on it can start, in the same form as due: both are days, or both are moments. null clears it.

Can be null
duestring

When it is due: a day as YYYY-MM-DD, or a moment as an ISO 8601 date-time with an offset. null clears it.

Can be null
timezonestring

The IANA time zone a due or start moment is written in for calendar apps, such as Europe/Berlin. UTC unless you say. null clears it.

Can be null1 to 64 characters
priorityinteger

From 1, the most urgent, to 9, the least. 0 means none. Apps show 1 to 4 as high, 5 as medium and 6 to 9 as low.

At least 0At most 9
percentCompleteinteger

How far along it is, from 0 to 100. null clears it.

Can be nullAt least 0At most 100
categoriesstring[]

Labels for the to-do, up to 20 of up to 64 characters each, as calendar apps show its categories.

Up to 20 items
parentIdstring

Makes it a step of another to-do in the same list, by that to-do id. null makes it stand on its own again.

Can be null1 to 64 characters
recurrencestring

An RRULE, such as FREQ=WEEKLY;BYDAY=MO, that makes it repeat from its start or due date. null stops it repeating.

Can be nullUp to 512 characters

Returns

201Todo

The new to-do.

Errors

400

invalid_time: start and due are not both days or both moments, or it is due before it starts.

403

calendar_read_only: you are a member of that list with read access.

404

calendar_not_found: no to-do list you keep or are a member of has that id.

409

todo_limit: the list holds as many to-dos as it may.

422

calendar_wrong_kind: that calendar holds events. todo_parent_invalid: parentId names no to-do in the same list.

The errors every operation can return401429500Error catalog

Also available in

TypeScript
calendar.createTodo()
Python
calendar.create_todo()
Ruby
calendar.create_todo
PHP
calendar->createTodo
Go
Calendar.CreateTodo
Java
calendar().createTodo
C#
Calendar.CreateTodoAsync
MCP
createTodo

GET/calendar/todos/{id}

Get a to-do

Scopescalendar:readReads

One to-do in a to-do list you keep or are a member of.

Requires the calendar:read scope.

Path parameters

idstringRequired

A to-do id, tdo_ followed by 24 hex characters.

Returns

200Todo

The to-do.

Errors

404

todo_not_found: no to-do in a list you keep or are a member of has that id.

The errors every operation can return400401403422429500Error catalog

Also available in

TypeScript
calendar.getTodo()
Python
calendar.get_todo()
Ruby
calendar.get_todo
PHP
calendar->getTodo
Go
Calendar.GetTodo
Java
calendar().getTodo
C#
Calendar.GetTodoAsync
MCP
listTodos

PATCH/calendar/todos/{id}

Change a to-do

Scopescalendar:writeChanges data

Changes a to-do, checks it off or opens it again, as the To-dos view does in the app. Setting status to COMPLETED stamps completedAt, and on a repeating to-do it moves the to-do to its next date and keeps it open instead. calendarId moves it, with its steps, to another to-do list. Send only the fields that change.

Requires the calendar:write scope.

Path parameters

idstringRequired

A to-do id, tdo_ followed by 24 hex characters.

Request body

titlestring

What has to be done, 1 to 500 characters.

1 to 500 characters
calendarIdstring

Moves the to-do, with its steps, to this to-do list: one you keep, or one you are a member of with write access.

1 to 64 characters
notesstring

Notes on the to-do, up to 8,000 characters. null clears them.

Can be nullUp to 8000 characters
statusstring

NEEDS-ACTION while it is open, IN-PROCESS once it is started, COMPLETED when it is done and CANCELLED when it will not be done. Completing a repeating to-do moves it to its next date and keeps it open.

One of"NEEDS-ACTION""IN-PROCESS""COMPLETED""CANCELLED"
startstring

When work on it can start, in the same form as due: both are days, or both are moments. null clears it.

Can be null
duestring

When it is due: a day as YYYY-MM-DD, or a moment as an ISO 8601 date-time with an offset. null clears it.

Can be null
timezonestring

The IANA time zone a due or start moment is written in for calendar apps, such as Europe/Berlin. UTC unless you say. null clears it.

Can be null1 to 64 characters
priorityinteger

From 1, the most urgent, to 9, the least. 0 means none. Apps show 1 to 4 as high, 5 as medium and 6 to 9 as low.

At least 0At most 9
percentCompleteinteger

How far along it is, from 0 to 100. null clears it.

Can be nullAt least 0At most 100
categoriesstring[]

Labels for the to-do, up to 20 of up to 64 characters each, as calendar apps show its categories.

Up to 20 items
parentIdstring

Makes it a step of another to-do in the same list, by that to-do id. null makes it stand on its own again.

Can be null1 to 64 characters
recurrencestring

An RRULE, such as FREQ=WEEKLY;BYDAY=MO, that makes it repeat from its start or due date. null stops it repeating.

Can be nullUp to 512 characters

Returns

200Todo

The to-do as it stands now.

Errors

400

invalid_time: start and due are not both days or both moments, or it is due before it starts.

403

calendar_read_only: you are a member of its list, or of the list it moves to, with read access.

404

todo_not_found: no to-do in a list you keep or are a member of has that id.

409

todo_limit: the list it moves to holds as many to-dos as it may.

422

calendar_wrong_kind: calendarId is a calendar of events. todo_parent_invalid: parentId names no to-do in the same list, or one of its own steps.

The errors every operation can return401429500Error catalog

Also available in

TypeScript
calendar.updateTodo()
Python
calendar.update_todo()
Ruby
calendar.update_todo
PHP
calendar->updateTodo
Go
Calendar.UpdateTodo
Java
calendar().updateTodo
C#
Calendar.UpdateTodoAsync
MCP
updateTodo

DELETE/calendar/todos/{id}

Delete a to-do

Scopescalendar:writeDeletes

Deletes a to-do. Deleting a to-do deletes its steps too, and calendar apps that sync the list drop them on their next sync.

Requires the calendar:write scope.

Path parameters

idstringRequired

A to-do id, tdo_ followed by 24 hex characters.

Returns

The to-do and its steps are gone.

Errors

403

calendar_read_only: you are a member of its list with read access.

404

todo_not_found: no to-do in a list you keep or are a member of has that id.

The errors every operation can return400401422429500Error catalog

Also available in

TypeScript
calendar.deleteTodo()
Python
calendar.delete_todo()
Ruby
calendar.delete_todo
PHP
calendar->deleteTodo
Go
Calendar.DeleteTodo
Java
calendar().deleteTodo
C#
Calendar.DeleteTodoAsync
MCP
deleteTodo

GET/calendar/imports

List calendar imports

Scopescalendar:readReads

The calendar files and calendars brought in, newest first, each with what it added and what it left out. Paging is keyset: pass nextCursor back as cursor while hasMore is true.

Requires the calendar:read scope.

Query parameters

limitinteger

Rows per page, 1 to 100.

At least 1At most 100Default25
cursorstring

The previous page's nextCursor, passed back as it came. It is opaque: it holds where the last row sat in this list's order, so a row deleted or edited between pages never breaks the walk, and the next page starts at the first row that sorts after it. A value this list did not hand out is a 400 invalid_cursor.

Returns

One page of calendar imports.

Errors

The errors every operation can return400401403404422429500Error catalog

Also available in

TypeScript
calendar.listImports()calendar.listAllImports()calendar.iterateImports()
Python
calendar.list_imports()calendar.list_all_imports()calendar.iterate_imports()
Ruby
calendar.list_importscalendar.list_all_importscalendar.iterate_imports
PHP
calendar->listImportscalendar->listAllImportscalendar->iterateImports
Go
Calendar.ListImportsCalendar.ListAllImportsCalendar.IterateImports
Java
calendar().listImportscalendar().listAllImportscalendar().iterateImports
C#
Calendar.ListImportsAsyncCalendar.ListAllImportsAsyncCalendar.IterateImportsAsync
MCP
listCalendarImports

POST/calendar/imports

Import a calendar file

Scopescalendar:writeChanges data

Takes an iCalendar (.ics) file as the request body and queues it. Its events become events of your own that you can edit, and nobody on them is sent anything, now or when you change them later, unless you ask for that on the change. Poll GET /calendar/imports/{id} until status is completed.

The file may be 10 MB and hold 25,000 events. Several calendars in one file are merged, and the report keeps their names. An event whose UID is already in the workspace is skipped and counted, never overwritten, so sending the same file twice adds nothing.

Requires the calendar:write scope.

Query parameters

filenamestring

The name to show for the file in the list of imports.

Up to 255 characters
calendarIdstring

The calendar the imported events go into: one you keep, or one you are a member of with write access. Your default calendar unless you say.

Request body

Content typetext/calendar, application/octet-stream

binary

Returns

The import, with status queued.

Errors

400

not_a_calendar_file: the body is not an iCalendar file. item_import_empty: the body is empty. too_many_events: the file holds more than 25,000 events.

403

calendar_read_only: you are a member of calendarId with read access.

404

calendar_not_found: no calendar you keep or are a member of has that calendarId.

413

item_import_too_large: the file is over 10 MB.

The errors every operation can return401422429500Error catalog

Also available in

TypeScript
calendar.importIcs()
Python
calendar.import_ics()
Ruby
calendar.import_ics
PHP
calendar->importIcs
Go
Calendar.ImportIcs
Java
calendar().importIcs
C#
Calendar.ImportIcsAsync
MCP
createCalendarImportcreateContactImport

GET/calendar/imports/{id}

Get a calendar import

Scopescalendar:readReads

One calendar import with its counts and its report: the calendars it read, how many events it left out and why, and up to 20 of the events it left out.

Requires the calendar:read scope.

Path parameters

idstringRequired

Calendar import id, iimp_ followed by 24 hex characters.

Returns

The import.

Errors

404

item_import_not_found: no such import.

The errors every operation can return400401403422429500Error catalog

Also available in

TypeScript
calendar.getImport()
Python
calendar.get_import()
Ruby
calendar.get_import
PHP
calendar->getImport
Go
Calendar.GetImport
Java
calendar().getImport
C#
Calendar.GetImportAsync
MCP
getCalendarImport

POST/calendar/imports/{id}/undo

Remove what a calendar import added

Scopescalendar:writeDeletes

Deletes every event the import added, changed since or not, and marks the import undone. Nobody is told. Events that were skipped because they were already here are not touched.

Requires the calendar:write scope.

Path parameters

idstringRequired

Calendar import id, iimp_ followed by 24 hex characters.

Returns

The import, with status undone.

Errors

404

item_import_not_found: no such import.

409

item_import_not_undoable: it is still running or was already removed.

The errors every operation can return400401403422429500Error catalog

Also available in

TypeScript
calendar.undoImport()
Python
calendar.undo_import()
Ruby
calendar.undo_import
PHP
calendar->undoImport
Go
Calendar.UndoImport
Java
calendar().undoImport
C#
Calendar.UndoImportAsync
MCP
undoCalendarImport

Objects

Calendarobject

objectstringRequired
One of"calendar"
idstringRequired

The calendar id, cln_ followed by 24 hex characters.

kindstringRequired

What the calendar holds: events, or todos for a to-do list.

One of"events""todos"
namestringRequired
colorstringRequired

The colour its events are drawn in, your own for a calendar you are a member of.

One of"blue""sky""teal""green""lime""yellow""orange""red""pink""purple""gray"
descriptionstringRequired
Can be null
isDefaultbooleanRequired

Whether it is your default calendar, where new events and invitations go.

positionintegerRequired

Its place in your list, from 0. Calendars you keep and the ones you are a member of are ordered apart.

At least 0
accessstringRequired

What you may do with the calendar: owner when you keep it, otherwise read or write as its keeper gave you.

One of"owner""write""read"
ownerobjectRequired

The person who keeps it.

idstringRequired

The member id.

namestringRequired
Can be null
emailstringRequired
membersCalendarMember[]Required

Who else may reach it, on a calendar you keep. null on one you are a member of.

Can be null
createdAtstringRequired
Formatdate-time
updatedAtstringRequired
Formatdate-time

CalendarEventobject

objectstringRequired
One of"calendar_event"
idstringRequired
uidstringRequired

The iCalendar UID every copy of the event shares.

sequenceinteger
At least 0
summarystring
Can be null
descriptionstring
Can be null
locationstring
Can be null
urlstring
Can be null
meetingUrlstring

The link to the video call, which the apps show as a Join button.

Can be null
startstringRequired
Formatdate-time
endstringRequired
Formatdate-time
allDayboolean
timezonestring
Can be null
recurrencestring

The RRULE, when it repeats.

Can be null
exdatesstring[]

Occurrences left out: an instant, or a date for an all-day event.

rdatesstring[]

Extra occurrences outside the rule: an instant, or a date for an all-day event.

recurrenceIdstring

For one changed occurrence of a repeating event, the start it replaces.

Can be nullFormatdate-time
subscriptionIdstring

The calendar subscription it comes from, or null for your own calendar.

Can be null
calendarIdstring

The calendar it is in, as GET /calendar/calendars lists them. null for an event from a subscription.

Can be null
statusstringRequired

CONFIRMED, TENTATIVE or CANCELLED.

transparencystring
visibilitystring
organizerobject
Can be null
emailstring
namestring
Can be null
isOrganizerboolean

Whether you organise it, and so may change it.

hiddenboolean

Whether you hid it from your own calendar with POST /calendar/events/{id}/hide. Only GET /calendar/events/{id} says.

sourcestring
messageIdstring
Can be null
threadIdstring
Can be null
alarmsobject[]
minutesBeforeinteger
actionstring
attendeesobject[]Required
objectstring
One of"calendar_attendee"
emailstring
namestring
Can be null
partstatstring

NEEDS-ACTION, ACCEPTED, DECLINED or TENTATIVE.

rolestring
rsvpboolean
cutypestring
Can be null
respondedAtstring
Can be nullFormatdate-time
proposedStartstring

The start this guest proposed instead, until the organiser answers.

Can be nullFormatdate-time
proposedEndstring
Can be nullFormatdate-time
createdAtstring
Formatdate-time
updatedAtstring
Formatdate-time

CalendarEventHiddenobject

objectstringRequired
One of"calendar_event"
idstringRequired
uidstringRequired

The iCalendar UID. Hiding reaches every date of it.

hiddenbooleanRequired

CalendarFeedobject

objectstringRequired
One of"calendar_feed"
idstringRequired
namestringRequired

The name calendar apps show for the calendar.

modestringRequired

full shows every detail, busy only when you are busy.

One of"full""busy"
calendarIdstringRequired

The one calendar it publishes, or null when it publishes every calendar you keep or are a member of, with the events you are invited to.

Can be null
urlstringRequired

The https address to paste into a calendar app.

webcalUrlstringRequired

The same address as a webcal link, which opens a calendar app.

readCountintegerRequired

Roughly how often calendar apps have read it.

At least 0
lastReadAtstringRequired
Can be nullFormatdate-time
createdAtstringRequired
Formatdate-time

CalendarFreeBusyobject

objectstringRequired
One of"calendar_free_busy"
fromstringRequired
Formatdate-time
tostringRequired
Formatdate-time
timezonestringRequired
peopleobject[]Required
emailstringRequired
knownbooleanRequired

Whether the address belongs to the workspace, so its times are known.

busyobject[]Required
startstringRequired
Formatdate-time
endstringRequired
Formatdate-time
suggestionsobject[]Required

Times everyone known is free, when durationMinutes was sent.

startstringRequired
Formatdate-time
endstringRequired
Formatdate-time

CalendarImportobject

objectstringRequired
One of"calendar_import"
idstringRequired

iimp_ followed by 24 hex characters.

kindstringRequired
One of"calendar"
sourcestringRequired

file is an upload. The others came with a mailbox import: takeout from a Google Takeout archive, caldav and carddav from the old provider, microsoft from an Outlook sign-in.

One of"file""takeout""caldav""carddav""microsoft"
statusstringRequired

undone means what it brought in was removed again.

One of"uploading""queued""running""completed""failed""cancelled""undone"
fileNamestringRequired
Can be null
fileBytesintegerRequired
At least 0
parentImportIdstringRequired

The mailbox import it came with, when there was one.

Can be null
countsobjectRequired
totalintegerRequired

Items found so far.

At least 0
importedintegerRequired

Items added.

At least 0
mergedintegerRequired

Contacts left as they were because the address book already holds them. Always 0 on a calendar import, where an event that is already here is counted under skipped.

At least 0
skippedintegerRequired

Items left out for a reason given in report.

At least 0
failedintegerRequired
At least 0
reportobjectRequired
collectionsobject[]Required

The calendars or address books the items came from, by their original name.

namestringRequired
itemsintegerRequired
At least 0
skippedRecord<string, integer>Required

How many items were left out, by reason.

samplesobject[]Required

Up to 20 of the items left out.

namestringRequired
reasonstringRequired
One of"uid-taken""no-start""duplicate""limit""invalid""empty"
lastErrorstringRequired
Can be null
undoablebooleanRequired

Whether the undo call would remove anything.

createdAtstringRequired
Formatdate-time
startedAtstringRequired
Can be nullFormatdate-time
finishedAtstringRequired
Can be nullFormatdate-time
undoneAtstringRequired
Can be nullFormatdate-time
calendarIdstringRequired

The calendar the events go into, or null for your default calendar.

Can be null

CalendarImportListobject

objectstring
One of"list"
hasMoreboolean

True when another page follows. Pass nextCursor back as cursor to read it.

nextCursorstring

An opaque cursor for the next page, or null on the last page. Pass it back unchanged.

Can be null

CalendarListobject

objectstring
One of"list"

CalendarLoginobject

objectstringRequired
One of"calendar_login"
idstringRequired

The sign-in id, which is also its CalDAV and CardDAV principal.

namestringRequired

What it is called, such as the device it is for.

usernamestringRequired

The username a calendar or contacts app signs in with: cal- and ten letters and digits, never an address.

last4stringRequired

The last four letters of the password.

memberobjectRequired

The person it signs in as.

idstringRequired

The user id.

namestringRequired
emailstringRequired
createdByobjectRequired

Who made it, when that is known.

Can be null
idstringRequired

The user id.

namestringRequired
emailstringRequired
createdAtstringRequired
Formatdate-time
lastUsedAtstringRequired
Can be nullFormatdate-time
lastUsedProtocolstringRequired

What it last signed in to.

Can be nullOne of"caldav""carddav"
lastUsedClientstringRequired

The app, when it named itself.

Can be null

CalendarLoginServersobject

usernamestringRequired

The username to enter in the app.

caldavobjectRequired

A CalDAV or CardDAV server, for Apple Calendar and Contacts, Thunderbird, DAVx5 on Android and other calendar and contacts apps. They sign in with the same username and an app password. CardDAV is left out of the servers that come with a password made by a setup link, because such a password cannot reach contacts.

Can be null
urlstring

The server address to enter in the app.

principalUrlstring

The account address on the server, for apps that ask for a principal URL instead of finding it.

hoststring
portinteger
securitystring

Always ssl-tls: the server answers only over HTTPS.

One of"ssl-tls"
carddavobjectRequired

A CalDAV or CardDAV server, for Apple Calendar and Contacts, Thunderbird, DAVx5 on Android and other calendar and contacts apps. They sign in with the same username and an app password. CardDAV is left out of the servers that come with a password made by a setup link, because such a password cannot reach contacts.

Can be null
urlstring

The server address to enter in the app.

principalUrlstring

The account address on the server, for apps that ask for a principal URL instead of finding it.

hoststring
portinteger
securitystring

Always ssl-tls: the server answers only over HTTPS.

One of"ssl-tls"

CalendarMemberobject

objectstringRequired
One of"calendar_member"
calendarIdstringRequired
memberIdstringRequired

The member id of the person with access.

namestringRequired
Can be null
emailstringRequired
accessstringRequired

read sees it, write also adds, changes and deletes what is in it.

One of"read""write"
createdAtstringRequired
Formatdate-time
updatedAtstringRequired
Formatdate-time

CalendarOccurrenceobject

objectstringRequired
One of"calendar_occurrence"
eventIdstringRequired
uidstringRequired

The iCalendar UID every copy of the event shares.

startstringRequired
Formatdate-time
endstringRequired
Formatdate-time
allDaybooleanRequired
summarystringRequired
Can be null
locationstringRequired
Can be null
meetingUrlstring

The link to the video call, when it has one.

Can be null
statusstringRequired

CONFIRMED, TENTATIVE or CANCELLED.

transparencystringRequired
isOrganizerbooleanRequired

Whether you organise it, and so may change it.

organizerEmailstringRequired
Can be null
recurringbooleanRequired

Whether this is one occurrence of a repeating event.

myPartstatstringRequired

Your answer to the invitation, when you were invited.

Can be null
attendeeCountintegerRequired
At least 0
subscriptionIdstring

The calendar subscription it comes from, or null for your own calendar.

Can be null
calendarIdstring

The calendar it is in, as GET /calendar/calendars lists them. null for a subscription.

Can be null

CalendarOccurrenceListobject

objectstring
One of"list"
hasMoreboolean

True when another page follows. Pass nextCursor back as cursor to read it.

nextCursorstring

An opaque cursor for the next page, or null on the last page. Pass it back unchanged.

Can be null

CalendarSubscriptionobject

objectstringRequired
One of"calendar_subscription"
idstringRequired
namestringRequired
urlstringRequired

The https address it is read from.

colorstringRequired
One of"blue""sky""teal""green""lime""yellow""orange""red""pink""purple""gray"
statusstringRequired

active, failing while reads fail and are retried, or stopped after ten failures in a row until you refresh it.

One of"active""failing""stopped"
lastErrorstringRequired

Why the last read failed, if it did.

Can be nullOne of"unreachable""too-large""not-a-calendar""too-many-events"
eventCountintegerRequired
At least 0
lastSyncedAtstringRequired
Can be nullFormatdate-time
lastFetchedAtstringRequired
Can be nullFormatdate-time
createdAtstringRequired
Formatdate-time

CreatedCalendarLoginobject

objectstringRequired
One of"calendar_login"
idstringRequired

The sign-in id, which is also its CalDAV and CardDAV principal.

namestringRequired

What it is called, such as the device it is for.

usernamestringRequired

The username a calendar or contacts app signs in with: cal- and ten letters and digits, never an address.

last4stringRequired

The last four letters of the password.

memberobjectRequired

The person it signs in as.

idstringRequired

The user id.

namestringRequired
emailstringRequired
createdByobjectRequired

Who made it, when that is known.

Can be null
idstringRequired

The user id.

namestringRequired
emailstringRequired
createdAtstringRequired
Formatdate-time
lastUsedAtstringRequired
Can be nullFormatdate-time
lastUsedProtocolstringRequired

What it last signed in to.

Can be nullOne of"caldav""carddav"
lastUsedClientstringRequired

The app, when it named itself.

Can be null
passwordstringRequired

The password, shown this once. Spaces and dashes are optional when typed.

serversCalendarLoginServersRequired
appleProfilestringRequired

An Apple configuration profile (.mobileconfig XML) with the password inside. Opened on an iPhone, iPad or Mac, it adds the calendars to Calendar and the contacts to Contacts in one step, and adds no mail account. It holds the password, so treat it like one.

DeletedCalendarobject

objectstringRequired
One of"calendar"
idstringRequired
deletedbooleanRequired
One oftrue
cancelledMeetingsintegerRequired

How many upcoming meetings you organised in it had their guests sent a cancellation.

At least 0

DeletedCalendarEventobject

objectstringRequired
One of"calendar_event"
idstringRequired
deletedbooleanRequired
One oftrue

DeletedCalendarFeedobject

objectstringRequired
One of"calendar_feed"
idstringRequired
deletedbooleanRequired
One oftrue

DeletedCalendarLoginobject

objectstringRequired
One of"calendar_login"
idstringRequired
deletedbooleanRequired
One oftrue

DeletedCalendarMemberobject

objectstringRequired
One of"calendar_member"
calendarIdstringRequired
memberIdstringRequired
deletedbooleanRequired
One oftrue

DeletedCalendarSubscriptionobject

objectstringRequired
One of"calendar_subscription"
idstringRequired
deletedbooleanRequired
One oftrue

DeletedTodoobject

objectstringRequired
One of"todo"
idstringRequired
deletedbooleanRequired
One oftrue
removedintegerRequired

How many to-dos went: the one you named and its steps.

At least 1

Todoobject

objectstringRequired
One of"todo"
idstringRequired

The to-do id, tdo_ followed by 24 hex characters.

calendarIdstringRequired

The to-do list it is in, as GET /calendar/calendars?kind=todos lists them.

uidstringRequired

Its iCalendar UID, the same one calendar apps keep.

titlestringRequired
notesstringRequired
Can be null
statusstringRequired

Where it stands, as RFC 5545 names it.

One of"NEEDS-ACTION""IN-PROCESS""COMPLETED""CANCELLED"
startstringRequired

When work on it can start: YYYY-MM-DD when allDay is true, otherwise an ISO 8601 date-time in UTC. null when it has none.

Can be null
duestringRequired

When it is due: YYYY-MM-DD when allDay is true, otherwise an ISO 8601 date-time in UTC. null when it has none.

Can be null
allDaybooleanRequired

Whether start and due are days rather than moments.

timezonestringRequired

The IANA time zone its moments are written in for calendar apps. null for days and for UTC.

Can be null
completedAtstringRequired

When it was checked off. null while it is open.

Can be nullFormatdate-time
priorityintegerRequired

1 is the most urgent and 9 the least. 0 means none.

At least 0At most 9
percentCompleteintegerRequired
Can be nullAt least 0At most 100
categoriesstring[]Required
parentIdstringRequired

The to-do it is a step of, in the same list. null when it stands on its own.

Can be null
recurrencestringRequired

The RRULE it repeats by, from its start or due date. null when it does not repeat.

Can be null
createdAtstringRequired
Formatdate-time
updatedAtstringRequired
Formatdate-time

TodoListobject

objectstring
One of"list"
dataTodo[]
hasMoreboolean

True when another page follows. Pass nextCursor back as cursor to read it.

nextCursorstring

The id of the last row on this page, or null on the last page.

Can be null