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.
User ID to act as when using API Key authentication (required with API Key)
Calendar provider to connect (google, outlook)
google, outlook, icloud, caldav, exchange, smart-we, ics 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
Authorization URL generated successfully