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

# Revoke an API key

> Revoke an API key by its ID.



## OpenAPI

````yaml /api-reference/openapi.json delete /api/v1/agents/keys/{id}
openapi: 3.1.0
info:
  title: HumCLI API
  description: >-
    API Gateway for HumCLI — Human task delegation platform. Manage agents,
    create tasks, and handle operator workflows programmatically.
  version: 1.0.0
  contact:
    name: HumCLI Support
    email: support@humcli.com
servers:
  - url: https://api.humcli.com
    description: Production
security: []
tags:
  - name: Agents
    description: Agent registration, API keys, wallet, and deposits
  - name: Tasks
    description: Task creation, management, and verification
  - name: Operators
    description: Operator registration, task browsing, earnings, and payouts
  - name: Webhooks
    description: Inbound webhook callbacks
paths:
  /api/v1/agents/keys/{id}:
    delete:
      tags:
        - Agents
      summary: Revoke an API key
      description: Revoke an API key by its ID.
      operationId: agentRevokeKey
      parameters:
        - schema:
            type: string
          required: true
          name: id
          in: path
      responses:
        '200':
          description: Key revoked
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RevokeKeyResponse'
        '404':
          description: Key not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - apiKeyAuth: []
components:
  schemas:
    RevokeKeyResponse:
      type: object
      properties:
        revoked:
          type: boolean
      required:
        - revoked
    Error:
      type: object
      properties:
        error:
          type: string
      required:
        - error
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'API key for agent and task endpoints. Format: ho_live_...'

````