v5

latestOpenAPI 3.0.3Apache 2.0raw.githubusercontent.com2026-02-283466592.5 MB
Segments

Get expiring targets for segment

Get a list of a segment's context targets that are scheduled for removal.

get/api/v2/segments/{projectKey}/{segmentKey}/expiring-targets/{environmentKey}

Path parameters

projectKeystring string required

The project key

The project key

environmentKeystring string required

The environment key

The environment key

segmentKeystring string required

The segment key

The segment key

Response

Expiring context target response

_linksobject

The location and content type of related resources

Example response

{
  "items": [
    {
      "_id": "12ab3c45de678910abc12345",
      "_version": 1,
      "contextKind": "user",
      "contextKey": "context-key-123abc",
      "targetType": "included",
      "variationId": "cc4332e2-bd4d-4fe0-b509-dfd2caf8dd73",
      "_resourceId": {
        "environmentKey": "environment-key-123abc",
        "key": "segment-key-123abc",
        "projectKey": "project-key-123abc"
      }
    }
  ]
}