You can send unsubscribe data from Pushwoosh to your own database or CRM using either of these two methods.
Option 1: Event streaming (batch updates)
Use this method to receive unsubscribe data in batches rather than individual requests.
- Open your Pushwoosh Control Panel and go to the Events section.
- Activate the Email Unsubscribed (
PW_EmailUnsubscribed) default event — this is the event that fires when a user opts out of your emails. If you also want app uninstalls and opt-outs on other channels, activate Device Unregistered (PW_DeviceUnregistered) as well; it is broader and fires on uninstall or an opt-out on any channel. - Go to Settings > 3rd party Integrations > Event streaming integration and enter your server address.
Events are delivered in batches, and the thresholds depend on the transport you choose:
- HTTP: a batch is sent when at least 100 events are ready, or once an hour since the last transmission — whichever happens first.
- gRPC: a stream is opened when at least 1,000 events are ready, or once an hour since the last stream — whichever happens first.
Option 2: Customer Journey webhook (real-time updates)
Use this method to update your database immediately when a user unsubscribes.
- Go to Customer Journey and create a new journey.
- Add a trigger-based entry element and select
PW_EmailUnsubscribedas the trigger event. - Add a Webhook element right after the entry element.
- Set up the webhook to send a POST request with a JSON payload (containing the email address) to your server.
Comments
0 comments
Please sign in to leave a comment.