Last updated 3 years ago
Was this helpful?
You can get all segments you have access to using this call
fetch("https://gateway.sirdata.io/api/v1/public/customer/segment", { "method": "GET", "headers": { "x-api-token": "XXXXX-XXXXX-XXXXX-XXXXX", } }) .then(response => { console.log(response); }) .catch(err => { console.error(err); });java