---
title: "List all segments. An optional 'excludeReplacedSegments' parameter is used to get the list of segments which has not yet been replaced (determined by segment lineage entries) and can be queried from the table. The value is false by default."
method: GET
path: "/segments/{tableName}"
tags: ["Segment"]
---

# List all segments. An optional 'excludeReplacedSegments' parameter is used to get the list of segments which has not yet been replaced (determined by segment lineage entries) and can be queried from the table. The value is false by default.

`GET /segments/{tableName}`

List all segments

## Path parameters

- `tableName` string, required

## Query parameters

- `type` string
- `excludeReplacedSegments` string
- `startTimestamp` string
- `endTimestamp` string
- `excludeOverlapping` boolean

## Response `200`

successful operation

- object[]

---

[API](https://skmtc.net/startree/apis/pinot-controller-api.md) · [All operations](https://skmtc.net/startree/apis/pinot-controller-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/startree/pinot-controller-api/versions/f1cc8a0ba2e0/schema)
