# Start an authorization code flow

Starts OAuth2 Authorization Code Flow. The resource owner will be authenticated and be presented with the third-party application access request.

Endpoint: GET /zephr/oauth2
Version: 2026-10-01
Security: CookieBlaizeSession, JwtQuery, JwtHeaderXBlaizeJwt, JwtHeaderXZephrJwt, JwtBearer, JwtCookie

## Security:

  - `CookieBlaizeSession` (unknown)
    apiKey in cookie blaize_session

  - `JwtQuery` (unknown)
    apiKey in query jwt

  - `JwtHeaderXBlaizeJwt` (unknown)
    apiKey in header x-blaize-jwt

  - `JwtHeaderXZephrJwt` (unknown)
    apiKey in header x-zephr-jwt

  - `JwtBearer` (unknown)
    http bearer JWT

  - `JwtCookie` (unknown)
    apiKey in cookie blaize_jwt

## Query parameters:

  - `client_id` (string, required)
    Zephr Site Oauth2 Client ID.

  - `response_type` (string, required)
    Must be set to `code`.

  - `redirect_uri` (string, required)
    Client's redirection endpoint. Must be an absolute URI.

  - `scope` (string, required)
    The scope of the access request.

  - `state` (string, required)
    An opaque value used by the client to maintain state between the request and callback.

## Response 302:

  - `302` (unknown)
    Found

## Response 302 headers:

  - `Location` (string)

