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

# Revoke API Key

> Permanently revoke an API key. The key stops working immediately — any
requests using it will receive `401 Unauthorized`. This action is irreversible.




## OpenAPI

````yaml DELETE /api/admin/api-keys
openapi: 3.1.0
info:
  title: LogClaw API
  description: >
    LogClaw Cloud API for log ingestion, API key management, incident
    monitoring,

    and infrastructure health. All endpoints are authenticated via the

    `x-logclaw-api-key` header.


    Generate an API key from your project dashboard at

    [console.logclaw.ai](https://console.logclaw.ai) under **Settings → API
    Keys**.
  version: 1.0.0
  contact:
    name: LogClaw
    url: https://docs.logclaw.ai
servers:
  - url: https://otel.logclaw.ai
    description: LogClaw Cloud
security:
  - apiKey: []
tags:
  - name: Ingestion
    description: OTLP log ingestion
  - name: API Keys
    description: API key management
  - name: Bridge
    description: ETL pipeline health and configuration
  - name: Ticketing
    description: Incident management and runtime config
  - name: Infrastructure
    description: Cluster health monitoring
  - name: OpenSearch
    description: Log storage and search
paths:
  /api/admin/api-keys:
    delete:
      tags:
        - API Keys
      summary: Revoke API Key
      description: >
        Permanently revoke an API key. The key stops working immediately — any

        requests using it will receive `401 Unauthorized`. This action is
        irreversible.
      operationId: revokeApiKey
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - id
              properties:
                id:
                  type: string
                  description: The key ID to revoke
                  example: key_abc123
            example:
              id: key_abc123
      responses:
        '200':
          description: Key revoked
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                  revokedId:
                    type: string
              example:
                status: ok
                revokedId: key_abc123
        '401':
          description: Invalid or missing API key
        '404':
          description: Key not found
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-logclaw-api-key
      description: Your project API key (starts with `lc_proj_`)

````