メインコンテンツへスキップ

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 キーを恒久的に失効させ削除します。失効後は認証に使用できません。
この操作は取り消せません。キーを失効すると復旧できません。
現在のリクエストに使用している API キーは失効できません。

パスパラメーター

keyId
string
必須
失効させる API キーの 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"
}