List deployments

Get a list of deployments

Expanding the deployment collection response

LaunchDarkly supports expanding the deployment collection 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.

Headers

AuthorizationstringRequired

Query parameters

projectKeystringRequired
The project key
environmentKeystringRequired
The environment key
applicationKeystringOptional
Comma separated list of application keys
limitlongOptional
The number of deployments to return. Default is 20. Maximum allowed is 100.
expandstringOptional

Expand properties in response. Options: pullRequests, flagReferences

fromlongOptional
Unix timestamp in milliseconds. Default value is 7 days ago.
tolongOptional
Unix timestamp in milliseconds. Default value is now.
afterstringOptional
Identifier used for pagination
beforestringOptional
Identifier used for pagination
kindstringOptional
The deployment kind
statusstringOptional
The deployment status

Response

Deployment collection response
totalCountinteger
The total number of deployments
itemslist of objects
A list of deployments

Errors