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

# Revoke an API key

> Admin only. Cancels one of the account's keys.



## OpenAPI

````yaml /openapi.json delete /admin/keys/{ApiKeyId}
openapi: 3.0.0
info:
  title: NestAPI
  version: '1.0'
servers:
  - description: Staging
    url: https://dev.api.nestapi.com
security: []
tags:
  - name: account
    description: API key and account management
  - name: ApiAdmin
  - name: auth
  - name: fairness
    description: >-
      Per-customer nesting-minutes fairness config, weights and usage (requires
      an Admin API key)
  - name: importer
  - name: nesting
    description: Submit nesting jobs, retrieve results and exports
  - name: public
    description: Health check and public utility endpoints
paths:
  /admin/keys/{ApiKeyId}:
    parameters:
      - $ref: '#/components/parameters/Accept'
    delete:
      tags:
        - account
      summary: Revoke an API key
      description: Admin only. Cancels one of the account's keys.
      operationId: RevokeApiKey
      parameters:
        - name: ApiKeyId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClientKey'
      deprecated: false
      security:
        - Bearer: []
components:
  parameters:
    Accept:
      name: Accept
      in: header
      description: Accept Header
      required: true
      schema:
        type: string
        enum:
          - application/json
  schemas:
    ClientKey:
      title: ClientKey
      properties:
        ApiKey:
          type: string
        ClientRef:
          type: string
        Expired:
          type: boolean
          nullable: false
        IsActive:
          type: boolean
          nullable: false
        Expires:
          type: string
          format: date-time
        CancelledDate:
          type: string
          format: date-time
        Parallelism:
          type: integer
          format: int32
          nullable: false
        IsTrial:
          type: boolean
          nullable: false
        KeyType:
          type: string
      description: ClientKey
      type: object
  securitySchemes:
    Bearer:
      type: apiKey
      name: Authorization
      in: header

````