
Web applications often reach a point where they need to see what is on their users’ calendars. A CRM wants to log client meetings as they happen, a sales tool wants to prepare notes before each call, and a meeting assistant needs every call’s start time and join link.
Business users mostly keep their calendars in Google Calendar or Microsoft Outlook, so an app that connects to calendars usually has to support both.
A calendar API is the interface that lets your application read a user’s events, and in some cases change them, after the user grants permission. Google offers the Google Calendar API, and Microsoft exposes Outlook calendars through Microsoft Graph.
A web app can talk to both directly, or connect through a calendar API that handles both providers behind a single set of endpoints.
Three ways to connect both calendars
Recall.ai, an API for meeting recording used by over 3,000 companies, offers a third option: a free calendar API built for apps that work with the meetings on users’ calendars.
| Google and Microsoft APIs directly | Unified calendar API | Recall.ai Calendar API | |
| What you build | Two OAuth setups, two sync systems, two webhook systems, and a mapper between two event formats | One integration that covers both providers | One integration that covers both providers, linked to meeting recording |
| Change notifications | Google watch channels and Graph subscriptions, both of which expire and need replacing | Handled by the vendor | Handled by Recall.ai, with webhooks to your app |
| Main use | Any calendar feature | Any calendar feature | Apps that record, transcribe or summarize the meetings on users’ calendars |
| Cost of the calendar connection | Free APIs, paid for in engineering time | Varies by vendor | Free, with no limit on connected calendars |
A unified calendar API takes the provider differences off your plate for general calendar features. Recall.ai’s Calendar API does the same for apps whose interest in a calendar is the meetings on it. The sections below cover what each route involves in practice.
What building directly involves?
Building against both providers gives you full control over the data and no extra vendor, at the cost of two separate integrations that work on the same ideas with different names, data shapes and limits.
| Google Calendar API | Microsoft Graph (Outlook) | |
| App registration | Google Cloud project with an OAuth client | Microsoft Entra ID app registration |
| Read-only access | calendar.readonly scope | Calendars.Read permission |
| Offline access | access_type=offline on the sign-in request | offline_access scope |
| Fetching only changes | Sync token | Delta link |
| Change notifications | Watch channels, which cannot be renewed | Subscriptions, up to 10,080 minutes and renewable |
Registering the app
On the Google side, you create a project in the Google Cloud console, enable the Google Calendar API, set up the OAuth consent screen and create an OAuth client ID of the “Web application” type with your redirect URL.
Google classes calendar scopes as sensitive, so a public app has to pass Google’s OAuth verification, and until it does, users see an unverified app warning when they sign in. Requesting only calendar.readonly keeps that review simpler if your feature just reads events.
On the Microsoft side, you register an app in the Microsoft Entra admin center, add a redirect URL and add the delegated Calendars.Read or Calendars.ReadWrite permission.
Including personal Microsoft accounts in the supported account types brings in Outlook.com users as well as work accounts.
Some organizations stop employees from approving third-party apps, in which case an IT admin has to grant consent for the whole company before anyone there can connect.
Sign-in and tokens
Both providers use the OAuth 2.0 authorization code flow. Your server exchanges the code returned to your redirect URL for an access token, which typically lasts about an hour, and a refresh token, which lets your app keep syncing after the user leaves.
Google only returns a refresh token when the sign-in request includes access_type=offline, and Microsoft only returns one when you request the offline_access scope.
Refresh tokens need to be stored encrypted, keyed by user and provider, and a failed refresh usually means the user revoked access and has to reconnect.
The first sync and later changes
With Google, the first sync calls events.list on the user’s calendar and pages through the results, with singleEvents=true expanding recurring meetings into individual occurrences.
The last page includes a nextSyncToken, and later requests use it to fetch only what changed. If Google returns a 410 status, its sync guide says to clear the stored events and run a full sync again.
With Microsoft Graph, the first sync calls the calendarView delta endpoint with a start and end date. Recurring meetings come back as separate occurrences, and the final page includes a delta link that returns only the events added, changed or deleted since. Graph can reject an old delta link too, so the same fallback to a full sync applies.
Change notifications
Notifications take the most ongoing upkeep. Google’s watch channels post to your HTTPS endpoint when a calendar changes, but each notification carries headers and no event data, so it acts as a prompt to run an incremental sync.
Channels expire and cannot be renewed, so your app opens a new one before the old one lapses. Google’s documentation also states that notifications are not 100% reliable, so a scheduled background sync makes a sensible backup.
Microsoft Graph uses subscriptions instead. You create one for the user’s events with a notification URL and an expiry of up to 10,080 minutes, a little under a week.
Graph first sends a validation token that your endpoint has to echo back as plain text before the subscription goes live, and a clientState secret lets you check that later notifications came from Microsoft. Each subscription then needs renewing with a PATCH request before it expires.
Normalizing the two event formats
The rest of your app is simpler if events from both providers map into one internal model, holding the provider, the event ID, start and end times in UTC, an all-day flag, attendees with their response status, and a meeting link.
The two formats differ in the details. Google marks an all-day event by using start.date instead of start.dateTime, while Graph sets an isAllDay flag. Google lists attendees with an email and a responseStatus, and Graph nests them under emailAddress and status.
Meeting links differ the most: Google Meet links sit in conferenceData, Teams links sit in Graph’s onlineMeeting field, and a Zoom link pasted into an invite may only appear in the location or description, so a small parser that searches those text fields is usually needed.
How Recall.ai’s Calendar API works
Recall.ai’s Calendar API connects to your users’ Google Calendar and Microsoft Outlook accounts through one interface.
It syncs each user’s events, keeps them current as meetings move, and can send a meeting bot to record and transcribe the calls you choose. Recordings and transcripts stay linked to the calendar event they came from, including the title, the timing and participant emails.
It comes in two versions, and the docs describe them as separate implementation paths. Calendar V1 lets Recall.ai decide which meetings to record, based on preferences each user sets, and asks for the least code.
Calendar V2 leaves that decision to your application, which calls the API to add or remove a bot for each event. Recall.ai’s documentation generally recommends V2, which is also the version that supports different bot settings for each user and each event.
Integrating with Calendar V2
You still register your own OAuth clients with Google and Microsoft, so the consent screen your users see carries your app’s name.
Run the standard OAuth authorization code flow in your app to get a refresh token for the user, then pass it to Recall.ai to create the calendar:
POST https://us-east-1.recall.ai/api/v2/calendars/
{
"platform": "google_calendar",
"oauth_client_id": "YOUR_CLIENT_ID",
"oauth_client_secret": "YOUR_CLIENT_SECRET",
"oauth_refresh_token": "USER_REFRESH_TOKEN"
}
For an Outlook user, the platform value is microsoft_outlook. Store the calendar ID in the response against the user. From this point Recall.ai handles syncing, so there are no sync tokens, delta links or expiring subscriptions on your side.
Recall.ai then sends your app two webhooks. A calendar.sync_events webhook arrives when events are created, updated or deleted, and includes a timestamp. Your app responds by calling the List Calendar Events endpoint with updated_at__gte set to that timestamp, which returns only the events that changed.
Deleted events stay in the results with is_deleted set to true, so check that field instead of looking for missing events.
A calendar.update webhook arrives when the calendar itself changes, for example when a user revokes access and the status becomes disconnected, which is the moment to ask the user to reconnect.
Each event includes the provider’s own data in a raw field, so your app can apply whatever rules it needs, such as recording only meetings with external attendees or skipping internal standups. To record an event, schedule a bot for it:
POST https://us-east-1.recall.ai/api/v2/calendar-events/{id}/bot/
{
"deduplication_key": "{start_time}-{meeting_url}",
"bot_config": { "bot_name": "Meeting Notes" }
}
The meeting link and join time are filled in from the event. The deduplication key prevents two bots joining the same call when several of your users are invited to it.
Recall.ai’s docs recommend combining the start time and meeting link, so colleagues on the same meeting share one bot. When an event is rescheduled, calling the same endpoint again replaces the earlier bot, so the recording follows the meeting to its new time.
Using Calendar V1 instead
Calendar V1 suits teams that want recording to run from user preferences without writing scheduling logic.
Your server generates a short-lived calendar auth token for each user, the user connects their calendar, and your app saves preferences such as recording meetings with external attendees or only meetings the user hosts.
A per-meeting override switches recording on or off for a single call, and bot settings come from one dashboard preset.
What it costs?
Recall.ai’s Calendar API is free to use, regardless of how many user calendars you connect, and it can be enabled alongside any of Recall.ai’s recording methods.
Building the connection yourself costs engineering time across two providers, and that is before the meeting side: it takes a team of engineers 6 months on average to integrate with a single meeting platform.
Recall.ai captures recordings, transcripts and metadata from all major meeting platforms as well as in-person meetings, so companies don’t have to build their own recording infrastructure for each platform their users meet on.
Limits to plan around
The Calendar API connects to the primary calendar of the account that authorized it, so shared or secondary calendars are outside its scope.
According to Recall.ai’s docs, Google refresh tokens issued by an OAuth client that is not yet approved expire after seven days, which can make a working test integration disconnect in its second week.
Finish Google’s verification before launch, and watch for calendar.update webhooks so a disconnected user is asked to sign in again.
Where to start?
A practical first version registers one OAuth client, connects a test account through Calendar V2, and handles the two webhooks. Schedule bots for a single rule, such as meetings with external attendees, and confirm that a rescheduled meeting moves its bot.
Adding the second provider then means registering one more OAuth client and passing a different platform value, since Recall.ai returns the core event fields, such as the start time, meeting link and deletion status, in the same shape for both providers.