Calendar API
Connect a Google Calendar account and manage events, check availability, and schedule directly through the API.Most calendar endpoints require a connected Google Calendar account. Use the connect flow to authorize access before calling event endpoints.
Base URL
Connect calendar
Request body
Response
authUrl to begin the OAuth consent flow. After granting access, Google redirects to the callback endpoint below.
Errors
OAuth callback
Query parameters
Behavior
On success, this endpoint:- Exchanges the authorization code for access and refresh tokens.
- Retrieves the user’s primary calendar ID and timezone.
- Stores the connection for future API calls.
- Redirects to
/dashboard/calendar?connected=true.
Error redirects
If an error occurs, the endpoint redirects to/dashboard/calendar with an error query parameter: