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

> Accept or reject a consent request. Accepts a browser session only; returns where the browser goes next.



## OpenAPI

````yaml /api-reference/openapi.json post /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:
    post:
      tags:
        - v1
        - protected
        - oauth-consent
      summary: Oauth Consent Decide
      description: >-
        Accept or reject a consent request. Accepts a browser session only;
        returns where the browser goes next.
      operationId: oauth_consent_decide_v1_oauth_consent_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OAuthConsentDecision'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthConsentRedirect'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    OAuthConsentDecision:
      additionalProperties: false
      properties:
        challenge:
          title: Challenge
          type: string
        action:
          enum:
            - accept
            - reject
          title: Action
          type: string
        workspaces:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Workspaces
          description: >-
            Slugs or ids of the workspaces an `mcp` grant reaches; at least one
            to accept one.
      required:
        - challenge
        - action
      title: OAuthConsentDecision
      type: object
    OAuthConsentRedirect:
      properties:
        redirect_to:
          title: Redirect To
          type: string
      required:
        - redirect_to
      title: OAuthConsentRedirect
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      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.