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

# Oauth Consent

> The consent request a signed-in user is asked to decide. Accepts a browser session only.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/oauth/consent
openapi: 3.1.0
info:
  description: >-
    Modular and extensible framework for building AI agents. This API requires
    JWT Bearer token authentication for most endpoints. Include your JWT token
    in the Authorization header. Public endpoints include /, /health, /docs,
    /redoc, and /openapi.json.
  title: AgentArea API
  version: 0.2.0
servers: []
security:
  - bearer: []
paths:
  /v1/oauth/consent:
    get:
      tags:
        - v1
        - protected
        - oauth-consent
      summary: Oauth Consent
      description: >-
        The consent request a signed-in user is asked to decide. Accepts a
        browser session only.
      operationId: oauth_consent_v1_oauth_consent_get
      parameters:
        - in: query
          name: challenge
          required: true
          schema:
            title: Challenge
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthConsentResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    OAuthConsentResponse:
      description: >-
        A consent request of this API's authorization server: the client, and
        what accepting grants it. `api` reaches the whole account and is granted
        only to first-party clients; `mcp` reaches MCP in one workspace the user
        picks.
      properties:
        client:
          $ref: '#/components/schemas/OAuthConsentClient'
        redirect_uri:
          description: >-
            Where accepting sends the authorization code; empty when the request
            names none and the client registered several.
          title: Redirect Uri
          type: string
        first_party:
          title: First Party
          type: boolean
        access:
          enum:
            - mcp
            - api
          title: Access
          type: string
        scopes:
          items:
            type: string
          title: Scopes
          type: array
      required:
        - client
        - redirect_uri
        - first_party
        - access
        - scopes
      title: OAuthConsentResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    OAuthConsentClient:
      properties:
        client_id:
          title: Client Id
          type: string
        client_name:
          title: Client Name
          type: string
        client_uri:
          title: Client Uri
          type: string
        logo_uri:
          title: Logo Uri
          type: string
        redirect_uris:
          items:
            type: string
          title: Redirect Uris
          type: array
      required:
        - client_id
        - client_name
        - client_uri
        - logo_uri
        - redirect_uris
      title: OAuthConsentClient
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    bearer:
      bearerFormat: JWT
      description: JWT Bearer token for authentication
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.