---
title: "List segment memberships for context instance"
method: POST
path: "/api/v2/projects/{projectKey}/environments/{environmentKey}/segments/evaluate"
tags: ["Segments"]
---

# List segment memberships for context instance

`POST /api/v2/projects/{projectKey}/environments/{environmentKey}/segments/evaluate`

For a given context instance with attributes, get membership details for all segments. In the request body, pass in the context instance.

## Path parameters

- `projectKey` string, string, required — The project key
- `environmentKey` string, string, required — The environment key

## Request body

- ContextInstance

## Response `200`

Context instance segment membership collection response

- ContextInstanceSegmentMemberships
  - `items` ContextInstanceSegmentMembership[], required
    - `name` string, required — A human-friendly name for the segment
    - `key` string, required — A unique key used to reference the segment
    - `description` string, required — A description of the segment's purpose
    - `unbounded` boolean, required — Whether this is an unbounded segment. Unbounded segments, also called big segments, may be list-based segments with more than 15,000 entries, or synced segments.
    - `external` string, required — If the segment is a synced segment, the name of the external source
    - `isMember` boolean, required — Whether the context is a member of this segment, either by explicit inclusion or by rule matching
    - `isIndividuallyTargeted` boolean, required — Whether the context is explicitly included in this segment
    - `isRuleTargeted` boolean, required — Whether the context is captured by this segment's rules. The value of this field is undefined if the context is also explicitly included (<code>isIndividuallyTargeted</code> is <code>true</code>).
    - `_links` object, required — The location and content type of related resources
  - `_links` object, required — The location and content type of related resources

## Other responses

- `400` — Invalid request
- `401` — Invalid access token
- `404` — Invalid resource identifier

---

[API](https://skmtc.dev/launchdarkly/apis/launchdarkly-rest-api.md) · [All operations](https://skmtc.dev/launchdarkly/apis/launchdarkly-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/launchdarkly/launchdarkly-rest-api/revisions/69c5c9aafe78/schema)
