For the complete documentation index, see llms.txt. For the full documentation snapshot, see llms-full.txt.
Contexts are now available
After you have upgraded your LaunchDarkly SDK to use contexts instead of users, you should use Get expiring targets for segment instead of this endpoint. To learn more, read Contexts.
Get a list of a segment’s user targets that are scheduled for removal.
curl --request GET \
--url https://app.launchdarkly.com/api/v2/segments/{projectKey}/{segmentKey}/expiring-user-targets/{environmentKey} \
--header 'Authorization: <api-key>'{
"items": [
{
"_id": "12ab3c45de678910fgh12345",
"_version": 1,
"expirationDate": "1658192820000",
"userKey": "example-user-key",
"_resourceId": {
"kind": "<string>",
"projectKey": "<string>",
"environmentKey": "<string>",
"flagKey": "<string>",
"key": "<string>"
},
"targetType": "included",
"variationId": "ce67d625-a8b9-4fb5-a344-ab909d9d4f4d"
}
],
"_links": {}
}Documentation Index
Fetch the complete documentation index at: https://launchdarkly-preview.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
The project key
The environment key
The segment key
curl --request GET \
--url https://app.launchdarkly.com/api/v2/segments/{projectKey}/{segmentKey}/expiring-user-targets/{environmentKey} \
--header 'Authorization: <api-key>'{
"items": [
{
"_id": "12ab3c45de678910fgh12345",
"_version": 1,
"expirationDate": "1658192820000",
"userKey": "example-user-key",
"_resourceId": {
"kind": "<string>",
"projectKey": "<string>",
"environmentKey": "<string>",
"flagKey": "<string>",
"key": "<string>"
},
"targetType": "included",
"variationId": "ce67d625-a8b9-4fb5-a344-ab909d9d4f4d"
}
],
"_links": {}
}