Sign in

API reference

List projects

GET/v1/projects

Scope: projects:read

The projects this key may start and read runs in, with their repositories and the tracker keys their issues come from.

curl --fail-with-body -sS https://<workspace>.nightlab.io/v1/projects \
  -H "Authorization: Bearer $NIGHTLAB_API_KEY"

The answer

200 with a list. Each project has its slug (what project filters by), its name, its repos (what a run’s repo can name) and its issue_keys.

200 OK

[
  {
    "slug": "shop",
    "name": "Shop",
    "repos": [
      "acme/shop"
    ],
    "issue_keys": [
      "SHOP"
    ]
  }
]