> For the complete documentation index, see [llms.txt](https://docs.sirdata.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sirdata.net/customer-api/segment-list.md).

# Segment list

You can get all segments you have access to using this call <https://openapi.sirdata.io/customer/#tag/segment>

```javascript
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
```
