---
updatedAt: 2026-05-21T05:40:09.000Z
---

Fetch the complete documentation index at: https://docs.blockdaemon.com/llms.txt. Use this file to discover all available pages before exploring further. Append .md to any documentation page URL to get its markdown version.

# Delete API key

Deletes an API key by ID

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Sepior Threshold Security Module (TSM) Management API",
    "description": "Management API for the Threshold Security Module (TSM).\n\nThis API provides endpoints for monitoring and managing TSM nodes, including\nhealth checks, metrics, API key management, and authentication configuration.\n",
    "version": "1.0.0",
    "contact": {
      "name": "Blockdaemon/Sepior Support",
      "url": "https://blockdaemon.com/"
    },
    "license": {
      "name": "Proprietary"
    }
  },
  "servers": [
    {
      "url": "{server}",
      "description": "TSM Management API Server",
      "variables": {
        "server": {
          "default": "https://localhost:8080",
          "description": "Server URL"
        }
      }
    }
  ],
  "tags": [
    {
      "name": "API Keys",
      "description": "API key management operations"
    }
  ],
  "paths": {
    "/management/apikey/{apiKeyID}": {
      "delete": {
        "summary": "Delete API key",
        "description": "Deletes an API key by ID",
        "operationId": "deleteApiKey",
        "tags": [
          "API Keys"
        ],
        "parameters": [
          {
            "name": "apiKeyID",
            "in": "path",
            "description": "ID of the API key to delete",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "API key deleted successfully"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Error code"
          },
          "message": {
            "type": "string",
            "description": "Error message"
          },
          "details": {
            "type": "object",
            "description": "Additional error details"
          }
        },
        "required": [
          "code",
          "message"
        ]
      }
    },
    "responses": {
      "Unauthorized": {
        "description": "Unauthorized",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "NotFound": {
        "description": "Resource not found",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "InternalServerError": {
        "description": "Internal server error",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "APIKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key"
      }
    }
  },
  "security": [
    {
      "APIKeyAuth": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```