Get context instances

GET
/api/v2/projects/:projectKey/environments/:environmentKey/context-instances/:id

Get context instances by ID.

Path parameters

projectKeystringRequired

The project key

environmentKeystringRequired

The environment key

idstringRequired

The context instance ID

Query parameters

limitlongOptional

Specifies the maximum number of context instances to return (max: 50, default: 20)

continuationTokenstringOptional

Limits results to context instances with sort values after the value specified. You can use this for pagination, however, we recommend using the next link we provide instead.

sortstringOptional

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.

filterstringOptional

A comma-separated list of context filters. This endpoint only accepts an applicationId filter. To learn more about the filter syntax, read Filtering contexts and context instances.

includeTotalCountbooleanOptional

Specifies whether to include or omit the total count of matching context instances. Defaults to true.

Response

Context instances collection response

_environmentIdstring

The environment ID

itemslist of objects

A collection of context instances. Can include multiple versions of context instances that have the same id, but different applicationIds.

totalCountintegerOptional

The number of unique context instances

continuationTokenstringOptional

An obfuscated string that references the last context instance on the previous page of results. You can use this for pagination, however, we recommend using the next link instead.

Errors

Built with