Skip to content

ApiCheckInput

Defined in: clients/checkly-client/dist/index.d.mts:174

What to send to Checkly to create or update an API check.

optional activated?: boolean

Defined in: clients/checkly-client/dist/index.d.mts:182

Whether the check runs on its schedule.


optional frequency?: number

Defined in: clients/checkly-client/dist/index.d.mts:178

Minutes between runs. One of Checkly’s fixed frequency values (0, 1, 2, 5, 10, 15, 30, 60, 120, 180, 360, 720, 1440). Defaults to 10.


optional locations?: string[]

Defined in: clients/checkly-client/dist/index.d.mts:180

Checkly datacenter region ids (e.g. “us-east-1”). Defaults to the account’s configured default.


name: string

Defined in: clients/checkly-client/dist/index.d.mts:176

The check’s display name.


request: ApiCheckRequest

Defined in: clients/checkly-client/dist/index.d.mts:197

The request the check sends.


optional shouldFail?: boolean

Defined in: clients/checkly-client/dist/index.d.mts:195

Inverts pass/fail: when true, a response status >= 400 counts as passing (and a < 400 status fails) before assertions are even evaluated. Required for any check whose “healthy” response is itself an HTTP error status (e.g. asserting a 404/405 on an endpoint that should reject certain requests) — without it, Checkly’s platform-level retry/failure classification treats any 4xx/5xx as a failure regardless of matching assertions. Defaults to false.


optional tags?: string[]

Defined in: clients/checkly-client/dist/index.d.mts:184

Tags attached to the check.