Evaluate flags for a context instance, for example, to determine the expected flag variation. Do not use this API instead of an SDK. The LaunchDarkly SDKs are specialized for the tasks of evaluating feature flags in your application at scale and generating analytics events based on those evaluations. This API is not designed for that use case. Any evaluations you perform with this API will not be reflected in features such as flag statuses and flag insights. Context instances evaluated by this API will not appear in the Contexts list. To learn more, read Comparing LaunchDarkly’s SDKs and REST API.
LaunchDarkly supports the filter
query param for filtering, with the following fields:
query
filters for a string that matches against the flags’ keys and names. It is not case sensitive. For example: filter=query equals dark-mode
.tags
filters the list to flags that have all of the tags in the list. For example: filter=tags contains ["beta","q1"]
.You can also apply multiple filters at once. For example, setting filter=query equals dark-mode, tags contains ["beta","q1"]
matches flags which match the key or name dark-mode
and are tagged beta
and q1
.
The project key
The environment key
The number of feature flags to return. Defaults to -1, which returns all flags
Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query limit
.
A comma-separated list of fields to sort by. Fields prefixed by a dash ( - ) sort in descending order
A comma-separated list of filters. Each filter is of the form field operator value
. Supported fields are explained above.
Flag evaluation collection response
Details on the flag evaluations for this context instance
The location and content type of related resources
The number of flags