Get Authorization Code
The Authorization Code is a temporary code that your client exchanges for an access token.
PKCE flow (required)
Every OAuth app must use PKCE conforming to RFC 7636, with the S256 method. If the request does not include a code_challenge, it fails. For more information, see this guide. For a JavaScript example, see pkce-vanilla-js.
To receive an Authorization Code:
- Generate a
CODE_VERIFIER - Build a
CODE_CHALLENGE - Redirect the user to Calendly’s authorization page with the
client_id,redirect_uri, andcode_challengereplaced with your application’sclient_id,redirect_uri, and thecode_challengegenerated 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:
Query parameters
client_id
The ID provided by Calendly for the web application
response_type
The response type (which is always “code”)
Allowed values:
redirect_uri
The redirect URI for your OAuth application
code_challenge_method
The PKCE code challenge method. Use S256.
code_challenge
The PKCE code challenge, built from your code verifier with SHA-256. Required for every app.
Response
OK