跳转到主要内容

Documentation Index

Fetch the complete documentation index at: https://docs.llmgenerator.com/llms.txt

Use this file to discover all available pages before exploring further.

DELETE /api-keys/

永久吊销并删除指定 API Key。吊销后无法再用于鉴权。
此操作不可恢复,吊销后密钥无法找回。
不能使用当前请求正在使用的 API Key 来吊销自身。

路径参数

keyId
string
必填
要吊销的 API Key ID。

响应

success
boolean
是否吊销成功。
message
string
状态说明。
curl -X DELETE https://api.llmgenerator.com/api/v1/api-keys/llm_1706123456_abc123def456 \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "success": true,
  "message": "API key revoked successfully"
}