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

# List Discovery Jobs

> This endpoint retrieves a list of all URL discovery jobs for the user.

## GET /discovery

This endpoint returns a list of all URL discovery jobs that have been initiated by the authenticated user.

### Query Parameters

<ParamField query="status" type="string">
  Filter by status: `pending`, `processing`, `completed`, or `failed`.
</ParamField>

<ParamField query="limit" type="number" default="20">
  Number of results per page (max 100).
</ParamField>

### Response

<ResponseField name="jobs" type="array">
  An array of discovery job objects.

  <Expandable title="job properties">
    <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">
      Discovery method: `full`, `sitemap`, or `crawl`.
    </ResponseField>

    <ResponseField name="status" type="string">
      Current status of the job.
    </ResponseField>

    <ResponseField name="urlsFound" type="number">
      Number of URLs discovered.
    </ResponseField>

    <ResponseField name="createdAt" type="string">
      ISO 8601 timestamp of job creation.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="total" type="number">
  Total number of discovery jobs.
</ResponseField>

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

  ```bash cURL (Filtered) theme={null}
  curl -X GET "https://api.llmgenerator.com/api/v1/discovery?status=completed&limit=10" \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```
</RequestExample>

<ResponseExample>
  ```json Success (200) theme={null}
  {
    "jobs": [
      {
        "id": "550e8400-e29b-41d4-a716-446655440000",
        "url": "https://example.com",
        "type": "full",
        "status": "completed",
        "urlsFound": 47,
        "createdAt": "2026-01-20T10:00:00.000Z"
      },
      {
        "id": "660e8400-e29b-41d4-a716-446655440001",
        "url": "https://another-example.com",
        "type": "sitemap",
        "status": "processing",
        "urlsFound": 12,
        "createdAt": "2026-01-21T11:00:00.000Z"
      }
    ],
    "total": 2
  }
  ```
</ResponseExample>
