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

# Revoke an API key

> Revokes a key. Repeating the call for an already revoked key succeeds. Decisions already accepted keep processing. An unknown key, a key belonging to another account, and a key past its retention period all return the same `404`.



## OpenAPI

````yaml /api-reference/openapi.yaml delete /v1/api-keys/{key_id}
openapi: 3.1.0
info:
  title: Tazo API
  version: 0.1.0
  description: >-
    Turn spoken audio into typed decisions. Send audio and questions, and get
    probability-backed answers.
servers:
  - url: https://api.tazolabs.com
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Decisions
  - name: Models
  - name: API keys
  - name: Health
paths:
  /v1/api-keys/{key_id}:
    delete:
      tags:
        - API keys
      summary: Revoke an API key
      description: >-
        Revokes a key. Repeating the call for an already revoked key succeeds.
        Decisions already accepted keep processing. An unknown key, a key
        belonging to another account, and a key past its retention period all
        return the same `404`.
      operationId: revokeApiKey
      parameters:
        - name: key_id
          in: path
          required: true
          description: The key `id` from the create or list response.
          schema:
            type: string
      responses:
        '204':
          description: The key is revoked.
          headers:
            Cache-Control:
              $ref: '#/components/headers/NoStore'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/RequiresLogin'
        '404':
          description: The key was not found (`api_key_not_found`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          $ref: '#/components/responses/KeysUnavailable'
      security:
        - accessToken: []
components:
  headers:
    NoStore:
      description: Always `no-store`.
      schema:
        type: string
        enum:
          - no-store
  responses:
    Unauthorized:
      description: >-
        The credential is missing (`missing_access_token`) or invalid
        (`invalid_access_token`, `invalid_api_key`).
      headers:
        WWW-Authenticate:
          schema:
            type: string
            enum:
              - Bearer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RequiresLogin:
      description: >-
        An API key was used to manage keys
        (`api_key_management_requires_login`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    KeysUnavailable:
      description: >-
        API keys are not configured (`api_keys_not_configured`), sign-in is not
        configured (`authentication_not_configured`), or key storage is
        unavailable (`api_key_service_unavailable`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
            - retryable
          properties:
            code:
              type: string
              description: Stable machine-readable code. Branch on this, not `message`.
              example: model_not_found
            message:
              type: string
              example: Unknown model. Choose 'tazo-large' or 'tazo-small'.
            retryable:
              type: boolean
              description: Whether repeating the same request can succeed.
        request_id:
          type: string
          description: Present on `decision_pending` responses.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: An API key (`tazo_sk_...`). Also accepts a sign-in access token.
    accessToken:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: A signed-in user's OIDC access token. Required to manage API keys.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.