OpenWA icon

OpenWA

Interact with OpenWA WhatsApp API Gateway

Actions164

Channel → Unsubscribe

AI-generated

Summary

Unsubscribes the specified WhatsApp session from a newsletter channel, effectively leaving the channel for that session.

Inputs

  • Session Name or ID (required) — The ID of the WhatsApp session from which to unsubscribe. Select from existing sessions or provide an ID via expression.
  • Channel Name or ID (required) — The ID of the newsletter channel to leave, formatted as a JID like '1234567890@newsletter'. Choose from the listed channels for the session or specify an ID using an expression.

Output shape

a single JSON object confirming success with a boolean 'success' field

Returns a success indicator if the unsubscribe request completes. This operation does not delete the channel itself, only removes the session's subscription. It works on both Baileys and whatsapp-web.js engines.

Links

Discussion