> ## 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.

# API 키 상세

> 특정 API 키의 상세 정보를 반환하는 엔드포인트입니다.

## GET /api-keys/{keyId}

단일 API 키의 상세 정보를 반환합니다. 보안상 전체 키 값은 반환되지 않습니다.

### 경로 매개변수

<ParamField path="keyId" type="string" required>
  조회할 API 키 ID입니다.
</ParamField>

### 응답

<ResponseField name="id" type="string">
  API 키 고유 식별자입니다.
</ResponseField>

<ResponseField name="name" type="string">
  사용자가 지정한 키 이름입니다.
</ResponseField>

<ResponseField name="keyPreview" type="string">
  마스킹된 키 미리보기입니다(예: `llm_1234...abcd`).
</ResponseField>

<ResponseField name="isActive" type="boolean">
  키가 활성화되어 사용 가능한지 여부입니다.
</ResponseField>

<ResponseField name="lastUsedAt" type="string">
  마지막 사용 시각(ISO 8601)입니다.
</ResponseField>

<ResponseField name="createdAt" type="string">
  생성 시각(ISO 8601)입니다.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET https://api.llmgenerator.com/api/v1/api-keys/llm_1706123456_abc123def456 \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```

  ```javascript Node.js theme={null}
  const response = await fetch(
    'https://api.llmgenerator.com/api/v1/api-keys/llm_1706123456_abc123def456',
    {
      headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
    }
  );

  const key = await response.json();
  ```
</RequestExample>

<ResponseExample>
  ```json Success (200) theme={null}
  {
    "id": "llm_1706123456_abc123def456",
    "name": "Production Key",
    "keyPreview": "llm_1706...f456",
    "description": null,
    "permissions": [],
    "isActive": true,
    "lastUsedAt": "2026-01-20T15:30:00.000Z",
    "expiresAt": null,
    "createdAt": "2026-01-01T10:00:00.000Z"
  }
  ```

  ```json Not Found (404) theme={null}
  {
    "message": "API key not found"
  }
  ```

  ```json Forbidden (403) theme={null}
  {
    "message": "Access denied to this API key"
  }
  ```
</ResponseExample>
