QuePasa API (WhatsApp) icon

QuePasa API (WhatsApp)

Interact with QuePasa WhatsApp API

Session → Disconnect

AI-generated

Summary

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.

Links

Discussion