List repositories

GET
/api/v2/code-refs/repositories

Get a list of connected repositories. Optionally, you can include branch metadata with the withBranches query parameter. Embed references for the default branch with ReferencesForDefaultBranch. You can also filter the list of code references by project key and flag key.

Query parameters

withBranchesstringOptional

If set to any value, the endpoint returns repositories with associated branch data

withReferencesForDefaultBranchstringOptional

If set to any value, the endpoint returns repositories with associated branch data, as well as code references for the default git branch

projKeystringOptional

A LaunchDarkly project key. If provided, this filters code reference results to the specified project.

flagKeystringOptional

If set to any value, the endpoint returns repositories with associated branch data, as well as code references for the default git branch

Response

Repository collection response

itemslist of objects

An array of repositories

Errors

Built with