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

# Revoke API Key

> Immediately invalidates the key. Cannot be undone.



## OpenAPI

````yaml PATCH /api-keys/{apiKeyId}/revoke
openapi: 3.0.3
info:
  title: Echo API
  description: |
    Echo is a voice notification platform. Use your API key (returned on signup)
    in the `x-api-key` header for all `/v1/*` endpoints.

    The API key implicitly scopes every request to your project and business —
    no need to pass IDs in the URL.
  version: 1.0.0
servers:
  - url: https://api.meetecho.ai/v1
    description: Production
security: []
tags:
  - name: Auth
    description: Signup, login, token refresh
  - name: Customers
    description: Manage customers within your project
  - name: Agents
    description: Manage reusable voice agents
  - name: Notifications
    description: Trigger and inspect outbound calls
  - name: API Keys
    description: Create and revoke API keys for your project
  - name: Project
    description: Inspect and configure your project settings
  - name: Webhook Endpoints
    description: >-
      Create and manage webhook endpoints — each with its own URL, event
      subscriptions, and signing secret
  - name: Delivery Logs
    description: >-
      Inspect delivery history, per-attempt details, and manually retry failed
      deliveries
paths:
  /api-keys/{apiKeyId}/revoke:
    patch:
      tags:
        - API Keys
      summary: Revoke API key
      description: Immediately invalidates the key. Cannot be undone.
      parameters:
        - name: apiKeyId
          in: path
          required: true
          schema:
            type: string
            format: uuid
          example: 7a4d3ce4-787f-73ec-7a87-4f45a4fd93c4
      responses:
        '200':
          description: Key revoked
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiKey'
              example:
                id: 7a4d3ce4-787f-73ec-7a87-4f45a4fd93c4
                name: production
                key_prefix: echo_6f437a610fb
                status: revoked
                created_at: '2026-03-18T15:03:15.483Z'
                updated_at: '2026-03-18T18:00:00.000Z'
        '404':
          description: Not found
      security:
        - ApiKey: []
components:
  schemas:
    ApiKey:
      type: object
      properties:
        id:
          type: string
          format: uuid
          example: 7a4d3ce4-787f-73ec-7a87-4f45a4fd93c4
        name:
          type: string
          example: production
        key_prefix:
          type: string
          example: echo_6f437a610fb
        status:
          type: string
          enum:
            - active
            - revoked
          example: active
        created_at:
          type: string
          format: date-time
          example: '2026-03-18T15:03:15.483Z'
        updated_at:
          type: string
          format: date-time
          example: '2026-03-18T15:03:15.483Z'
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: 'Echo API key — format: `echo_<64 hex chars>`. Returned once on signup.'

````