---
title: "Get expiring dates on flags for user"
method: GET
path: "/api/v2/users/{projectKey}/{userKey}/expiring-user-targets/{environmentKey}"
tags: ["User settings"]
deprecated: true
---

# Get expiring dates on flags for user

`GET /api/v2/users/{projectKey}/{userKey}/expiring-user-targets/{environmentKey}`

> **Deprecated.**

Get a list of flags for which the given user is scheduled for removal.

## Path parameters

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

## Response `200`

Expiring user target response

- ExpiringUserTargetGetResponse
  - `items` ExpiringUserTargetItem[], required — An array of expiring user targets
    - `_id` string, required — The ID of this expiring user target
    - `_version` integer, required — The version of this expiring user target
    - `expirationDate` integer, required
    - `userKey` string, required — A unique key used to represent the user
    - `targetType` string — A segment's target type. Included when expiring user targets are updated on a segment.
    - `variationId` string — A unique key used to represent the flag variation. Included when expiring user targets are updated on a feature flag.
    - `_resourceId` ResourceIDResponse, required
      - `kind` string
      - `projectKey` string
      - `environmentKey` string
      - `flagKey` string
      - `key` string
  - `_links` object — The location and content type of related resources

## Other responses

- `401` — Invalid access token
- `403` — Forbidden
- `404` — Invalid resource identifier
- `429` — Rate limited

---

[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)
