Skip to content

Watch methods: pause, replay, resume, rotate

The Watch Verbs pause, replay, resume, rotate as typed SDK methods, with inputs, result, refusals and an example.

Reference for Watch, one group of Watch methods.

Watch.pause

Pause stops a Watch delivering while its Events keep queuing; the platform pauses a Watch whose deliveries fail for three days. Verb page.

TypeScript
interface WatchVerbs {
  pause(input: WatchPauseInput, options?: SB.CallOptions): SB.Call<Watch>
}

Emits Watch.paused.

Inputs

InputTypeRequiredDescription
watchWatchrequiredThe Watch to pause.
reasontextWhy deliveries stop.

Returns

OutputTypeRequiredDescription
watchWatchrequiredThe paused Watch.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

TypeScript
import { $ } from 'startup-builder'

const watch = await $.Watch.pause({ watch: 'watch_9o4vCuR17L' })

Watch.replay

Replay redelivers a Watch’s Events from a chosen point, signed as they were the first time. Verb page.

TypeScript
interface WatchVerbs {
  replay(input: WatchReplayInput, options?: SB.CallOptions): SB.Call<Watch>
}

Emits Watch.replayed.

Inputs

InputTypeRequiredDescription
watchWatchrequiredThe Watch to replay.
fromdatetimerequiredWhere the replay starts.

Returns

OutputTypeRequiredDescription
watchWatchrequiredThe Watch, replaying.

Refuses when

CheckErrorFixThen call
The input does not match the schema of the operation.invalid-inputRead the schema of the operation, then send every required field with the right type.None.
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

TypeScript
import { $ } from 'startup-builder'

const watch = await $.Watch.replay({ watch: 'watch_9o4vCuR17L', from: '2026-10-22T12:00:00Z' })

Watch.resume

Resume restarts a paused Watch and delivers the Events it held, oldest first. Verb page.

TypeScript
interface WatchVerbs {
  resume(input: WatchResumeInput, options?: SB.CallOptions): SB.Call<Watch>
}

Emits Watch.resumed.

Inputs

InputTypeRequiredDescription
watchWatchrequiredThe paused Watch.

Returns

OutputTypeRequiredDescription
watchWatchrequiredThe Watch, delivering again.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

TypeScript
import { $ } from 'startup-builder'

const watch = await $.Watch.resume({ watch: 'watch_9o4vCuR17L' })

Watch.rotate

Rotate issues a new signing secret for a Watch and signs with both secrets until the old one expires. Verb page.

TypeScript
interface WatchVerbs {
  rotate(input: WatchRotateInput, options?: SB.CallOptions): SB.Call<WatchRotateOutput>
}

Emits Watch.rotated.

Inputs

InputTypeRequiredDescription
watchWatchrequiredThe Watch whose secret changes.
overlapstringHow long the old secret keeps signing, as an ISO 8601 duration; defaults to PT24H.

Returns

OutputTypeRequiredDescription
watchWatchrequiredThe Watch, signing with both secrets.
secretstringrequiredThe new signing secret, shown once.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

TypeScript
import { $ } from 'startup-builder'

const { watch, secret } = await $.Watch.rotate({ watch: 'watch_9o4vCuR17L' })