Get Authorization Code
Query parameters
The response type (which is always “code”)
The response type (which is always “code”)
The Authorization Code is a temporary code that your client exchanges for an access token. While this flow is supported, we recommend using the PKCE flow for all OAuth applications.
To receive user’s Access Token, have your app redirect the user to Calendly’s authorization page with the client_id and redirect_uri replaced with your application’s client_id and redirect_uri (see example below). Note that this url must be requested using a web browser.
When a user grants access, their browser is redirected to the specified redirect_uri, the Authorization Code is passed inside the code query parameter:
The flow for mobile or native applications requires PKCE conforming to the RFC 7636 specification. This flow is also recommended for web apps to mitigate against authorization code injection. For more information, see this guide. An example of a javascript implementation can be found here.
To receive an Authorization Code:
CODE_VERIFIERCODE_CHALLENGEclient_id, redirect_uri, and code_challenge replaced with your application’s client_id, redirect_uri, and the code_challenge generated in the step above (see example below). Note that this url must be requested using a web browser.After the user grants access, they will be redirected back to your app with the Authorization Code: