Search for contexts
Search for contexts.
You can use either the query parameters or the request body parameters. If both are provided, there is an error.
Results are sorted by context kind and key. Each context appears once, with its most recently reported attributes. Results include contexts that LaunchDarkly has received within the last 30 days.
To learn more about the filter syntax, read Filtering contexts. To learn more about contexts, read Contexts and context kinds.
Authorizations
Path Parameters
The project key
The environment key
Query Parameters
Specifies the maximum number of items in the collection to return (max: 50, default: 20)
An opaque cursor that identifies the next page of results. You can use this for pagination, however, we recommend using the next link we provide instead.
Deprecated. This endpoint does not support sorting. Requests that include this parameter are rejected with a 400 response, so omit it. Results are always sorted by context kind and key.
A comma-separated list of context filters. To learn more about the filter syntax, read Filtering contexts.
Specifies whether to include or omit the total count of matching contexts. Defaults to true. The total count is approximate and may be omitted if it is unavailable.
Body
A collection of context filters
"*.name startsWith Jo,kind anyOf [\"user\",\"organization\"]"
Specifies a field by which to sort. LaunchDarkly supports sorting by timestamp in ascending order by specifying ts for this value, or descending order by specifying -ts.
"-ts"
Specifies the maximum number of items in the collection to return (max: 50, default: 20)
10
Limits results to contexts with sort values after the value specified. You can use this for pagination, however, we recommend using the next link instead, because this value is an obfuscated string.
"QAGFKH1313KUGI2351"
Response
Contexts collection response
The environment ID where the context was evaluated
"57be1db38b75bf0772d11384"
A collection of contexts. Can include multiple versions of contexts that have the same kind and key, but different applicationIds.
The location and content type of related resources
The number of matching contexts. This value is approximate and may be omitted if it is unavailable.
100
An obfuscated string that references the last context on the previous page of results. You can use this for pagination, however, we recommend using the next link instead.
"QAGFKH1313KUGI2351"