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

> Revoke an API key. The key stops authenticating immediately; revoking an already-revoked key returns the same revocation time (idempotent).



## OpenAPI

````yaml /openapi.json delete /v1/orgs/{orgId}/api-keys/{keyId}
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}/api-keys/{keyId}:
    delete:
      tags:
        - apikeys
      summary: Revoke
      description: >-
        Revoke an API key. The key stops authenticating immediately; revoking an
        already-revoked key returns the same revocation time (idempotent).
      operationId: apikeys.revoke
      parameters:
        - name: orgId
          in: path
          required: true
          schema:
            type: string
          description: The organization's id (UUID) or slug — either form is accepted.
        - name: keyId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Key revoked (or already was).
          content:
            application/json:
              schema:
                type: object
                properties:
                  revokedAt:
                    type: string
                    format: date-time
                required:
                  - revokedAt
        '404':
          description: No such API key in this organization.
      security:
        - session: []
components:
  securitySchemes:
    session:
      type: apiKey
      in: cookie
      name: korve.session_token

````