Insights repositories (beta)

List repositories

GET
/api/v2/engineering-insights/repositories

Get a list of repositories

Expanding the repository collection response

LaunchDarkly supports expanding the repository collection response to include additional fields.

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

  • projects includes details on all of the LaunchDarkly projects associated with each repository

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

Authorization

ApiKey read, write
Authorization<token>

In: header

Scope: read, write

Query Parameters

expand?string

Expand properties in response. Options: projects

Formatstring

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v2/engineering-insights/repositories"
{  "totalCount": 1,  "items": [    {      "_id": "5f9a9b1a-5b9a-4b9a-9a9a-9a9a9a9a9a9a",      "version": 1,      "key": "launchdarkly/LaunchDarkly-Docs",      "type": "github",      "url": "https://github.com/launchdarkly/LaunchDarkly-Docs",      "mainBranch": "main",      "projects": {        "totalCount": 0,        "items": [          {            "_id": "57be1db38b75bf0772d11383",            "_links": {              "environments": {                "href": "/api/v2/projects/example-project/environments",                "type": "application/json"              },              "self": {                "href": "/api/v2/projects/example-project",                "type": "application/json"              }            },            "key": "project-key-123abc",            "name": "Example project"          }        ],        "_links": {          "property1": {            "href": "string",            "type": "string"          },          "property2": {            "href": "string",            "type": "string"          }        }      }    }  ],  "_links": {    "property1": {      "href": "string",      "type": "string"    },    "property2": {      "href": "string",      "type": "string"    }  }}