> ## Documentation Index
> Fetch the complete documentation index at: https://docs.prelude.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Get pending consent details

> Return the client name, redirect URI, and requested scopes your
consent screen should display for a pending authorization request.
Bound to the live session with an access token and a DPoP proof.




## OpenAPI

````yaml get /v1/session/oauth/pending
openapi: 3.1.1
info:
  title: Prelude Auth Frontend API
  version: 0.0.1
  description: The Prelude Frontend API for Authentication and Session Management
  contact:
    email: support@prelude.so
servers:
  - url: https://{appId}.session.prelude.dev
    description: Production server
    variables:
      appId:
        default: changeme
        description: The appID
security: []
tags:
  - name: Login OTP
    description: Login and step-up via OTP (phone or email)
  - name: Login Email Password
    description: Login via email and password
  - name: Login OAuth
    description: Login via OAuth providers
  - name: Login SAML
    description: Login via SAML 2.0 SSO connections (Okta, Google Workspace)
  - name: Login Finalize
    description: Finalize a login flow and create a session
  - name: Login Migration
    description: Migrate sessions from a legacy authentication system
  - name: Session
    description: Session refresh and revocation
  - name: Session Management
    description: Authenticated session and identifier management
  - name: Step-Up
    description: Step-up authentication flow
  - name: Well-Known
    description: Public key and authorization-server discovery endpoints
  - name: OAuth Server
    description: >-
      OAuth 2.0 authorization-server endpoints that let MCP clients and other
      third-party apps sign your users in
  - name: Password
    description: Password compliancy and change password
  - name: Passkey Login
    description: >-
      Primary-factor (passwordless) sign-in via WebAuthn discoverable
      credentials
  - name: Passkey Management
    description: >-
      Register / list / rename / delete the authenticated user's passkey
      credentials
paths:
  /v1/session/oauth/pending:
    get:
      tags:
        - OAuth Server
      summary: Get pending consent details
      description: |
        Return the client name, redirect URI, and requested scopes your
        consent screen should display for a pending authorization request.
        Bound to the live session with an access token and a DPoP proof.
      operationId: oauthPending
      parameters:
        - in: query
          name: oauth_req
          required: true
          description: >-
            The authorization request id (`oar_`-prefixed) from the `/authorize`
            redirect.
          schema:
            type: string
            examples:
              - oar_01jqebhswje1ka1z7ahr9rfsgt
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthPendingResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedError'
        '500':
          description: Internal Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalError'
      security:
        - accessTokenAuth: []
          dpopProofAuth: []
components:
  schemas:
    OAuthPendingResponse:
      type: object
      properties:
        client_id:
          type: string
          examples:
            - oac_01jqebhswje1ka1z7ahr9rfsgt
        client_name:
          type: string
          examples:
            - Example MCP client
        redirect_uri:
          type: string
          examples:
            - https://mcp.example.com/oauth/callback
        scopes:
          type: array
          items:
            type: string
          examples:
            - - mcp:read
      required:
        - client_id
        - client_name
        - redirect_uri
        - scopes
    BadRequestError:
      type: object
      properties:
        code:
          type: string
          enum:
            - bad_request
        type:
          type: string
          enum:
            - bad_request
    UnauthorizedError:
      type: object
      properties:
        code:
          type: string
          enum:
            - unauthorized
        type:
          type: string
          enum:
            - unauthorized
    InternalError:
      type: object
      properties:
        code:
          type: string
          enum:
            - internal
        type:
          type: string
          enum:
            - internal
  securitySchemes:
    accessTokenAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Access token obtained from session refresh
    dpopProofAuth:
      type: apiKey
      in: header
      name: DPoP
      description: |
        DPoP proof JWT (RFC 9449) bound to the calling session's key. Required
        alongside the access token on the OAuth login-UI endpoints
        (`/oauth/continue`, `/oauth/pending`, `/oauth/decision`). The Web SDK
        constructs and rotates this proof for you.

````