Get OAuth authorization URL
Get the OAuth authorization URL for connecting a calendar provider. The user should be redirected to this URL to complete the OAuth flow. After authorization, the provider will redirect back to the API callback endpoint.
Authorizations
User ID to act on behalf of. Platform API Keys only (required with an API Key unless the endpoint states otherwise). Requests authenticated with a Personal Access Token are rejected if this header names another user.
Path Parameters
Calendar provider to connect (google, outlook)
google, outlook, icloud, caldav, exchange, smart-we, ics Query Parameters
URL to redirect to after OAuth completion (defaults to frontend URL)
"https://yourapp.com/calendar-success"
User ID to connect for (admin only - connects calendar for specified user)
"user-uuid"
Whether to automatically set this connection as the calendar sync provider after successful OAuth. If the user already has a calendar sync provider, this will be ignored.
true
Response
Authorization URL generated successfully