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

# Revoke Grant

> Revoke a grant and all of its access and refresh tokens. Members may revoke their own grants; admins may revoke any grant in the organization.



## OpenAPI

````yaml /openapi.json delete /v1/orgs/{orgId}/agent-grants/{grantId}
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/{grantId}:
    delete:
      tags:
        - agentAuth
      summary: Revoke Grant
      description: >-
        Revoke a grant and all of its access and refresh tokens. Members may
        revoke their own grants; admins may revoke any grant in the
        organization.
      operationId: agentAuth.revokeGrant
      parameters:
        - name: orgId
          in: path
          required: true
          schema:
            type: string
          description: The organization's id (UUID) or slug — either form is accepted.
        - name: grantId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Grant revoked, idempotently.
          content:
            application/json:
              schema:
                type: object
                properties:
                  revokedAt:
                    type: string
                    format: date-time
                required:
                  - revokedAt
        '404':
          description: No visible grant in this organization.
      security:
        - session: []
components:
  securitySchemes:
    session:
      type: apiKey
      in: cookie
      name: korve.session_token

````