> ## Documentation Index
> Fetch the complete documentation index at: https://baileys.wiki/llms.txt
> Use this file to discover all available pages before exploring further.

# URLGenerationOptions

> Type Alias URLGenerationOptions in the Baileys API.

> **URLGenerationOptions**: `object`

Defined in: [src/Utils/link-preview.ts:15](https://github.com/WhiskeySockets/Baileys/blob/master/src/Utils/link-preview.ts#L15)

## Type declaration

### fetchOpts

> **fetchOpts**: `object`

#### fetchOpts.headers?

> `optional` **headers**: `HeadersInit`

#### fetchOpts.proxyUrl?

> `optional` **proxyUrl**: `string`

#### fetchOpts.timeout

> **timeout**: `number`

Timeout in ms

### logger?

> `optional` **logger**: `ILogger`

### thumbnailWidth

> **thumbnailWidth**: `number`

### uploadImage?

> `optional` **uploadImage**: [`WAMediaUploadFunction`](/api-reference/type-aliases/WAMediaUploadFunction)
