provider Code references GET /api/v2/code-refs/repositories
@utdk/launchdarkly /api/v2/code-refs/repositories
List 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.
withBranches query
If set to any value, the endpoint returns repositories with associated branch data
string
withReferencesForDefaultBranch query
If set to any value, the endpoint returns repositories with associated branch data, as well as code references for the default git branch
string
projKey query
A LaunchDarkly project key. If provided, this filters code reference results to the specified project.
string
flagKey query
If set to any value, the endpoint returns repositories with associated branch data, as well as code references for the default git branch
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.

getrepositories
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.

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

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

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

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

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import launchdarkly from '@utdk/launchdarkly';

await launchdarkly.getrepositories()