---
title: "Initiate Calendly OAuth flow"
method: GET
path: "/api/calendly/connect"
tags: ["Calendly"]
---

# Initiate Calendly OAuth flow

`GET /api/calendly/connect`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/api/calendly/connect`
- Auth: HTTP bearer

Returns the Calendly authorization URL for the logged-in coach to begin OAuth connection

## Response `200`

Authorization URL returned

- object
  - `success` boolean
  - `data` object
    - `authorization_url` string, uri

## Other responses

- `401`: Authentication required
- `404`: Coach profile not found

---

[API](https://skmtc.dev/withmedley/apis/medley-api.md) - [All operations](https://skmtc.dev/withmedley/apis/medley-api/llms.txt) - [OpenAPI document](https://skmtc.dev/withmedley/apis/medley-api/revisions/40aaac5ca6bd?raw)
