provider Experiments GET
/api/v2/projects/{projectKey}/experiments @utdk/launchdarkly
/api/v2/projects/{projectKey}/experiments Get experiments any environment
Get a list of experiments from across all environments in the project
- projectKey path required
- The project key
- string
- limit query
- The maximum number of experiments to return. Defaults to 20.
- integer
- offset query
- 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`.
- integer
- filter query
- A comma-separated list of filters. Each filter is of the form `field:value`. Supported fields are explained above.
- string
- expand query
- A comma-separated list of properties that can reveal additional information in the response. Supported fields are explained above.
- string
- lifecycleState query
- A comma-separated list of experiment archived states. Supports `archived`, `active`, or both. Defaults to `active` experiments.
- string
Try it
Authentication
Configure credentials for LaunchDarkly REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import launchdarkly from '@utdk/launchdarkly';
await launchdarkly.getexperimentsanyenv()