We are implementing an integration in a web app with Klaviyo to, amongst other things, synch unsubscribers between Klaviyo and our web app. As part of this we need to retrieve all unsubscribers from Klaviyo to update our web app.
To retrieve the unsubscribers from Klaviyo we’ve been looking to make a call to the GET https://a.klaviyo.com/api/v2/list/{LIST_ID}/exclusions/all end point but I am not seeing any of the unsubscribed profiles being returned. The profile was unsubscribed via the DELETE https://a.klaviyo.com/api/v2/list/{LIST_ID}/subscribe end point.
The profile history does show that it has been unsubscribed from the list but the profile does not show in the list of exclusions in Lists & Segments so I suspect the exclusions end point is the wrong one to use. What would be the correct api end point to use to retrieve a list of all unsubscribers?
Any help would be appreciated, thanks.