---
title: "List all groups in a saved view"
method: GET
path: "/pipelines/{pipelineKey}/views/{viewKey}/groups"
---

# List all groups in a saved view

`GET /pipelines/{pipelineKey}/views/{viewKey}/groups`

Boxes in a saved view may be grouped together. The default grouping for most saved views is by stage, though when setting up a saved view you can also group by any other column, such as the user a box is assigned to.

The results include a `groupByKeyEncoded` property which you can use to retrieve the individual boxes in a saved view group, as well as the `count` property, indicating how many boxes exist in this group.

## Path parameters

- `pipelineKey` string, required
- `viewKey` string, required

## Query parameters

- `mode` integer

## Response `200`

200

- object
  - `results` object[]
    - `groupByKey` string
    - `groupByKeyEncoded` string
    - `groupByValue` string
    - `count` integer

## Other responses

- `400` — 400

---

[API](https://skmtc.net/streakyc/apis/directory-fields.md) · [All operations](https://skmtc.net/streakyc/apis/directory-fields/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/streakyc/directory-fields/versions/f9ece0b33f19/schema)
