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

# Approve Authorization Request

> Approve a pending authorization request as the signed-in user. The grant can never exceed the approving user's organization role.



## OpenAPI

````yaml /openapi.json post /v1/orgs/{orgId}/agent-grants/authorization-requests/{requestId}/approve
openapi: 3.1.0
info:
  title: Korve API
  version: 0.1.0
  description: >-
    Typed control plane for deploying applications and explicitly provisioning
    their managed infrastructure.
servers:
  - url: https://api.korve.dev
security: []
paths:
  /v1/orgs/{orgId}/agent-grants/authorization-requests/{requestId}/approve:
    post:
      tags:
        - agentAuth
      summary: Approve Authorization Request
      description: >-
        Approve a pending authorization request as the signed-in user. The grant
        can never exceed the approving user's organization role.
      operationId: agentAuth.approveAuthorizationRequest
      parameters:
        - name: orgId
          in: path
          required: true
          schema:
            type: string
          description: The organization's id (UUID) or slug — either form is accepted.
        - name: requestId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        x-korve-max-bytes: 1048576
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
      responses:
        '200':
          description: >-
            One-time authorization code and exact client state bound to the
            redirect.
          content:
            application/json:
              schema:
                type: object
                properties:
                  redirectUri:
                    type: string
                    format: uri
                  code:
                    type: string
                    description: One-time code; never persisted in plaintext.
                  state:
                    type: string
                required:
                  - redirectUri
                  - code
                  - state
        '404':
          description: Unknown, expired, consumed, or cross-organization request.
      security:
        - session: []
components:
  securitySchemes:
    session:
      type: apiKey
      in: cookie
      name: korve.session_token

````