Calendly logoCalendly logo

How to access Calendly data on behalf of authenticated users

Use Calendly’s API v2 to authenticate your app’s users with OAuth and access Calendly data on their behalf. To get started, follow the steps below.

  1. Authenticate with OAuth to register your app with Calendly

  2. To initiate the OAuth authorization flow, use the client_id you received via Lastpass and redirect your user to Get Authorization Code endpoint. Once the Calendly user grants access, their browser is redirected to your application's specified redirect_uri and the Authorization Code is passed inside the code query parameter.


    • This URL must be requested using a web browser.

    • The authorization code expires after 10 minutes.


    Example Request URL:

    Example Redirect URL:

  3. To retrieve the access token, make a POST request to Get Access Token endpoint. Use it to access Calendly resources on behalf of an authenticated user.


    • Access tokens expire after 2 hours.

    • Use a refresh token to get a new access token.

      • Refresh tokens don't expire until they are used.

  4. To test the access token, make a call to the Get current user endpoint.