> ## 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.

# Dynamic client registration

> Register a client dynamically (RFC 7591). Available only when Dynamic
Client Registration is enabled on the app. Public but rate-limited by
IP. Redirect URIs are validated against the app's allowlist.




## OpenAPI

````yaml post /v1/session/oauth/register
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/register:
    post:
      tags:
        - OAuth Server
      summary: Dynamic client registration
      description: |
        Register a client dynamically (RFC 7591). Available only when Dynamic
        Client Registration is enabled on the app. Public but rate-limited by
        IP. Redirect URIs are validated against the app's allowlist.
      operationId: oauthRegisterClient
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OAuthDCRRegisterRequest'
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthDCRRegisterResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthError'
        '403':
          description: Forbidden — dynamic client registration is not enabled for this app.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthError'
      security: []
components:
  schemas:
    OAuthDCRRegisterRequest:
      type: object
      description: RFC 7591 dynamic client registration request.
      properties:
        client_name:
          type: string
          examples:
            - Example MCP client
        redirect_uris:
          type: array
          items:
            type: string
          examples:
            - - https://claude.ai/api/mcp/auth_callback
        scope:
          type: string
          description: Space-delimited requested scopes.
          examples:
            - mcp:read
        grant_types:
          type: array
          items:
            type: string
          examples:
            - - authorization_code
        response_types:
          type: array
          items:
            type: string
          examples:
            - - code
        token_endpoint_auth_method:
          type: string
          examples:
            - none
      required:
        - client_name
        - redirect_uris
    OAuthDCRRegisterResponse:
      type: object
      description: RFC 7591 client information response.
      properties:
        client_id:
          type: string
          examples:
            - oac_01jqebhswje1ka1z7ahr9rfsgt
        client_id_issued_at:
          type: integer
          format: int64
          examples:
            - 1718000000
        client_name:
          type: string
          examples:
            - Example MCP client
        redirect_uris:
          type: array
          items:
            type: string
          examples:
            - - https://claude.ai/api/mcp/auth_callback
        scope:
          type: string
          examples:
            - mcp:read
        grant_types:
          type: array
          items:
            type: string
          examples:
            - - authorization_code
        response_types:
          type: array
          items:
            type: string
          examples:
            - - code
        token_endpoint_auth_method:
          type: string
          examples:
            - none
      required:
        - client_id
        - client_id_issued_at
        - client_name
        - redirect_uris
        - token_endpoint_auth_method
    OAuthError:
      type: object
      description: RFC 6749 §5.2 / RFC 7591 error response.
      properties:
        error:
          type: string
          examples:
            - invalid_grant
        error_description:
          type: string
      required:
        - error

````