provider Insights deployments (beta) GET
/api/v2/engineering-insights/deployments/{deploymentID} @utdk/launchdarkly
/api/v2/engineering-insights/deployments/{deploymentID} Get deployment
Get a deployment by ID.
The deployment ID is returned as part of the [List deployments](https://launchdarkly.com/docs/api/insights-deployments-beta/get-deployments) response. It is the `id` field of each element in the `items` array.
### Expanding the deployment response
LaunchDarkly supports expanding the deployment response to include additional fields.
To expand the response, append the `expand` query parameter and include the following:
* `pullRequests` includes details on all of the pull requests associated with each deployment
* `flagReferences` includes details on all of the references to flags in each deployment
For example, use `?expand=pullRequests` to include the `pullRequests` field in the response. By default, this field is **not** included in the response.
- deploymentID path required
- The deployment ID
- string
- expand query
- Expand properties in response. Options: `pullRequests`, `flagReferences`
- 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.getdeployment()