Reference/Calendar

Calendar

Connect Google Calendar or Outlook once for your whole organisation, so everyone's confirmed bookings appear in their work calendar.

Operations

#operations

Methods that change state.

setup.connectoperation#setup-connect
POST/api/integrations/calendar/setup/connect200

Starts connecting Google Calendar or Outlook. For Google, a Workspace admin then delegates the returned scope to the returned client ID. For Outlook, a Microsoft admin opens the returned approval link. Replaces a connection that never went live; a live one must be disconnected first. This method requires Account-scoped permission calendar_connection.manage.

providerstringgooglemicrosoftRequired
The calendar provider to connect.
google_domainstringOptional
Google only: your Google Workspace domain, such as acme.com.
curl -X POST 'https://api.officely.app/api/integrations/calendar/setup/connect' -H 'Officely-Version: 2026-08-11' -H 'Authorization: Bearer <account-api-token>' -H 'Content-Type: application/json' --data '{"provider":"google"}'
setup.checkoperation#setup-check
POST/api/integrations/calendar/setup/check200

Checks Officely can add events to a calendar in your organisation, by adding a test event and removing it. The first check that passes starts syncing, including bookings already made. A check that passes also restarts a paused connection. This method requires Account-scoped permission calendar_connection.manage.

mailboxstringRequired
Work email of someone in your organisation. Officely adds a test event to their calendar and removes it straight away.
curl -X POST 'https://api.officely.app/api/integrations/calendar/setup/check' -H 'Officely-Version: 2026-08-11' -H 'Authorization: Bearer <account-api-token>' -H 'Content-Type: application/json' --data '{"mailbox":"alex@acme.example"}'
setup.disconnectoperation#setup-disconnect
POST/api/integrations/calendar/setup/disconnect200

Stops syncing and removes the events Officely added for bookings that haven't ended. It doesn't remove Officely's access in Google or Microsoft. This method requires Account-scoped permission calendar_connection.manage.

No input fields.

curl -X POST 'https://api.officely.app/api/integrations/calendar/setup/disconnect' -H 'Officely-Version: 2026-08-11' -H 'Authorization: Bearer <account-api-token>' -H 'Content-Type: application/json' --data '{}'
setup.featuresoperation#setup-features
POST/api/integrations/calendar/setup/features200

Turns deeper calendar features on or off for everyone: office days as each person's working location, and naming the mapped building in it. Basic booking sync isn't affected. Officely also asks Google or Microsoft what it's allowed to do; a feature that isn't granted waits until an admin allows it and a check passes. Turning working location off removes what Officely set. This method requires Account-scoped permission calendar_connection.manage.

working_locationbooleanOptional
true shows each person's office days as their working location: Google Calendar's working location, or the work location in Outlook and Teams. false turns it off and removes what Officely set. Omit to leave it as it is.
place_mappingbooleanOptional
true names the mapped Google Workspace building or Microsoft Places building in each working location. false stops naming them; the mapping itself is kept. Omit to leave it as it is.
curl -X POST 'https://api.officely.app/api/integrations/calendar/setup/features' -H 'Officely-Version: 2026-08-11' -H 'Authorization: Bearer <account-api-token>' -H 'Content-Type: application/json' --data '{}'
places.mapoperation#places-map
POST/api/integrations/calendar/places/map200

Maps one of your Places to a building from buildings.list, or removes the mapping. While working location and place mapping are on, that Place's upcoming office days are updated. This method requires Account-scoped permission calendar_connection.manage.

placePlaceIdRequired
The Officely Place to map.
buildingobject | nullRequired
The building from GET /integrations/calendar/buildings, or null to remove the mapping.
curl -X POST 'https://api.officely.app/api/integrations/calendar/places/map' -H 'Officely-Version: 2026-08-11' -H 'Authorization: Bearer <account-api-token>' -H 'Content-Type: application/json' --data '{"place":"place_london_hq","building":{"id":"Acme example","name":"Acme London"}}'

Queries

#queries

Read methods. Kept apart from operations because only operations change state.

setup.getquery#setup-get
GET/api/integrations/calendar/setup200

Retrieves your Account's calendar connection, with what an admin needs to finish setting it up. This method requires Account-scoped permission calendar_connection.read.

No input fields.

curl 'https://api.officely.app/api/integrations/calendar/setup' -H 'Officely-Version: 2026-08-11' -H 'Authorization: Bearer <account-api-token>'
buildings.listquery#buildings-list
GET/api/integrations/calendar/buildings200

Lists the buildings in your Google Workspace or Microsoft Places directory, to map your Places to. Google needs the google_buildings_scope delegated and a check with a Workspace admin's email; Microsoft needs an admin to approve Officely again. This method requires Account-scoped permission calendar_connection.read.

No input fields.

curl 'https://api.officely.app/api/integrations/calendar/buildings' -H 'Officely-Version: 2026-08-11' -H 'Authorization: Bearer <account-api-token>'

REST examples use https://api.officely.app. See Officely-Version for endpoint versioning.