Skip to the documentation
MCP server

Calendar

Events, invitations, calendar links and subscriptions.

Calendar tools

ToolWhat it does
listCalendarEventsYour occurrences between two moments, a repeating event once for each time it happens, with its place, status and your answer. The owner adds the team with includeTeam.
getCalendarEventOne event in full, by id or by the threadId of the conversation that carries its invitation: the attendees and their answers, how it repeats and its reminders.
getCalendarEventIcsOne event as the text of an .ics file another calendar app imports, with the whole series of a repeating event.
createCalendarEventPut an event on the calendar and invite the attendees from an address you may send as. In the app’s chat it asks first unless you asked for it.
updateCalendarEventChange an event you organise, and send the update to everyone invited. In the app’s chat it asks first unless you asked for it.
cancelCalendarEventCall off a meeting you organise and tell everyone invited. In the app’s chat it always asks first.
deleteCalendarEventTake an event off the calendar without telling anybody. In the app’s chat it always asks first.
respondToCalendarEventAccept, decline or tentatively accept an invitation, or propose a new time with your answer, and tell the organiser. In the app’s chat it asks first unless you asked for it.
declineCalendarProposalKeep the original time of a meeting you organise after a guest proposed another one, and tell the guest. In the app’s chat it asks first unless you asked for it.
listCalendarFeedsThe secret links that publish your calendar to Google Calendar, Outlook or Apple Calendar, with their addresses.
createCalendarFeedMake a secret link that publishes your calendar, with every detail or busy times only. In the app’s chat it always asks first.
resetCalendarFeedGive a calendar link a new address, so the old one stops working. In the app’s chat it always asks first.
deleteCalendarFeedTurn a calendar link off for good. In the app’s chat it always asks first.
listCalendarSubscriptionsThe other calendars you subscribe to by link, and whether each is read without errors.
subscribeToCalendarAdd another calendar by its iCalendar link, such as a Google or Outlook calendar address, so its events show read-only. In the app’s chat it always asks first.
updateCalendarSubscriptionRename a calendar subscription or change its colour. In the app’s chat it asks first unless you asked for it.
refreshCalendarSubscriptionRead a subscribed calendar again now, and restart one that stopped after failures.
unsubscribeFromCalendarRemove a calendar subscription and the events it brought. In the app’s chat it always asks first.
listCalendarImportsThe calendar files and calendars brought in, newest first, with how many events each added, found already here and left out.
getCalendarImportOne calendar import with its report: the calendars it read and what it left out, and why.
undoCalendarImportRemove every event one calendar import added. Nobody is told. In the app’s chat it always asks first.
createCalendarImportImport an .ics file passed as its text. Its events become your own and nobody on them is emailed.
hideCalendarEventHide an event from your own calendar and leave it for everyone else, or show it again. In the app’s chat it asks first unless you asked for it.
findMeetingTimeWhen people of the workspace are busy, and the first times everyone is free for a meeting of the length you give.
listCalendarsYour calendars as the list beside the Calendar page shows them: the ones you keep, with their members, and the ones other members gave you access to, with whether you may read or change them.
createCalendarMake a calendar of your own, such as Work or Family, with a name, a colour and a description. In the app’s chat it asks first unless you asked for it.
updateCalendarRename, describe or recolour a calendar you keep, move it in your list or make it your default. On a calendar you are a member of, only your own colour and place for it change. In the app’s chat it asks first unless you asked for it.
deleteCalendarDelete a calendar you keep and every event in it. The guests of its upcoming meetings you organised are sent a cancellation unless notifyGuests is false. Your default calendar cannot be deleted, and on a calendar you are a member of you leave it instead and nobody is told. In the app’s chat it always asks first.
setCalendarMemberGive a member of the workspace access to a calendar you keep, to read it or to change it too, or change what they may do. In the app’s chat it always asks first.
removeCalendarMemberTake a member’s access to a calendar you keep away, or leave a calendar with your own member id. In the app’s chat it always asks first.
listTodosThe to-dos in your to-do lists and the ones members gave you access to, open ones soonest due first, or the done ones, with their due dates, priority, steps and repeats.
createTodoAdd a to-do to a to-do list, due on a day or at a moment, with notes, a priority, categories and a parent to make it a step. In the app’s chat it asks first unless you asked for it.
updateTodoChange a to-do, check it off or open it again, or move it with its steps to another list. Checking off a repeating to-do moves it to its next date. In the app’s chat it asks first unless you asked for it.
deleteTodoDelete a to-do and its steps. In the app’s chat it always asks first.

Reading needs calendar:read and every change needs calendar:write. Anything that emails somebody also needs emails:send: inviting, updating or cancelling a meeting with attendees, every answer to an invitation, and declining a proposed time.

A client limited to some addresses sees and changes only the events one of them organises or attends, and sends only from them. It cannot manage calendars, their members, calendar links or subscriptions, which cover the whole calendar of the person it acts for.

An event that came in through a calendar import emails nobody by default. updateCalendarEvent tells its guests only with sendInvites true, and cancelCalendarEvent and respondToCalendarEvent only with notifyGuests true. No tool uploads a calendar file: upload an .ics file in the Calendars dialog of the app or with POST /calendar/imports, then read or undo the import here.

For a repeating event, updateCalendarEvent, cancelCalendarEvent and deleteCalendarEvent take scope with occurrenceStart: occurrence reaches one date, following that date and every one after it, and series all of them. findMeetingTime refuses a client limited to some addresses, since it reads whole calendars.

listCalendarEvents takes q, words that every event it returns holds in its title, its place or its organiser, so a window of up to a year finds an event by name.

Every event is in one calendar. createCalendarEvent puts it in the calendar calendarId names, or in your default calendar, updateCalendarEvent with calendarId moves it, and listCalendarEvents with calendarIds reads only those calendars. Invitations that arrive by mail go to your default calendar.

A member you give access to a calendar sees it beside their own, in the app and in every app that syncs their calendar, with a colour and a place in the list of their own. Read access shows its events, and write access lets them add, change, move and delete them too. Events you mark private stay yours, and deleting a calendar you are a member of only takes you off it.

A to-do list is a calendar of kind todos: listCalendars and createCalendar take kind todos, and members, colours and deleting work on lists as on calendars. Each to-do syncs to Reminders, Thunderbird and tasks.org over CalDAV.

Reference

listCalendarEvents

Scopescalendar:readThe app's assistant runs it without askingToolkitcalendar

The calendar between two moments, as the Calendar page of the app shows it: every occurrence in the window, a repeating event once for each time it happens, sorted by start, with its event id, place, status and your answer. from and to are ISO 8601 with a zone, at most a year apart, and timezone (an IANA zone, UTC unless you say) decides what an all-day event means. When more follow, the last line gives the offset to pass back. It lists your own events: the ones you made and the ones an address of yours organises or attends. For the workspace owner, includeTeam: true adds the rest of the workspace, apart from events somebody marked private. q keeps the events whose title, place or organiser holds every word, so pass a window of up to a year with it to find an event by name. Each line names the calendar the event is in: listCalendars shows them, and calendarIds keeps only some.

Inputs

fromstringRequired
Formatdate-time
tostringRequired
Formatdate-time
timezonestring
1 to 64 characters
includeTeamboolean
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.

1 to 100 items
limitinteger
At least 1At most 200
offsetinteger
At least 0

Also available in

API
GET /calendar/events
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

getCalendarEvent

Scopescalendar:readThe app's assistant runs it without askingToolkitcalendar

One calendar event in full: when it is, where, who organised it, every attendee and their answer, your own answer, how it repeats and its reminders. Pass id for an event from listCalendarEvents, or threadId for the invitation a conversation carries.

Inputs

idstring
1 to 64 characters
threadIdstring
1 to 256 characters

Also available in

API
GET /calendar/events/{id}GET /threads/{id}/event
TypeScript
calendar.getEvent()threads.getEvent()
Python
calendar.get_event()threads.get_event()
Ruby
calendar.get_eventthreads.get_event
PHP
calendar->getEventthreads->getEvent
Go
Calendar.GetEventThreads.GetEvent
Java
calendar().getEventthreads().getEvent
C#
Calendar.GetEventAsyncThreads.GetEventAsync

getCalendarEventIcs

Scopescalendar:readThe app's assistant runs it without askingToolkitcalendar

One calendar event as an iCalendar (.ics) file, the text another calendar app imports. A repeating event comes with its whole series. Pass id for an event from listCalendarEvents or getCalendarEvent.

Inputs

idstringRequired
1 to 64 characters

Also available in

API
GET /calendar/events/{id}/ics
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

createCalendarEvent

Scopescalendar:writeThe app's assistant asks first unless you asked for itToolkitcalendar

Put an event on the calendar, as New event on the Calendar page does. start and end are ISO 8601 with a zone. With attendees, an invitation goes to each of them from the address in from, which has to be one you may send as, unless sendInvites is false. reminders takes minutes before the start, and recurrence an RRULE such as FREQ=WEEKLY;BYDAY=MO. calendarId puts it in one of your calendars, or in one you are a member of with write access, instead of your default calendar.

Inputs

summarystringRequired
1 to 255 characters
startstringRequired
Formatdate-time
endstringRequired
Formatdate-time
descriptionstring
Up to 8000 characters
locationstring
Up to 255 characters
urlstring
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
allDayboolean
timezonestring
1 to 64 characters
recurrencestring
Up to 512 characters
attendeesobject[]
Up to 200 items
emailstringRequired
Up to 320 charactersFormatemail
namestring
Up to 128 characters
optionalboolean
remindersobject[]
Up to 5 items
minutesBeforeintegerRequired
At least 0At most 40320
actionstring

DISPLAY, the default, shows a reminder; EMAIL sends one; AUDIO plays a sound.

One of"DISPLAY""EMAIL""AUDIO"
transparencystring

OPAQUE, the default, shows the time as busy; TRANSPARENT leaves it free.

One of"OPAQUE""TRANSPARENT"
visibilitystring

PUBLIC, PRIVATE or CONFIDENTIAL: how much a calendar shared with others shows of it.

One of"PUBLIC""PRIVATE""CONFIDENTIAL"
sendInvitesboolean
fromstring
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

Also available in

API
POST /calendar/events
TypeScript
calendar.createEvent()
Python
calendar.create_event()
Ruby
calendar.create_event
PHP
calendar->createEvent
Go
Calendar.CreateEvent
Java
calendar().createEvent
C#
Calendar.CreateEventAsync

updateCalendarEvent

Scopescalendar:writeThe app's assistant asks first unless you asked for itToolkitcalendar

Change an event you organise: its title, time, place, video call link, attendees, reminders or repeating. A field left out keeps its value, and attendees replaces the whole list. Everyone invited gets the updated invitation unless sendInvites is false. An event that came in through a calendar import tells nobody unless sendInvites is true. For a repeating event, scope occurrence with occurrenceStart changes one date, following changes that date and the ones after it, and series changes them all. calendarId moves the event, with every date of it, to another calendar.

Inputs

idstringRequired
1 to 64 characters
summarystring
1 to 255 characters
startstring
Formatdate-time
endstring
Formatdate-time
descriptionstring
Up to 8000 characters
locationstring
Up to 255 characters
urlstring
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
allDayboolean
timezonestring
1 to 64 characters
recurrencestring
Up to 512 characters
attendeesobject[]
Up to 200 items
emailstringRequired
Up to 320 charactersFormatemail
namestring
Up to 128 characters
optionalboolean
remindersobject[]
Up to 5 items
minutesBeforeintegerRequired
At least 0At most 40320
actionstring

DISPLAY, the default, shows a reminder; EMAIL sends one; AUDIO plays a sound.

One of"DISPLAY""EMAIL""AUDIO"
transparencystring

OPAQUE, the default, shows the time as busy; TRANSPARENT leaves it free.

One of"OPAQUE""TRANSPARENT"
visibilitystring

PUBLIC, PRIVATE or CONFIDENTIAL: how much a calendar shared with others shows of it.

One of"PUBLIC""PRIVATE""CONFIDENTIAL"
sendInvitesboolean
fromstring
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

Also available in

API
PATCH /calendar/events/{id}
TypeScript
calendar.updateEvent()
Python
calendar.update_event()
Ruby
calendar.update_event
PHP
calendar->updateEvent
Go
Calendar.UpdateEvent
Java
calendar().updateEvent
C#
Calendar.UpdateEventAsync

cancelCalendarEvent

Scopescalendar:writeThe app's assistant always asks firstToolkitcalendar

Call off a meeting you organise, as Cancel meeting does in the app: it stays on the calendar marked cancelled, and everyone invited is told it is off, from the address in from. An event that came in through a calendar import tells nobody unless notifyGuests is true, and notifyGuests false keeps any cancellation quiet. For a repeating meeting, scope occurrence with occurrenceStart calls off one date, and following that date and the ones after it. A chat always asks first.

Inputs

idstringRequired
1 to 64 characters
fromstring
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

Also available in

API
POST /calendar/events/{id}/cancel
TypeScript
calendar.cancelEvent()
Python
calendar.cancel_event()
Ruby
calendar.cancel_event
PHP
calendar->cancelEvent
Go
Calendar.CancelEvent
Java
calendar().cancelEvent
C#
Calendar.CancelEventAsync

deleteCalendarEvent

Scopescalendar:writeThe app's assistant always asks firstToolkitcalendar

Remove an event from the calendar for good, as Remove does in the app. Nobody else is told, so call off a meeting with others in it with cancelCalendarEvent instead. For a repeating event, scope occurrence with occurrenceStart removes one date, and following that date and the ones after it. A chat always asks first.

Inputs

idstringRequired
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

Also available in

API
DELETE /calendar/events/{id}
TypeScript
calendar.deleteEvent()
Python
calendar.delete_event()
Ruby
calendar.delete_event
PHP
calendar->deleteEvent
Go
Calendar.DeleteEvent
Java
calendar().deleteEvent
C#
Calendar.DeleteEventAsync

respondToCalendarEvent

Scopescalendar:writeThe app's assistant asks first unless you asked for itToolkitcalendar

Answer an invitation: ACCEPTED, DECLINED or TENTATIVE. The answer goes to the organiser by email from the invited address you may send as, or from respondingAs when the invitation went to more than one of yours. On an event that came in through a calendar import the answer is only recorded, and the organiser is told when notifyGuests is true.

Inputs

idstringRequired
1 to 64 characters
responsestringRequired
One of"ACCEPTED""DECLINED""TENTATIVE"
respondingAsstring
Up to 320 characters
notifyGuestsboolean
proposedStartstring
Formatdate-time
proposedEndstring
Formatdate-time

Also available in

API
POST /calendar/events/{id}/respond
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

declineCalendarProposal

Scopescalendar:writeThe app's assistant asks first unless you asked for itToolkitcalendar

Keep the original time of a meeting you organise after a guest proposed another one. The guest is told by email. To take the proposed time instead, change the event with updateCalendarEvent. A chat asks first unless you asked for it.

Inputs

idstringRequired
1 to 64 characters
attendeestringRequired
Up to 320 charactersFormatemail
fromstring
Up to 320 characters

Also available in

API
POST /calendar/events/{id}/decline-proposal
TypeScript
calendar.declineProposal()
Python
calendar.decline_proposal()
Ruby
calendar.decline_proposal
PHP
calendar->declineProposal
Go
Calendar.DeclineProposal
Java
calendar().declineProposal
C#
Calendar.DeclineProposalAsync

createCalendarFeed

Scopescalendar:writeThe app's assistant always asks firstToolkitcalendar

Make a secret link that publishes your calendar, to paste into Google Calendar (From URL), Outlook (Subscribe from web) or Apple Calendar. mode full shows every detail, busy only the times you are busy. Anyone with the link can read it. A chat always asks first.

Inputs

namestringRequired
1 to 100 characters
modestringRequired
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

Also available in

API
POST /calendar/feeds
TypeScript
calendar.createFeed()
Python
calendar.create_feed()
Ruby
calendar.create_feed
PHP
calendar->createFeed
Go
Calendar.CreateFeed
Java
calendar().createFeed
C#
Calendar.CreateFeedAsync

listCalendarSubscriptions

Scopescalendar:readThe app's assistant runs it without askingToolkitcalendar

List the other calendars you subscribe to by link, such as a Google or Outlook calendar, a team rota or public holidays, with whether each is read without errors.

Inputs

Takes no input.

Also available in

API
GET /calendar/subscriptions
TypeScript
calendar.listSubscriptions()
Python
calendar.list_subscriptions()
Ruby
calendar.list_subscriptions
PHP
calendar->listSubscriptions
Go
Calendar.ListSubscriptions
Java
calendar().listSubscriptions
C#
Calendar.ListSubscriptionsAsync

subscribeToCalendar

Scopescalendar:writeThe app's assistant always asks firstToolkitcalendar

Add another calendar by its iCalendar link (https, http or webcal), such as the secret address of a Google calendar or a published Outlook calendar. Its events show on your calendar, read-only, and are read again about every half hour. A chat always asks first.

Inputs

urlstringRequired
1 to 2048 characters
namestring
1 to 100 characters
colorstring
One of"blue""sky""teal""green""lime""yellow""orange""red""pink""purple""gray"

Also available in

API
POST /calendar/subscriptions
TypeScript
calendar.createSubscription()
Python
calendar.create_subscription()
Ruby
calendar.create_subscription
PHP
calendar->createSubscription
Go
Calendar.CreateSubscription
Java
calendar().createSubscription
C#
Calendar.CreateSubscriptionAsync

updateCalendarSubscription

Scopescalendar:writeThe app's assistant asks first unless you asked for itToolkitcalendar

Rename a calendar subscription or give it another colour.

Inputs

idstringRequired
1 to 64 characters
namestring
1 to 100 characters
colorstring
One of"blue""sky""teal""green""lime""yellow""orange""red""pink""purple""gray"

Also available in

API
PATCH /calendar/subscriptions/{id}
TypeScript
calendar.updateSubscription()
Python
calendar.update_subscription()
Ruby
calendar.update_subscription
PHP
calendar->updateSubscription
Go
Calendar.UpdateSubscription
Java
calendar().updateSubscription
C#
Calendar.UpdateSubscriptionAsync

refreshCalendarSubscription

Scopescalendar:writeThe app's assistant asks first unless you asked for itToolkitcalendar

Read a subscribed calendar again now, and restart one that stopped after failures.

Inputs

idstringRequired
1 to 64 characters

Also available in

API
POST /calendar/subscriptions/{id}/refresh
TypeScript
calendar.refreshSubscription()
Python
calendar.refresh_subscription()
Ruby
calendar.refresh_subscription
PHP
calendar->refreshSubscription
Go
Calendar.RefreshSubscription
Java
calendar().refreshSubscription
C#
Calendar.RefreshSubscriptionAsync

unsubscribeFromCalendar

Scopescalendar:writeThe app's assistant always asks firstToolkitcalendar

Remove a calendar subscription and every event it brought onto your calendar. A chat always asks first.

Inputs

idstringRequired
1 to 64 characters

Also available in

API
DELETE /calendar/subscriptions/{id}
TypeScript
calendar.deleteSubscription()
Python
calendar.delete_subscription()
Ruby
calendar.delete_subscription
PHP
calendar->deleteSubscription
Go
Calendar.DeleteSubscription
Java
calendar().deleteSubscription
C#
Calendar.DeleteSubscriptionAsync

listCalendarImports

Scopescalendar:readThe app's assistant runs it without askingToolkitcalendar

The calendar imports of this workspace, newest first, as Import in the Calendars dialog of the app lists them: an .ics file somebody uploaded, the calendars inside a Google Takeout archive, or the calendars pulled from an old mailbox. Each line says how many events it found, added, found already here and left out. A member sees their own. Uploading a file takes bytes a tool call does not carry, so that is done in the app, over the REST API or with the CLI. One page at a time: when more follow, the last line gives a cursor to pass back for the next page.

Inputs

limitinteger
At least 1At most 100
cursorstring

Also available in

API
GET /calendar/imports
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

getCalendarImport

Scopescalendar:readThe app's assistant runs it without askingToolkitcalendar

One calendar import by its id, with its report: the calendars the file held and how many events each gave, how many were left out and why, and the first few that were not brought in. Imported events are ordinary events, and nobody invited to one was sent anything.

Inputs

idstringRequired
1 to 64 characters

Also available in

API
GET /calendar/imports/{id}
TypeScript
calendar.getImport()
Python
calendar.get_import()
Ruby
calendar.get_import
PHP
calendar->getImport
Go
Calendar.GetImport
Java
calendar().getImport
C#
Calendar.GetImportAsync

undoCalendarImport

Scopescalendar:writeThe app's assistant always asks firstToolkitcalendar

Remove every event one calendar import added, as Remove imported events does in the app. Events that were on the calendar before it stay, and nobody is told. It cannot be taken back, though the same file can be imported again. A chat always asks first.

Inputs

idstringRequired
1 to 64 characters

Also available in

API
POST /calendar/imports/{id}/undo
TypeScript
calendar.undoImport()
Python
calendar.undo_import()
Ruby
calendar.undo_import
PHP
calendar->undoImport
Go
Calendar.UndoImport
Java
calendar().undoImport
C#
Calendar.UndoImportAsync

createCalendarImport

Scopescalendar:writeThe app's assistant asks first unless you asked for itToolkitcalendar

Import an .ics calendar file, as Import in the Calendars dialog of the app does, with the file passed as its text. Its events become your own, nobody on them is emailed, and events already on the calendar are not added twice. It is read in the background; getCalendarImport gives the report. At most 10 MB and 25000 events. calendarId picks the calendar they go into.

Inputs

contentstringRequired

The .ics file itself as text, the one with BEGIN:VCALENDAR in it.

1 to 10485760 characters
fileNamestring
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.

1 to 64 characters

Also available in

API
POST /calendar/importsPOST /contacts/imports
TypeScript
calendar.importIcs()contacts.importVcf()
Python
calendar.import_ics()contacts.import_vcf()
Ruby
calendar.import_icscontacts.import_vcf
PHP
calendar->importIcscontacts->importVcf
Go
Calendar.ImportIcsContacts.ImportVcf
Java
calendar().importIcscontacts().importVcf
C#
Calendar.ImportIcsAsyncContacts.ImportVcfAsync

hideCalendarEvent

Scopescalendar:writeThe app's assistant asks first unless you asked for itToolkitcalendar

Hide an event from your own calendar and leave it for everyone else, as Hide from my calendar does in the app, or put it back with hidden false. Use it for an invitation that reached you through a shared address, or an event you may not remove. Hiding also stops its reminders for you. A chat asks first unless you asked for it.

Inputs

idstringRequired
1 to 64 characters
hiddenboolean

false shows a hidden event again.

Also available in

API
POST /calendar/events/{id}/hidePOST /calendar/events/{id}/unhide
TypeScript
calendar.hideEvent()calendar.unhideEvent()
Python
calendar.hide_event()calendar.unhide_event()
Ruby
calendar.hide_eventcalendar.unhide_event
PHP
calendar->hideEventcalendar->unhideEvent
Go
Calendar.HideEventCalendar.UnhideEvent
Java
calendar().hideEventcalendar().unhideEvent
C#
Calendar.HideEventAsyncCalendar.UnhideEventAsync

findMeetingTime

Scopescalendar:readThe app's assistant runs it without askingToolkitcalendar

When people are busy and the first times everyone is free, as Find a time in the event editor shows it. emails takes up to 20 addresses: one of the workspace shows the busy times of the person who holds it, and any other address is unknown. from and to are ISO 8601 with a zone, at most 31 days apart. With durationMinutes it suggests up to five times, on weekdays between 09:00 and 17:00 in timezone (UTC unless you say).

Inputs

emailsstring[]Required
1 to 20 items
fromstringRequired
Formatdate-time
tostringRequired
Formatdate-time
timezonestring
1 to 64 characters
durationMinutesinteger
At least 5At most 480

Also available in

API
GET /calendar/free-busy
TypeScript
calendar.freeBusy()
Python
calendar.free_busy()
Ruby
calendar.free_busy
PHP
calendar->freeBusy
Go
Calendar.FreeBusy
Java
calendar().freeBusy
C#
Calendar.FreeBusyAsync

listCalendars

Scopescalendar:readThe app's assistant runs it without askingToolkitcalendar

Your calendars, as the calendar list beside the Calendar page shows them: the ones you keep, with their members, and the ones other members of the workspace gave you access to, with whether you may read or write. Each event is in one calendar, and new events and invitations go to your default one. kind todos lists your to-do lists instead.

Inputs

kindstring

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

One of"events""todos"

Also available in

API
GET /calendar/calendarsGET /calendar/calendars/{id}
TypeScript
calendar.listCalendars()calendar.getCalendar()
Python
calendar.list_calendars()calendar.get_calendar()
Ruby
calendar.list_calendarscalendar.get_calendar
PHP
calendar->listCalendarscalendar->getCalendar
Go
Calendar.ListCalendarsCalendar.GetCalendar
Java
calendar().listCalendarscalendar().getCalendar
C#
Calendar.ListCalendarsAsyncCalendar.GetCalendarAsync

createCalendar

Scopescalendar:writeThe app's assistant asks first unless you asked for itToolkitcalendar

Make a new calendar of your own, such as Work or Family, with a name, a colour and a description. Events go into it when you name it in createCalendarEvent. kind todos makes a to-do list instead, for createTodo.

Inputs

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

Also available in

API
POST /calendar/calendars
TypeScript
calendar.createCalendar()
Python
calendar.create_calendar()
Ruby
calendar.create_calendar
PHP
calendar->createCalendar
Go
Calendar.CreateCalendar
Java
calendar().createCalendar
C#
Calendar.CreateCalendarAsync

updateCalendar

Scopescalendar:writeThe app's assistant asks first unless you asked for itToolkitcalendar

Rename a calendar you keep, describe it, give it another colour, move it in your list or make it your default. For a calendar you are a member of, only your own colour and position for it change.

Inputs

idstringRequired

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

1 to 64 characters
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.

Also available in

API
PATCH /calendar/calendars/{id}
TypeScript
calendar.updateCalendar()
Python
calendar.update_calendar()
Ruby
calendar.update_calendar
PHP
calendar->updateCalendar
Go
Calendar.UpdateCalendar
Java
calendar().updateCalendar
C#
Calendar.UpdateCalendarAsync

deleteCalendar

Scopescalendar:writeThe app's assistant always asks firstToolkitcalendar

Delete a calendar you keep. 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. Your default calendar cannot be deleted. A to-do list goes with its to-dos. For a calendar you are a member of, you leave it, it stays with its keeper and nobody is told. A chat always asks first.

Inputs

idstringRequired

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

1 to 64 characters
notifyGuestsboolean

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.

Also available in

API
DELETE /calendar/calendars/{id}
TypeScript
calendar.deleteCalendar()
Python
calendar.delete_calendar()
Ruby
calendar.delete_calendar
PHP
calendar->deleteCalendar
Go
Calendar.DeleteCalendar
Java
calendar().deleteCalendar
C#
Calendar.DeleteCalendarAsync

setCalendarMember

Scopescalendar:writeThe app's assistant always asks firstToolkitcalendar

Give a member of the workspace access to a calendar you keep, or change what they may do: read to see its events, write to add, change, move and remove them too. Their apps show it beside their own calendars. listWorkspaceMembers gives member ids. A chat always asks first.

Inputs

idstringRequired

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

1 to 64 characters
memberIdstringRequired

The id of a workspace member, as the list of members shows it.

1 to 64 characters
accessstringRequired

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

One of"read""write"

Also available in

API
PUT /calendar/calendars/{id}/members/{memberId}
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

removeCalendarMember

Scopescalendar:writeThe app's assistant always asks firstToolkitcalendar

Take away a member’s access to a calendar you keep. Pass your own member id to leave a calendar you are a member of. A chat always asks first.

Inputs

idstringRequired

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

1 to 64 characters
memberIdstringRequired

The id of a workspace member, as the list of members shows it.

1 to 64 characters

Also available in

API
DELETE /calendar/calendars/{id}/members/{memberId}
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

listTodos

Scopescalendar:readThe app's assistant runs it without askingToolkitcalendar

The to-dos in your to-do lists and the ones other members gave you access to, as the To-dos view of the Calendar page shows them. listCalendars with kind todos names the lists. 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. One page at a time: when more follow, the last line gives a cursor to pass back.

Inputs

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.

1 to 100 items
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"
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
At least 1At most 500
cursorstring

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

1 to 64 characters

Also available in

API
GET /calendar/todosGET /calendar/todos/{id}
TypeScript
calendar.listTodos()calendar.listAllTodos()calendar.iterateTodos()calendar.getTodo()
Python
calendar.list_todos()calendar.list_all_todos()calendar.iterate_todos()calendar.get_todo()
Ruby
calendar.list_todoscalendar.list_all_todoscalendar.iterate_todoscalendar.get_todo
PHP
calendar->listTodoscalendar->listAllTodoscalendar->iterateTodoscalendar->getTodo
Go
Calendar.ListTodosCalendar.ListAllTodosCalendar.IterateTodosCalendar.GetTodo
Java
calendar().listTodoscalendar().listAllTodoscalendar().iterateTodoscalendar().getTodo
C#
Calendar.ListTodosAsyncCalendar.ListAllTodosAsyncCalendar.IterateTodosAsyncCalendar.GetTodoAsync

createTodo

Scopescalendar:writeThe app's assistant asks first unless you asked for itToolkitcalendar

Add a to-do to one of your to-do lists, or to one you are a member of with write access, with a due day or moment, notes, a priority and categories. parentId makes it a step of another to-do in the same list. It goes in your default to-do list unless you name one.

Inputs

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

Also available in

API
POST /calendar/todos
TypeScript
calendar.createTodo()
Python
calendar.create_todo()
Ruby
calendar.create_todo
PHP
calendar->createTodo
Go
Calendar.CreateTodo
Java
calendar().createTodo
C#
Calendar.CreateTodoAsync

updateTodo

Scopescalendar:writeThe app's assistant asks first unless you asked for itToolkitcalendar

Change a to-do, check it off with status COMPLETED or open it again with NEEDS-ACTION. Checking off a repeating to-do moves it to its next date and keeps it open. calendarId moves it, with its steps, to another to-do list. Send only what changes.

Inputs

idstringRequired

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

1 to 64 characters
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

Also available in

API
PATCH /calendar/todos/{id}
TypeScript
calendar.updateTodo()
Python
calendar.update_todo()
Ruby
calendar.update_todo
PHP
calendar->updateTodo
Go
Calendar.UpdateTodo
Java
calendar().updateTodo
C#
Calendar.UpdateTodoAsync

deleteTodo

Scopescalendar:writeThe app's assistant always asks firstToolkitcalendar

Delete a to-do. Deleting a to-do deletes its steps too, and calendar apps that sync the list drop them on their next sync. A chat always asks first.

Inputs

idstringRequired

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

1 to 64 characters

Also available in

API
DELETE /calendar/todos/{id}
TypeScript
calendar.deleteTodo()
Python
calendar.delete_todo()
Ruby
calendar.delete_todo
PHP
calendar->deleteTodo
Go
Calendar.DeleteTodo
Java
calendar().deleteTodo
C#
Calendar.DeleteTodoAsync