Wasup icon

Wasup

Send WhatsApp messages and manage instances via the Wasup API

Anti-Ban V2 → Update Config

AI-generated

Summary

Update the configuration settings of the Anti-Ban v2 module for a specified WhatsApp instance, including enabling/disabling the module, selecting a usage preset, overriding rate limits and delays, setting an optional alerts webhook, and configuring per-module flags via JSON.

Inputs

  • Instance (required) — The WhatsApp instance (number) to act on, selectable from a list or by entering the instance ID.
  • Enabled — Boolean flag to enable or disable Anti-Ban v2; disabling falls back to the legacy manager.
  • Preset — Select the Anti-Ban v2 usage preset affecting rate and behavior aggressiveness: Conservative, Moderate (default), or Aggressive.
  • Rate Overrides — Optional overrides for individual rate limits and message delays, including max per minute, hour, day, and minimum/maximum delay in milliseconds.
  • Alerts Webhook — Optional webhook URL to receive risk transition alerts, formatted to support Telegram/Discord-compatible JSON.
  • Modules (JSON) — Optional JSON object to enable or disable individual Anti-Ban v2 modules and configure module-specific settings, e.g., enabling warmup or setting circadian profiles on presence module.

Output shape

a single JSON object representing the updated Anti-Ban v2 configuration from the Wasup API

The output includes the updated preset, enabled state, any rate overrides applied, optional alerts webhook URL, and module configuration flags if provided. The request uses HTTP PUT to the endpoint /api/instances/{instanceId}/antiban-v2/config.

Links

Discussion