Implement Calendly API v2 OAuth 2.0 authorization code flow for multi-tenant apps

domain: developer.calendly.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Register an OAuth application in the Calendly developer portal to obtain a client_id and client_secret; set an HTTPS redirect_uri for production (localhost HTTP is permitted only in sandbox).
  2. Redirect users to the authorization endpoint: GET https://auth.calendly.com/oauth/authorize with query params client_id, response_type=code, and redirect_uri; the authorization code returned in the redirect expires after 10 minutes.
  3. Exchange the code for tokens via POST https://auth.calendly.com/oauth/token with grant_type=authorization_code, client_id, client_secret, code, and redirect_uri in the request body.
  4. Store the returned access_token and refresh_token securely; use the access_token as a Bearer token in the Authorization header for all API calls to api.calendly.com.
  5. Refresh tokens by POSTing to https://auth.calendly.com/oauth/token with grant_type=refresh_token and the stored refresh_token before the access token expires.

Known gotchas

Related routes

Create a single-use scheduling link for a Calendly event type via API v2
developer.calendly.com · 5 steps · unrated
Cancel a Calendly scheduled event via API v2 and route guests through the reschedule URL flow
developer.calendly.com · 5 steps · unrated
Implement OAuth 2.0 authorization code flow with PKCE for a public client
oauth.net · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans