Actions48
- Chat Actions
- Contact Actions
- Group Actions
- Media Actions
- Message Actions
- Session Actions
- Status Actions
- Webhook Actions
Session → Disconnect
AI-generatedSummary
Disconnect the WhatsApp session after explicit user confirmation to log out securely.
Inputs
- Confirmation (required) — Boolean flag that must be set to true to confirm session disconnection and prevent accidental logouts.
Output shape
a single JSON object confirming the logout operation
Throws an error if confirmation is not given. The request is made via POST to '/logout' endpoint. Returns the API response JSON upon success.
Examples
Example 1: User wants to disconnect the current WhatsApp session safely
Set Confirmation to true to confirm disconnection and execute the operation.
