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

# Revoke an API key

> Marks the key revoked (it stops working immediately; not undoable). 404 if the key is not in this workspace. Admin of that workspace or super-admin.

**Minimum role:** `admin` (`x-min-role`). **Destructive:** `true` (`x-destructive`).



## OpenAPI

````yaml /openapi.json post /workspaces/{ws_id}/api-keys/{key_id}/revoke
openapi: 3.0.3
info:
  title: Sales Sequencer API
  version: '1'
  description: >-
    Every Sales Sequencer action over HTTP. Each call runs as the API key's
    creator, with that user's role, in the key's workspace. Auth: X-API-Key
    header.
servers:
  - url: https://api.salessequencer.com/api/v1
security:
  - key: []
paths:
  /workspaces/{ws_id}/api-keys/{key_id}/revoke:
    post:
      tags:
        - API keys
      summary: Revoke an API key
      description: >-
        Marks the key revoked (it stops working immediately; not undoable). 404
        if the key is not in this workspace. Admin of that workspace or
        super-admin.


        **Minimum role:** `admin` (`x-min-role`). **Destructive:** `true`
        (`x-destructive`).
      operationId: workspaces_revoke_api_key
      parameters:
        - in: path
          name: ws_id
          required: true
          schema:
            type: integer
        - in: path
          name: key_id
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: Redirect; flash 'API key revoked.'
components:
  securitySchemes:
    key:
      in: header
      name: X-API-Key
      type: apiKey

````

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