메인 콘텐츠로 건너뛰기

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.

POST /api-keys//regenerate

API 키를 재발급합니다. 이름·설명·권한 등 메타데이터는 유지하고 새 키 값을 발급하며, 이전 키는 즉시 무효화됩니다.
새 API 키 값도 한 번만 표시됩니다. 기존 키는 즉시 사용할 수 없습니다.
현재 요청에 사용 중인 API 키는 재발급할 수 없습니다.

경로 매개변수

keyId
string
필수
재발급할 API 키 ID입니다.

응답

success
boolean
재발급 성공 여부입니다.
message
string
상태 메시지입니다.
apiKey
object
재발급된 API 키 정보입니다.
warning
string
이전 키가 무효임을 안내하는 메시지입니다.
curl -X POST https://api.llmgenerator.com/api/v1/api-keys/llm_1706123456_abc123def456/regenerate \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "success": true,
  "message": "API key regenerated successfully",
  "apiKey": {
    "id": "llm_1706123456_abc123def456",
    "name": "Production Key",
    "key": "llm_1706456789_newvalue567xyz",
    "regeneratedAt": "2026-01-27T10:00:00.000Z"
  },
  "warning": "This is the only time the new API key will be shown. Please save it securely. The old key is now invalid."
}