What is the best api if I want to get the list of contacts who have opted out? I could not get this by using the opt out property on the contacts api.
@cbarnes199 There are a couple of different ways you can do this.
- Is Using the get all contacts end point. Here is an example for that
This would give you all the contact with that property. Then you could sort out the results of the API call.
- The other way would be to build the list with in hubspot and then hit the lists end point and pull that exact list back.
Here is an example of the get all contacts in a list