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

# 발견 상태 조회

> URL 발견 작업의 상태를 반환하는 엔드포인트입니다.

## GET /discovery/{discoveryId}

URL 발견 작업의 현재 상태와 세부 정보를 반환합니다.

### 경로 매개변수

<ParamField path="discoveryId" type="string" required>
  발견 작업 ID입니다.
</ParamField>

### 응답

<ResponseField name="id" type="string">
  발견 작업 고유 식별자입니다.
</ResponseField>

<ResponseField name="url" type="string">
  발견 대상 URL입니다.
</ResponseField>

<ResponseField name="type" type="string">
  사용된 발견 방식: `full`, `sitemap`, 또는 `crawl`입니다.
</ResponseField>

<ResponseField name="status" type="string">
  현재 상태: `pending`, `processing`, `completed`, 또는 `failed`입니다.
</ResponseField>

<ResponseField name="urlsFound" type="number">
  지금까지 발견된 URL 수입니다.
</ResponseField>

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

<ResponseField name="completedAt" type="string">
  완료 시각(ISO 8601, 해당 시)입니다.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET https://api.llmgenerator.com/api/v1/discovery/550e8400-e29b-41d4-a716-446655440000 \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```

  ```javascript Node.js theme={null}
  const response = await fetch(
    'https://api.llmgenerator.com/api/v1/discovery/550e8400-e29b-41d4-a716-446655440000',
    {
      headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
    }
  );

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

<ResponseExample>
  ```json Processing theme={null}
  {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "url": "https://example.com",
    "type": "full",
    "status": "processing",
    "urlsFound": 23,
    "createdAt": "2026-01-20T10:00:00.000Z",
    "completedAt": null
  }
  ```

  ```json Completed theme={null}
  {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "url": "https://example.com",
    "type": "sitemap",
    "status": "completed",
    "urlsFound": 47,
    "createdAt": "2026-01-20T10:00:00.000Z",
    "completedAt": "2026-01-20T10:05:00.000Z"
  }
  ```
</ResponseExample>
