DELETE /api-keys/
API 키를 영구 폐기·삭제합니다. 폐기 후 해당 키로는 더 이상 요청 인증을 할 수 없습니다.현재 요청에 사용 중인 API 키는 폐기할 수 없습니다.
경로 매개변수
string
필수
폐기할 API 키 ID입니다.
응답
boolean
폐기 성공 여부입니다.
string
상태 메시지입니다.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl -X DELETE https://api.llmgenerator.com/api/v1/api-keys/llm_1706123456_abc123def456 \
-H "Authorization: Bearer YOUR_API_KEY"
const response = await fetch(
'https://api.llmgenerator.com/api/v1/api-keys/llm_1706123456_abc123def456',
{
method: 'DELETE',
headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
}
);
{
"success": true,
"message": "API key revoked successfully"
}
{
"message": "Cannot revoke the API key currently being used"
}
{
"message": "API key not found"
}
{
"message": "Access denied to this API key"
}
API 키를 폐기(삭제)하는 엔드포인트입니다.
curl -X DELETE https://api.llmgenerator.com/api/v1/api-keys/llm_1706123456_abc123def456 \
-H "Authorization: Bearer YOUR_API_KEY"
const response = await fetch(
'https://api.llmgenerator.com/api/v1/api-keys/llm_1706123456_abc123def456',
{
method: 'DELETE',
headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
}
);
{
"success": true,
"message": "API key revoked successfully"
}
{
"message": "Cannot revoke the API key currently being used"
}
{
"message": "API key not found"
}
{
"message": "Access denied to this API key"
}
curl -X DELETE https://api.llmgenerator.com/api/v1/api-keys/llm_1706123456_abc123def456 \
-H "Authorization: Bearer YOUR_API_KEY"
const response = await fetch(
'https://api.llmgenerator.com/api/v1/api-keys/llm_1706123456_abc123def456',
{
method: 'DELETE',
headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
}
);
{
"success": true,
"message": "API key revoked successfully"
}
{
"message": "Cannot revoke the API key currently being used"
}
{
"message": "API key not found"
}
{
"message": "Access denied to this API key"
}
이 페이지가 도움이 되었나요?