Calendly

Handle Calendly OAuth callback

OAuth callback endpoint that exchanges the authorization code for tokens, validates the coach's Calendly plan (Standard+ required), stores tokens, creates a webhook subscription, and auto-selects event types if only one exists.

get/api/calendly/callback

Request

  • Base URL
    https://api.production.yourmedley.com
  • Auth
    HTTP bearer

Query parameters

codestring required

Authorization code from Calendly

statestring required

State parameter containing coach profile ID

Response

Calendly connected successfully

successboolean
dataCoachCalendlySettings (unresolved $ref)

Changes

No recorded changes to this operation across all 1 revision of this API.