---
title: "List repositories from all connected providers, including whether PR scans are enabled"
method: GET
path: "/repos"
tags: ["REST API - Repos"]
---

# List repositories from all connected providers, including whether PR scans are enabled

`GET /repos`

## Response `200`

- MergedReposResponseDto
  - `repos` UnifiedRepoDto[], required — Unified list of repositories from all providers
    - `id` string, required — Internal UUID
    - `provider` 'github' | 'gitlab' | 'bitbucket', required — Source provider
    - `name` string, required — Display name (owner/repo for GitHub, namespace/project for GitLab, workspace/slug for Bitbucket)
    - `providerKey` string, required — Provider-native identifier for mutation endpoints. GitHub: owner/repo, GitLab: numeric projectId (as string), Bitbucket: repository UUID.
    - `enabled` boolean, required — Whether the repository is enabled for scanning
    - `threatModelUpdatedAt` string, nullable, required — ISO timestamp of the repo's most recent threat_model.md update, or null if it has none. Repos are returned ordered by this (most recent first; repos without a threat model last).
    - `prScansEnabled` boolean — Whether PR/MR scans are enabled (GitHub and GitLab)
    - `prScanBranches` string[] — Target branch patterns for PR/MR scans (GitHub and GitLab)
    - `installationId` number — GitHub App installation ID (GitHub only)
    - `baseUrl` string, nullable — GitHub Enterprise base URL for self-hosted (PAT) installations. Null/absent for github.com. Clients should build clone/display URLs from this host instead of assuming github.com (GitHub only).
    - `defaultBranch` string — Default branch (GitLab only)
    - `visibility` string — Project visibility (GitLab only)
    - `webhookRegistered` boolean — Whether a webhook is registered for this project (GitLab only)
    - `isPrivate` boolean — Whether the repository is private (Bitbucket only)
  - `errors` string[], required — Providers that failed to respond

---

[API](https://skmtc.net/hacktron/apis/hacktron-rest-api.md) · [All operations](https://skmtc.net/hacktron/apis/hacktron-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hacktron/hacktron-rest-api/versions/6a361244ce2c/schema)
