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

# Revoke an API key



## OpenAPI

````yaml /api-reference/openapi.json delete /api/keys/{id}
openapi: 3.1.0
info:
  title: AnonAge API
  version: 1.0.0
  description: >-
    The AnonAge platform + integration API. Age-verify users without handling
    their identity documents (Verification / API keys / Usage), plus the account
    and KYC endpoints the AnonAge apps use (Auth / Users / KYC).


    All responses share the envelope `{ success, data?, message?, error?,
    errors? }`.
servers:
  - url: https://api.anonage.io
    description: Production (coming soon)
  - url: https://dev1api.anonage.io
    description: Development
security:
  - BearerAuth: []
tags:
  - name: Health
  - name: Auth
    description: Register, sign in, email verification, password reset.
  - name: Users
    description: Profile, password, email, account.
  - name: KYC
    description: Identity verification via Sumsub.
  - name: Verification
    description: Merchant age-verification sessions.
  - name: API keys
    description: Business keys for the integration API.
  - name: Usage
    description: Verification usage reporting.
  - name: Webhooks
    description: Inbound provider webhooks.
paths:
  /api/keys/{id}:
    delete:
      tags:
        - API keys
      summary: Revoke an API key
      operationId: revokeApiKey
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Revoked
        '404':
          $ref: '#/components/responses/Error'
components:
  responses:
    Error:
      description: Error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: string
        errors:
          type: array
          items: {}
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Account JWT from `/api/auth/login` — used for Users, KYC, key management
        and usage.

````