Skip to content

ChecklyClientOptions

Defined in: utils.ts:7

Options for createChecklyClient.

accountId: string

Defined in: utils.ts:11

The target Checkly account id. Every endpoint requires this.


optional baseUrl?: string

Defined in: utils.ts:13

Override base URL for testing. Defaults to https://api.checklyhq.com/v1


optional errors?: ErrorSink

Defined in: utils.ts:21

Reports transport failures and unexpected 5xx. Defaults to a no-op.


optional fetch?: (input, init?) => Promise<Response>

Defined in: utils.ts:15

Override fetch for testing. Defaults to globalThis.fetch.

string | URL | Request

RequestInit

Promise<Response>


optional logger?: Logger

Defined in: utils.ts:19

Structured logger for request/response diagnostics. Defaults to a no-op.


optional timeoutMs?: number

Defined in: utils.ts:17

Abort a request attempt that has not answered after this many milliseconds. Defaults to no limit. A write is never repeated, so it is also the whole wait for one.


token: string

Defined in: utils.ts:9

Checkly API key — sent as a Bearer token.