For the complete documentation index, see llms.txt. For the full documentation snapshot, see llms-full.txt.
Get a single flag setting for a user by flag key.
The _value is the flag variation that the user receives. The setting indicates whether you’ve explicitly targeted a user to receive a particular variation. For example, if you have turned off a feature flag for a user, this setting will be false. The example response indicates that the user Abbie_Braun has the sort.order flag enabled.
curl --request GET \
--url https://app.launchdarkly.com/api/v2/users/{projectKey}/{environmentKey}/{userKey}/flags/{featureFlagKey} \
--header 'Authorization: <api-key>'{
"_links": {
"sort.order": {
"href": "/api/v2/users/lacuna/production/Abbie_Braun/flags/sort.order",
"type": "application/json"
}
},
"_value": "true",
"setting": "null",
"reason": "{\"kind\": \"RULE_MATCH\"}"
}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 user key
The feature flag key
User flag settings response
The location and content type of related resources.
Show child attributes
{
"sort.order": {
"href": "/api/v2/users/lacuna/production/Abbie_Braun/flags/sort.order",
"type": "application/json"
}
}The value of the flag variation that the user receives. If there is no defined default rule, this is null.
"true"
Whether the user is explicitly targeted to receive a particular variation. The setting is false if you have turned off a feature flag for a user. It is null if you haven't assigned that user to a specific variation.
null
Contains information about why that variation was selected.
Show child attributes
"{\"kind\": \"RULE_MATCH\"}"
curl --request GET \
--url https://app.launchdarkly.com/api/v2/users/{projectKey}/{environmentKey}/{userKey}/flags/{featureFlagKey} \
--header 'Authorization: <api-key>'{
"_links": {
"sort.order": {
"href": "/api/v2/users/lacuna/production/Abbie_Braun/flags/sort.order",
"type": "application/json"
}
},
"_value": "true",
"setting": "null",
"reason": "{\"kind\": \"RULE_MATCH\"}"
}