provider Projects GET
/api/v2/projects/{projectKey} @utdk/launchdarkly
/api/v2/projects/{projectKey} Get project
Get a single project by key.
### Expanding the project response
LaunchDarkly supports one field for expanding the "Get project" response. By default, these fields are **not** included in the response.
To expand the response, append the `expand` query parameter and add a comma-separated list with any of the following fields:
* `environments` includes a paginated list of the project environments.
For example, `expand=environments` includes the `environments` field for the project in the response.
- projectKey path required
- The project key.
- string
- expand query
- A comma-separated list of properties that can reveal additional information in the response.
- 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.getproject()