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

# Decide consent request

> Approve or deny a pending consent request and get the URL to send the browser back to.



## OpenAPI

````yaml /openapi.json post /mcp/authorize/request/{requestId}
openapi: 3.1.0
info:
  title: Kaneo API
  version: 1.0.0
  description: Kaneo Project Management API - Manage projects, tasks, labels, and more
servers:
  - url: https://cloud.kaneo.app/api
    description: Kaneo API Server
security:
  - bearerAuth: []
paths:
  /mcp/authorize/request/{requestId}:
    post:
      tags:
        - MCP
      summary: Decide consent request
      description: >-
        Approve or deny a pending consent request and get the URL to send the
        browser back to.
      operationId: decideMcpAuthorizationRequest
      parameters:
        - schema:
            type: string
          required: true
          name: requestId
          in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                approved:
                  type: boolean
              required:
                - approved
      responses:
        '200':
          description: OAuth client redirect
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/McpAuthorizationDecision'
        '400':
          description: Invalid request or OAuth client
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthError'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthError'
        '403':
          description: Untrusted request origin
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthError'
        '404':
          description: Unknown or expired authorization request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthError'
components:
  schemas:
    McpAuthorizationDecision:
      type: object
      properties:
        redirect:
          type: string
          description: >-
            Where to send the browser next: back to the client with a code on
            approval, or with an error on denial.
      required:
        - redirect
    OAuthError:
      type: object
      properties:
        error:
          type: string
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key or session token (Bearer)

````