v5

latestOpenAPI 3.0.3Apache 2.0raw.githubusercontent.com2026-02-283466592.5 MB
Insights pull requests (beta)

List pull requests

Get a list of pull requests

Expanding the pull request collection response

LaunchDarkly supports expanding the pull request collection response to include additional fields.

To expand the response, append the expand query parameter and include the following:

  • deployments includes details on all of the deployments associated with each pull request
  • flagReferences includes details on all of the references to flags in each pull request
  • leadTime includes details about the lead time of the pull request for each stage

For example, use ?expand=deployments to include the deployments field in the response. By default, this field is not included in the response.

get/api/v2/engineering-insights/pull-requests

Query parameters

projectKeystring string required

The project key

The project key

environmentKeystring string

Required if you are using the <code>sort</code> parameter's <code>leadTime</code> option to sort pull requests.

Required if you are using the <code>sort</code> parameter's <code>leadTime</code> option to sort pull requests.

applicationKeystring string

Filter the results to pull requests deployed to a comma separated list of applications

Filter the results to pull requests deployed to a comma separated list of applications

statusstring string

Filter results to pull requests with the given status. Options: open, merged, closed, deployed.

Filter results to pull requests with the given status. Options: open, merged, closed, deployed.

querystring string

Filter list of pull requests by title or author

Filter list of pull requests by title or author

limitinteger

The number of pull requests to return. Default is 20. Maximum allowed is 100.

The number of pull requests to return. Default is 20. Maximum allowed is 100.

expandstring string

Expand properties in response. Options: deployments, flagReferences, leadTime.

Expand properties in response. Options: deployments, flagReferences, leadTime.

sortstring string

Sort results. Requires the environmentKey to be set. Options: leadTime (asc) and -leadTime (desc). When query option is excluded, default sort is by created or merged date.

Sort results. Requires the environmentKey to be set. Options: leadTime (asc) and -leadTime (desc). When query option is excluded, default sort is by created or merged date.

fromstring date-time

Unix timestamp in milliseconds. Default value is 7 days ago.

tostring date-time

Unix timestamp in milliseconds. Default value is now.

afterstring string

Identifier used for pagination

Identifier used for pagination

beforestring string

Identifier used for pagination

Identifier used for pagination

Response

Pull request collection response

totalCountinteger required

The total number of pull requests

_linksobject

The location and content type of related resources