> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Segments In Environment

Retrieves the Segments given an environment.

## Parameters

<div className="integrations-table">
  | Parameter   | Description                                                                          |
  | ----------- | ------------------------------------------------------------------------------------ |
  | Environment | The id or case sensitive name of the environment in which you want get the segments. |
  | Workspace   | The id of the workspace from which you want a list of segments.                      |
</div>

## Example Output

```json theme={"dark"}
{
	"objects": [
		{
			"name": "<string>",
			"environment": {
				"id": "<string>",
				"name": "<string>"
			},
			"trafficType": {
				"id": "<string>",
				"name": "<string>"
			},
			"creationTime": 2409693738374
		}
	],
	"offset": 2,
	"limit": 25,
	"totalCount": 2
}
```

## Workflow Library Example

[List Segments in Environment with Split and Send Results Via Email](https://library.blinkops.com/workflows/list-segments-in-environment-with-split-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/list-segments-in-environment-with-split-and-send-results-via-email/canvas" />
</div>
