> ## Documentation Index
> Fetch the complete documentation index at: https://mind-e.co/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Discover URLs

> Discover related URLs from a web source's domain.

Automatically discover related pages from the same domain as a web source. Useful for finding all pages to include in the knowledge base.

## Endpoint

```
POST /web-sources/{id}/discover
```

## Authentication

Required.

## Path parameters

<ParamField path="id" type="string" required>
  The web source ID.
</ParamField>

## Response

<ResponseField name="success" type="boolean" />

<ResponseField name="webSource" type="object">
  The web source with updated discovered URLs.
</ResponseField>

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

## Example

```bash theme={null}
curl -X POST https://api.mind-e.co/web-sources/ws-id-here/discover \
  -H "Authorization: Bearer sk_live_your_key_here"
```

### Response

```json theme={null}
{
  "success": true,
  "webSource": { "..." },
  "discoveredCount": 15
}
```

<Tip>
  After discovering URLs, review the list and remove any you don't want included. Then use [Train](/api-reference/web-sources/train) to process the content.
</Tip>
