What api method can I use to retrieve new and existing users with their associated subscriber status? I’ve looked through the documentation but can’t find what ‘m looking for.
Is there a way to see for example for time period of 24 hours lets say - who subscribed in that period? Who signed up etc?
Is there also a way to access the full customer base using the api and access their current email status? for example if I have 10K emails - can I download them with their associated profiles/subscriber status?
Best answer by julie.accardoView original
In order to identify the users that subscribed to a list within a certain time period, you have the option of creating a segment with the conditions of “Anyone who is in list X and was added to list in the last 24 hours.” You can then set up the following GET request to retrieve the subscribers in that segment.
curl --request GET \ --url 'https://a.klaviyo.com/api/v2/group/LIST_OR_SEGMENT_ID/members/all?api_key=PRIVATE_KEY' \ --header 'Accept: application/json'
You could do something similar with segments where you create different segments based on subscriber status and get the respective contacts from those segments using our API. Open to other suggestions, however, for this second question!