---
title: "List code repositories"
method: GET
path: "/repositories/code"
---

# List code repositories

`GET /repositories/code`

## Request

- Base URL: `https://app.aikido.dev/api/public/v1`
- URL: `https://app.aikido.dev/api/public/v1/repositories/code`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://app.aikido.io/api/oauth/token` scopes: `repositories:read`

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

## Query parameters

- `page` integer
- `per_page` integer
- `include_inactive` boolean
- `filter_name` string
- `filter_branch` string
- `include_labels` boolean
- `include_config_issues_info` boolean

## Response `200`

A list of code repositories

- object
  - `id` integer, required: The repository's id in Aikido.
  - `name` string, required: The name of the code repository.
  - `project` string, nullable: The project, group or organization the repository belongs to from the provider
  - `provider` 'github' | 'gitlab' | 'gitlab-server' | 'bitbucket' | 'azure_devops' | 'selfscan', required: The place where the code repository is hosted
  - `external_repo_id` string: The id of the repository from the provider.
  - `external_repo_numeric_id` integer: The numeric id of the repository from the provider.
  - `url` string: External URL to the repo
  - `branch` string: The branch of the repository that Aikido will scan.
  - `last_scanned_at` integer: 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.
  - `labels` object[]: The labels of the repository.
    - `id` integer: The id of the label.
    - `name` string: The name of the label.
    - `is_imported` boolean: Whether the label was imported from a third party.
  - `has_missing_lockfile` boolean: Whether the repository has a missing lockfile.
  - `has_faulty_lockfile` boolean: Whether the repository has a faulty lockfile.

---

[API](https://skmtc.dev/aikido/apis/aikido-security-api-documentation.md) - [All operations](https://skmtc.dev/aikido/apis/aikido-security-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/aikido/apis/aikido-security-api-documentation/revisions/da8691338133?raw)
