List repositories from all connected providers, including whether PR scans are enabled
curl --request GET \
--url https://api.hacktron.ai/v1/repos \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.hacktron.ai/v1/repos"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.hacktron.ai/v1/repos', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hacktron.ai/v1/repos",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.hacktron.ai/v1/repos"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.hacktron.ai/v1/repos")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hacktron.ai/v1/repos")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"repos": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"provider": "github",
"name": "octocat/Hello-World",
"providerKey": "octocat/Hello-World",
"enabled": true,
"threatModelUpdatedAt": "2026-06-22T12:00:00.000Z",
"openFindingsCount": 3,
"lastScanAt": "2026-09-15T12:00:00.000Z",
"prScansEnabled": true,
"prScanBranches": [
"main",
"**/release/**"
],
"installationId": 12345678,
"baseUrl": "https://ghe.example.com",
"defaultBranch": "main",
"visibility": "private",
"webhookRegistered": true,
"isPrivate": true
}
],
"errors": []
}Repositories
List repositories
List repositories from all connected providers.
GET
/
repos
List repositories from all connected providers, including whether PR scans are enabled
curl --request GET \
--url https://api.hacktron.ai/v1/repos \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.hacktron.ai/v1/repos"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.hacktron.ai/v1/repos', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hacktron.ai/v1/repos",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.hacktron.ai/v1/repos"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.hacktron.ai/v1/repos")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hacktron.ai/v1/repos")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"repos": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"provider": "github",
"name": "octocat/Hello-World",
"providerKey": "octocat/Hello-World",
"enabled": true,
"threatModelUpdatedAt": "2026-06-22T12:00:00.000Z",
"openFindingsCount": 3,
"lastScanAt": "2026-09-15T12:00:00.000Z",
"prScansEnabled": true,
"prScanBranches": [
"main",
"**/release/**"
],
"installationId": 12345678,
"baseUrl": "https://ghe.example.com",
"defaultBranch": "main",
"visibility": "private",
"webhookRegistered": true,
"isPrivate": true
}
],
"errors": []
}Returns every repository across all of your connected providers (GitHub, GitLab, and Bitbucket), including whether automatic pull-request scans are enabled for each one.
Use this endpoint to discover the repositories available to your organization before triggering a scan or cost estimation, and to confirm which repositories have PR scanning turned on.
Scope required:
read⌘I