Signature
Return value
Example
Use cases
- Audit which users are being monitored
- Sync watches with your CRM or CS tool
- Clean up stale watches for cancelled users
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
List all active webhook watches for your account.
churn.listWatches(options?: CallOptions): Promise<WatchedUser[]>
interface WatchedUser {
userId: string
threshold: number
webhook: string
cooldown: string
}
const watches = await churn.listWatches()
for (const w of watches) {
console.log(`${w.userId} → alert at ${w.threshold} score, cooldown ${w.cooldown}`)
}