# `Twilio.Flex.V1.Insight.InsightsSegmentsService`
[🔗](https://github.com/jeffhuen/twilio_elixir/blob/main/lib/twilio/flex/v1/insight/insights_segments_service.ex#L2)

Service for InsightsSegments API operations.

Operations: `list`

# `list`

```elixir
@spec list(Twilio.Client.t(), map(), keyword()) ::
  {:ok, Twilio.Page.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}
```

To get segments for given reservation Ids

Operation: `ListInsightsSegments` | Tags: FlexV1InsightsSegments

## Query Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `SegmentId` | string | To unique id of the segment |
| `ReservationId` | array | The list of reservation Ids |

# `stream`

```elixir
@spec stream(Twilio.Client.t(), map(), keyword()) :: Enumerable.t()
```

Stream: To get segments for given reservation Ids (lazy auto-pagination).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
