---
title: "Get segment"
method: GET
path: "/segments/{segmentID}"
tags: ["Segments"]
---

# Get segment

`GET /segments/{segmentID}`

## Request

- Base URL: `https://api.omnisend.com/api`
- URL: `https://api.omnisend.com/api/segments/{segmentID}`
- Auth: one of:
  - OAuth 2
    - Client credentials
    - Token URL: `https://app.omnisend.com/oauth2/token` scopes: `segments.read`
  - API key in header `Authorization`

Returns a segment by its unique identifier.

**Scopes:**
`segments.read`

**Rate Limiting:**
This endpoint is rate limited to 100 requests per minute.

## Path parameters

- `segmentID` string, required

## Headers

- `Omnisend-Version` string, required

## Response `200`

Segment resource

- GetSegmentResponse: Segment resource representation.
  - `archivedAt` string, nullable: Segment archival timestamp, null if not archived (read-only)
  - `conditionGroups` SegmentConditionGroup[]: Condition groups defining the segment rules
    - `conditions` SegmentCondition[]: List of conditions in this group
      - `entity` string: Entity type this condition applies to
      - `filters` unknown[], required: List of filter criteria. Must contain at least one item.
        - unknown
      - `junction` string: Logical operator combining the filters within this condition
  - `createdAt` string: Segment creation timestamp (read-only)
  - `isStarred` boolean: Whether the segment is marked as a favourite
  - `name` string: Segment name
  - `segmentID` string: Segment unique identifier (read-only)
  - `status` 'ready' | 'building' | 'archived': Segment processing status (read-only)
  - `updatedAt` string: Segment last update timestamp (read-only)

## Other responses

- `400`: Request contains invalid or missing fields
- `401`: Authentication is missing or invalid
- `403`: Insufficient permissions for this operation
- `404`: Segment not found
- `410`: API version has been retired
- `429`: Rate limit exceeded
- `500`: Unexpected error occurred

---

[API](https://skmtc.dev/omnisend/apis/segments-api.md) - [All operations](https://skmtc.dev/omnisend/apis/segments-api/llms.txt) - [OpenAPI document](https://skmtc.dev/omnisend/apis/segments-api/revisions/5d5cfb339623?raw)
