For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Sign inTry it free
DocsGuidesSDKsIntegrationsAPI docsTutorialsFlagship blog
DocsGuidesSDKsIntegrationsAPI docsTutorialsFlagship blog
  • REST API overview
    • Access Tokens
    • Account Members
    • Account Usage Beta
    • AI Configs
    • Announcements
    • Applications Beta
    • Approvals
    • Approvals Beta
    • Audit Log
    • Code References
    • Contexts
    • Context Settings
    • Custom Roles
    • Data Export Destinations
    • Environments
    • Experiments
    • Feature Flags
    • Feature Flags Beta
    • Flag Import Configurations Beta
    • Flag Links Beta
    • Flag Triggers
    • Follow Flags
    • Holdouts Beta
    • Insights Charts Beta
    • Insights Deployments Beta
    • Insights Flag Events Beta
    • Insights Pull Requests Beta
    • Insights Repositories Beta
    • Insights Scores Beta
    • Integration Audit Log Subscriptions
    • Integration Delivery Configurations Beta
    • Integrations Beta
    • Layers
    • Metrics
    • Metrics Beta
    • OAuth2 Clients
    • Persistent Store Integrations Beta
    • Projects
    • Relay Proxy Configurations
    • Release Pipelines Beta
    • Releases Beta
    • Scheduled Changes
    • Segments
    • Tags
    • Teams
    • Teams Beta
    • Users
    • Users Beta
    • User Settings
      • GETGet expiring dates on flags for user
      • GETGet flag setting for user
      • GETList flag settings for user
      • PATCHUpdate expiring user target for flags
      • PUTUpdate flag settings for user
    • Views Beta
    • Webhooks
    • Workflows
    • Workflow Templates
    • Other
Sign inTry it free
LogoLogo
REST API overviewUser Settings

Get expiring dates on flags for user

Deprecated
GET
/api/v2/users/:projectKey/:userKey/expiring-user-targets/:environmentKey
GET
/api/v2/users/:projectKey/:userKey/expiring-user-targets/:environmentKey
$curl https://app.launchdarkly.com/api/v2/users/projectKey/userKey/expiring-user-targets/environmentKey \
> -H "Authorization: <apiKey>"
1{
2 "items": [
3 {
4 "_id": "12ab3c45de678910fgh12345",
5 "_version": 1,
6 "expirationDate": 1658192820000,
7 "userKey": "example-user-key",
8 "_resourceId": {
9 "kind": "string",
10 "projectKey": "string",
11 "environmentKey": "string",
12 "flagKey": "string",
13 "key": "string"
14 },
15 "targetType": "included",
16 "variationId": "ce67d625-a8b9-4fb5-a344-ab909d9d4f4d"
17 }
18 ],
19 "_links": {}
20}
Get a list of flags for which the given user is scheduled for removal.
Was this page helpful?
Previous

Get flag setting for user

Next
Built with

Authentication

Authorizationstring
API Key authentication via header

Path parameters

projectKeystringRequiredformat: "string"
The project key
userKeystringRequiredformat: "string"
The user key
environmentKeystringRequiredformat: "string"
The environment key

Response

Expiring user target response
itemslist of objects
An array of expiring user targets
_linksmap from strings to objects
The location and content type of related resources

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error