v1

latestOpenAPI 3.1.02026-07-261690320.7 KB

List code repositories

Returns a list of all the active code repositories in your account

get/repositories/code

Query parameters

pageinteger

Pagination parameter, starts at 0.

per_pageinteger

Amount of items returned

include_inactiveboolean

Include inactive repositories

filter_namestring

filter repositories by name

filter_branchstring

filter repositories by branch

include_labelsboolean

Include labels in the response

Response

A list of code repositories

idinteger required

The repository's id in Aikido.

namestring required

The name of the code repository.

provider'github' | 'gitlab' | 'gitlab-server' | 'bitbucket' | 'azure_devops' | 'selfscan' required

The place where the code repository is hosted

external_repo_idstring

The id of the repository from the provider.

external_repo_numeric_idinteger

The numeric id of the repository from the provider.

urlstring

External URL to the repo

branchstring

The branch of the repository that Aikido will scan.

last_scanned_atinteger

Timestamp representing the last time a scan for this repository ended. Value is -1 when no scan happened yet.

connectivity'connected' | 'not_connected' | 'unknown'

Tells Aikido if this code runs in an internet-connected server

sensitivity'extreme' | 'sensitive' | 'normal' | 'not_sensitive' | 'no_data'

The sensitivity of the repository.

Example response

{
  "id": 1,
  "name": "Compression service",
  "provider": "github",
  "external_repo_id": "R_kgDOI5RlKA",
  "external_repo_numeric_id": 1234567890,
  "active": true,
  "url": "https://api.github.com/repos/aikidemo/compression-service",
  "branch": "main",
  "last_scanned_at": 1720083163,
  "connectivity": "connected",
  "sensitivity": "normal",
  "labels": [
    {
      "id": 1,
      "name": "production",
      "is_imported": false
    },
    {
      "id": 2,
      "name": "core",
      "is_imported": true
    }
  ]
}