> ## Documentation Index
> Fetch the complete documentation index at: https://developer.meetergo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# OAuth callback handler

> Handles OAuth callback from calendar providers. This endpoint is called automatically by the provider after the user completes authorization. Creates the calendar connection and redirects the user to the success/error page.



## OpenAPI

````yaml /openapi.json get /v4/calendar-connections/auth/{provider}/callback
openapi: 3.0.0
info:
  title: meetergo Platform API
  description: >-
    Comprehensive scheduling API for creating users, managing availability,
    handling bookings, and connecting calendar providers. Enables seamless
    integration with external platforms and applications.
  version: 0.0.0
  contact: {}
  termsOfService: https://www.meetergo.com/tos/
servers: []
security: []
tags:
  - name: User V4
    description: Create and manage users in your workspace
  - name: Meeting Type V4
    description: Configure meeting templates with durations, buffers, and conferencing
  - name: availability
    description: Manage weekly schedules and availability settings
  - name: Booking V4
    description: Create new bookings
  - name: Booking Availability V4
    description: Query available time slots for booking
  - name: Appointment V4
    description: Manage existing appointments
  - name: Attendee V4
    description: Manage attendee details and notes
  - name: Calendar Connections V4
    description: Connect and sync external calendars
  - name: One Time Booking Link V4
    description: Create single-use booking links
  - name: availability-exception
    description: Override availability for specific dates
  - name: Booking Link V4
    description: Configure various booking page types
  - name: Personal Page V4
    description: Manage user profile pages
  - name: Handoff V4
    description: Reassign meetings to other hosts
  - name: Calendar Auth V4
    description: OAuth callbacks for calendar providers
  - name: Queue V4
    description: Round-robin and queue-based routing (Beta)
  - name: Queue User Group V4
    description: Manage queue user groups (Beta)
  - name: Meeting Type Template V4
    description: Reusable meeting type configurations (Beta)
  - name: Attendee Pending V4
    description: Manage pending attendee approvals (Beta)
  - name: Provisional Booking V4
    description: Manage provisional/unconfirmed bookings (Beta)
paths:
  /v4/calendar-connections/auth/{provider}/callback:
    get:
      tags:
        - Calendar Auth V4
      summary: OAuth callback handler
      description: >-
        Handles OAuth callback from calendar providers. This endpoint is called
        automatically by the provider after the user completes authorization.
        Creates the calendar connection and redirects the user to the
        success/error page.
      operationId: handleOAuthCallback
      parameters:
        - name: provider
          required: true
          in: path
          description: Calendar provider handling callback
          schema:
            enum:
              - google
              - outlook
              - icloud
              - caldav
              - exchange
              - smart-we
              - ics
            type: string
        - name: code
          required: false
          in: query
          description: OAuth authorization code from provider
          schema:
            type: string
        - name: state
          required: false
          in: query
          description: OAuth state parameter for security
          schema:
            type: string
        - name: error
          required: false
          in: query
          description: Error code if OAuth failed
          schema:
            type: string
      responses:
        '200':
          description: ''
        '302':
          description: Redirects to success or error URL

````