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

# Revoke an API key

> Revoke a key. Console session only.

The key stops working at once. Requests with it answer 401.


## OpenAPI

````yaml openapi.json DELETE /keys/{key_id}
openapi: 3.1.0
info:
  title: NextIntent API
  version: 1.0.0
  description: >-
    Websites, switches, the facts sheet and API keys, per account. Authenticate
    with an API key (ni_live_...) or a console session as a Bearer token. A key
    is account-wide or bound to one website; a bound key sees only that website
    and cannot create or delete websites.
servers:
  - url: https://api.nextintent.ai/v1
security:
  - bearer: []
paths:
  /keys/{key_id}:
    delete:
      summary: Revoke an API key (console session only)
      parameters:
        - name: key_id
          in: path
          required: true
          schema:
            type: string
          description: The key id
      responses:
        '204':
          description: Revoked
        '404':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer

````