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

# Completes OAuth consent (approve or deny)

> Completes OAuth consent (approve or deny). Browser session cookie and CSRF required; bearer tokens cannot call this endpoint.



## OpenAPI

````yaml /openapi.json post /oauth/authorize
openapi: 3.0.0
info:
  title: Braid
  version: '1.0'
servers:
  - url: http://localhost:8001/api
security: []
tags:
  - name: Admin
  - name: ApiKey
  - name: Auth
  - name: Calendar
  - name: Capture
  - name: Concerns
  - name: Dashboard
  - name: DataRequests
  - name: Device
  - name: Feedback
  - name: Graph
  - name: Health
  - name: Job
  - name: OAuth
  - name: Organisation
  - name: Realtime
  - name: Search
  - name: Session
  - name: Workshop
  - name: Workspace
paths:
  /oauth/authorize:
    post:
      tags:
        - OAuth
      summary: Completes OAuth consent (approve or deny)
      description: >-
        Completes OAuth consent (approve or deny). Browser session cookie and
        CSRF required; bearer tokens cannot call this endpoint.
      requestBody:
        content:
          application/json; charset=utf-8:
            schema:
              $ref: '#/components/schemas/AuthorizePostRequest'
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json; charset=utf-8:
              schema: {}
        '201':
          description: ''
          content:
            application/json; charset=utf-8:
              schema: {}
        '202':
          description: ''
        '204':
          description: ''
        '400':
          description: ''
          content:
            application/json; charset=utf-8:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: ''
          content:
            application/json; charset=utf-8:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: ''
          content:
            application/json; charset=utf-8:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: ''
          content:
            application/json; charset=utf-8:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: ''
          content:
            application/json; charset=utf-8:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '410':
          description: ''
          content:
            application/json; charset=utf-8:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '413':
          description: ''
          content:
            application/json; charset=utf-8:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '415':
          description: ''
          content:
            application/json; charset=utf-8:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: ''
          content:
            application/json; charset=utf-8:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: ''
          content:
            application/json; charset=utf-8:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: ''
          content:
            application/json; charset=utf-8:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '502':
          description: ''
          content:
            application/json; charset=utf-8:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: ''
          content:
            application/json; charset=utf-8:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    AuthorizePostRequest:
      type: object
      title: AuthorizePostRequest
      required:
        - client_id
        - redirect_uri
        - code_challenge
        - code_challenge_method
        - state
        - approved
        - csrf_token
      properties:
        client_id:
          type: string
        redirect_uri:
          type: string
        code_challenge:
          type: string
        code_challenge_method:
          type: string
        state:
          type: string
        approved:
          type: boolean
        scope:
          type: string
          description: >-
            Space-separated braid-desktop REST scopes. Allowed values:

            `transcripts:read`, `transcripts:write`, `meetings:read`,
            `meetings:write`,

            `workspaces:read`, `workspaces:write`, `context:write`. Omitted on
            consent

            defaults to the full braid-desktop grant set. Only
            `client_id=braid-desktop`

            may request these; MCP clients use tool-name scopes instead.
        resource:
          type: string
        workspace_ids:
          type: string
        csrf_token:
          type: string
    ErrorResponse:
      type: object
      title: ErrorResponse
      required:
        - success
        - message
      properties:
        success:
          type: boolean
        message:
          type: string

````

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