# FetchFactsOptions

Defined in: facts.ts:112

## Properties

### apiBase

> **apiBase**: `string`

Defined in: facts.ts:113

***

### apiBaseProvenance?

> `optional` **apiBaseProvenance?**: `"explicit"` \| `"key"`

Defined in: facts.ts:122

Where `apiBase` came from; see `FetchFragmentsOptions.apiBaseProvenance`. Defaults to "explicit".

***

### campaignId?

> `optional` **campaignId?**: `string`

Defined in: facts.ts:117

***

### fetchImpl?

> `optional` **fetchImpl?**: (`input`, `init?`) => `Promise`\<`Response`\>

Defined in: facts.ts:132

Test seam; defaults to the platform fetch.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch)

#### Parameters

##### input

`URL` \| `RequestInfo`

##### init?

`RequestInit`

#### Returns

`Promise`\<`Response`\>

***

### organizationId

> **organizationId**: `string`

Defined in: facts.ts:114

***

### products?

> `optional` **products?**: readonly `string`[]

Defined in: facts.ts:120

Product ids or handles, at most 20. Without them, a campaign's or surface's own products.

***

### publishableKey?

> `optional` **publishableKey?**: `string`

Defined in: facts.ts:116

`st_pk_…`. Sent as `Authorization: Bearer <key>`.

***

### signal?

> `optional` **signal?**: `AbortSignal`

Defined in: facts.ts:123

***

### surfaceId?

> `optional` **surfaceId?**: `string`

Defined in: facts.ts:118

***

### timeoutMs?

> `optional` **timeoutMs?**: `number`

Defined in: facts.ts:130

How long the call waits for the whole answer, in milliseconds. Default
10000. Past it the request is stopped and the call resolves with
`reason: "timeout"`. `0` or `Infinity` waits for as long as the
connection stays open.
