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

# `DELETE /v1/control/api-keys/{key_id}`.

> # Errors

`401`, `403`, `404` when this tenant has no such key, and `503` when the
store cannot be reached.



## OpenAPI

````yaml /openapi.json delete /v1/control/api-keys/{key_id}
openapi: 3.1.0
info:
  title: Esectra API
  description: >-
    Transaction screening, identity verification, and wallet risk.


    Every create route accepts `Idempotency-Key`; replaying one returns the
    original record with `200` where the first call returned `201`. `POST
    /v1/transactions` requires the header, because a duplicated transaction is a
    duplicated financial record.
  license:
    name: proprietary
    identifier: proprietary
  version: 0.1.0
servers:
  - url: https://qa.esectra.com
    description: Esectra QA Documentation
security: []
paths:
  /v1/control/api-keys/{key_id}:
    delete:
      tags:
        - Control
      summary: '`DELETE /v1/control/api-keys/{key_id}`.'
      description: |-
        # Errors

        `401`, `403`, `404` when this tenant has no such key, and `503` when the
        store cannot be reached.
      operationId: revoke_handler
      parameters:
        - name: key_id
          in: path
          description: Key to revoke
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Revoked, or already revoked
        '403':
          description: The reviewer does not hold API_KEY_MANAGE
        '404':
          description: This tenant has no such key
        '503':
          description: A backing store could not be reached
      security:
        - session_cookie: []
components:
  securitySchemes:
    session_cookie:
      type: apiKey
      in: cookie
      name: esectra_session
      description: >-
        A signed-in reviewer's session. httpOnly and SameSite=Lax; set by `POST
        /v1/control/sessions` and only usable once the second factor is met.

````