Skip to main content

Signature

churn.unwatch(userId: string, options?: CallOptions): Promise<void>

Example

// User cancelled — no need to monitor them anymore
await churn.unwatch('user_123')

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

Errors

CodeWhen
VALIDATION_ERRORuserId is empty
NOT_FOUNDNo active watch for this user
UNAUTHORIZEDAPI key invalid