We are trying to fetch list of all the `Lists` and `Segments` we have and then fetch members in all the `Lists` and `Segments` using the `Group` API. We are able to do this successfully for `Lists`, we couldn’t find any API to GET details of all our `Segments`.
Is there any way we can achieve this?
Or is there any way we can directly get list of all Members in all `Lists` and `Segments`?
UPDATE: We are using v2 of the API. I guess it does not return segments yet. Is it recommended to use v1 in prod since the page mentions i’s DEPRECATED and asks to use v2?
@pkskypointcloud For now you should be fine to use the V1 API for that request to get Segment IDs. I would keep using V2 everywhere that you can for other requests.
I am passing List_ID and api_key properly when call it is giving below response when called:= {"message":"An internal API server error occurred. Please contact support@klaviyo.com."}
@roslyn This call works fine for me. Are you still getting that error? Double-check that the API key and List ID are correct and from the same account.