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

# Get Discovery Status

> This endpoint retrieves the status of a discovery job.

## GET /discovery/{discoveryId}

This endpoint returns the current status and details of a URL discovery job.

### Path Parameters

<ParamField path="discoveryId" type="string" required>
  The ID of the discovery job.
</ParamField>

### Response

<ResponseField name="id" type="string">
  The unique identifier for the discovery job.
</ResponseField>

<ResponseField name="url" type="string">
  The target URL for the discovery.
</ResponseField>

<ResponseField name="type" type="string">
  The discovery method used: `full`, `sitemap`, or `crawl`.
</ResponseField>

<ResponseField name="status" type="string">
  The current status: `pending`, `processing`, `completed`, or `failed`.
</ResponseField>

<ResponseField name="urlsFound" type="number">
  The number of URLs discovered so far.
</ResponseField>

<ResponseField name="createdAt" type="string">
  ISO 8601 timestamp of when the job was created.
</ResponseField>

<ResponseField name="completedAt" type="string">
  ISO 8601 timestamp of when the job completed (if applicable).
</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>
