---
title: "Get a segment"
description: "Returns one segment with its filter and how many people match it now."
canonical: https://docs.rumoro.dev/api/segments/get-segment
markdown: https://docs.rumoro.dev/api/segments/get-segment.mdx
---

# Get a segment

`GET /v1/segments/{id}`

Returns one segment with its filter and how many people match it now.

## Parameters

| Name | In | Description |
| --- | --- | --- |
| `id` | path, required | The segment's id (seg_...). |

## Responses

| Status | Meaning |
| --- | --- |
| 200 | The segment and how many people are in it |
| 401 | The API key is missing or not valid |
| 404 | Your workspace has no segment with this id |

The [OpenAPI document](https://api.rumoro.dev/v1/openapi.json) has every schema. Rules shared by all endpoints are in [Conventions](https://docs.rumoro.dev/conventions.mdx).
