---
title: "List Segments"
method: GET
path: "/v3/lists/{listId}/segments"
tags: ["Segments"]
---

# List Segments

`GET /v3/lists/{listId}/segments`

This endpoint helps you return a list of all segments from a list previously created. Extra filters can be added using segment's information (e.g. segmentType=STATIC).

## Path parameters

- `listId` integer, required

## Response `200`

Successfully retrieved the segments

- SegmentsResponse
  - `meta` MetadataDTO
    - `timestamp` integer, required — Transaction's date in timestamp
    - `transactionId` string, required — Id for the current transaction (Endpoint's call)
    - `explain` string — Explain string in case of failure
  - `items` Segment[] — list of segments
    - `id` string, required — segment id
    - `name` string, required — name of the segmnet
    - `userName` string — owner of the segment
    - `listId` integer, required — list id
    - `queryRule` string — segment condition
    - `total` integer, required — total of contacts in segment
  - `total` integer

## Other responses

- `404` — Resource not found
- `500` — Internal server error

---

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