Segment IDs changing with each call

Hello. I am trying to retrieve a segment of contacts via ID using your API. I’ve noticed, though, that the ID of the segment seems to increment. Will the “old” ID continue to yield the same results?

Additionally, it seems like the id_greater parameter does not work with the segement endpoint. Is this intended?

Thanks

When retrieving contacts from a segment, I use the following GET request:
/api/3/contacts?segmentid=XXX&limit=100

This returns the first 100 contacts in the segment. In the response body, there’s a meta object that includes a total field (e.g. "total": 123), which shows the total number of contacts in that segment. Using the offset parameter, you can easily paginate through all results.

I also experimented with the id_greater parameter, and for me the following works just fine and as expected:

/api/3/contacts?segmentid=XXX&id_greater=XXX&limit=100