This API will show segmnet list to subscriber registered. it will return true or false
var toBeReturn = _pa_subscriberSegments(); console.log(toBeReturn); //return json array "["YourCreatedSegmentName1","YourCreatedSegmentName2","YourCreatedSegmentName3"]" var thenProm = toBeReturn.then(function(value){ console.log(value); });