Home

Authorization Code

An authorization code is part of the OAuth 2.0 authorization flow. When a user grants a third-party application permission to access their account on another platform, the platform issues a short-lived authorization code. The application then exchanges that code, along with its own credentials, for an access token it can use to make API requests. The code itself expires quickly and can only be used once.

This two-step process exists for security. Passing an access token directly in a URL exposes it to logging and browser history. The authorization code approach keeps the actual access token out of the URL entirely, reducing the risk of interception.

For developers building integrations, understanding the authorization code flow is foundational to connecting services securely. Most OAuth-based APIs, including those powering calendar integrations, payment connections, and SSO systems, use this pattern.