# List portfolio segments

`GET /segments`

> Wheelhouse Pro API. Web version: https://docs.usewheelhouse.com/pro/reference/get-segments · OpenAPI spec: https://docs.usewheelhouse.com/pro/openapi.yaml · Operation ID: `getSegments` · Tag: Segments · Index of all docs pages: https://docs.usewheelhouse.com/llms.txt

Returns all portfolio segments for the authenticated user. Segments are used in the Wheelhouse UI to group
listings by filter criteria; this endpoint provides read-only access to the segment list.

## Request

`GET https://api.usewheelhouse.com/ss_api/v1/segments`

Authentication: send your integration API key in the `X-Integration-API-Key` header and your user API key in the `X-User-API-Key` header (see https://docs.usewheelhouse.com/pro/authentication.md).

### Example request

```bash
curl -X GET 'https://api.usewheelhouse.com/ss_api/v1/segments' \
  -H 'X-Integration-API-Key: <your integration API key>' \
  -H 'X-User-API-Key: <your user API key>'
```

Only required parameters and body fields are filled in, with placeholder values. Add the optional ones you need from the lists above; some are required in combination, as their descriptions say.

## Responses

### 200

Array of portfolio segments

Body (`application/json`): array of object

- `id` (integer, required): Segment identifier
- `name` (string, required, nullable): Segment name, `null` if never set
- `description` (string, required, nullable): Optional segment description, `null` if not set
- `filter_backend` (object, required, nullable): The backend filter definition that drives listing filtering for this segment. Can be `null` on older segments.
- `is_default` (boolean, required, nullable): Whether this segment is the user's default
- `created_at` (string (date-time), required)
- `updated_at` (string (date-time), required)

Example shape (generated from the schema; placeholder values, not a real response):

```json
[
  {
    "id": 0,
    "name": "string",
    "description": "string",
    "filter_backend": {},
    "is_default": true,
    "created_at": "2026-01-01T00:00:00Z",
    "updated_at": "2026-01-01T00:00:00Z"
  }
]
```

### 401

API key authorization failed
