Log out or delete an account
unlink_accountUnlink a WhatsApp number from wuapi to stop billing. Choose logout (keeps account) or delete (removes it permanently).
Instructions
Unlink a WhatsApp number from wuapi. Both actions log the number out on WhatsApp and stop billing for it. Use logout to keep the account and its stored messages (reconnect_account then shows a new QR code to link again); use delete to remove the account for good.
Actions:
logout: Unlink the phone and stop billing, keeping the account and its messages. Returns the account. Needsconfirm: true.delete: Log out, delete the account and stop billing for it. Cannot be undone; fires no event. Needsconfirm: true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | What to do. See the list of actions in the tool description. | |
| confirm | No | Must be true. The number is logged out of WhatsApp. Only set it after the user asked for this or agreed to it. Required for every action. | |
| accountId | No | The wuapi account id of the linked number to act as (from list_accounts). Required for every action. |