Signature
Example
When to unwatch
- User has cancelled and you’ve completed the offboarding flow
- User has churned and been removed from your system
- User upgraded and is no longer at risk
- You’re replacing the watch with a new threshold/webhook
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Remove a webhook watch for a user.
churn.unwatch(userId: string, options?: CallOptions): Promise<void>
// User cancelled — no need to monitor them anymore
await churn.unwatch('user_123')
| Code | When |
|---|---|
VALIDATION_ERROR | userId is empty |
NOT_FOUND | No active watch for this user |
UNAUTHORIZED | API key invalid |