REST API - Repos

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

Changed on
get/repos

Request

  • Base URL
    https://api.hacktron.ai/v1
  • URL
    https://api.hacktron.ai/v1/repos
  • Auth
    API key in header X-Api-Key

Response

errorsstring[] required

Providers that failed to respond

Example response

{
  "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",
      "ossApproved": true,
      "prScansEnabled": true,
      "prScanBranches": [
        "main",
        "**/release/**"
      ],
      "installationId": 12345678,
      "baseUrl": "https://ghe.example.com",
      "defaultBranch": "main",
      "visibility": "private",
      "webhookRegistered": true,
      "isPrivate": true
    }
  ],
  "errors": []
}

Changes

    • warning

      added the new azure enum value to the // response property for the response status

    • info

      added the optional property // to the response with the status

    • info

      added the required property // to the response with the status

    • info

      added the required property // to the response with the status