Hey!
Afaik, the user.unsubscribed
webhook only triggers for unsubscribes that happen after it’s set up. It sadly wont send info for users who were already unsubscribed before the webhook was created/deployed.
If you want to sync historical subscription data, a potential workaround is to pull the contacts directly from Intercom using the Contacts API. then you can check each contact’s unsubscribed_from_emails
and unsubscribed_from_sms
fields and update your application accordingly
This way you covered future unsubscribes, and for past ones cover it by the API sync.
Hope it helps!
Hey there @robin.nguyen, Emily here from Support Engineering at Intercom 👋🏼
To sync your application with users’ subscription preferences you can update users as unsubscribed in Intercom by uploading a CSV file.
Here’s how 👇🏼
- Prepare a CSV with two columns: "email" and "unsubscribed_from_emails" (set to true for each relevant user).
- Go to the Contacts page in Intercom and choose to import users via CSV.
- Map the Email field, skip others, and when prompted, select "unsubscribed_from_emails" as a new custom attribute (Boolean type).
- Complete the import to update the unsubscribe status for these users.