GET
/
v1
/
repos
/
{id}
Get repository
curl --request GET \
  --url https://api.ghostsecurity.ai/v1/repos/{id} \
  --header 'Authorization: Bearer <token>'
{
  "archived": false,
  "cast_scan_enabled": true,
  "cast_scan_supported": true,
  "created_at": "2025-05-29T22:24:59.324066Z",
  "default_branch_name": "main",
  "description": "Ghostbank Go API",
  "endpoints_count": 11,
  "findings_count": 5,
  "frameworks": [
    {
      "language": "Go",
      "name": "gin"
    }
  ],
  "full_name": "ghostsecurity/ghostbank-go",
  "id": "1e7d8c9b-ce80-41ae-8645-5b2a89165615-gitlab-69265683",
  "installation_id": "2e1d9bbc-1db3-4c88-b4c7-e11e311c9a82",
  "labels": [
    "<string>"
  ],
  "languages": {},
  "last_commit_hash": "981be7365cc7b7da32d5ab28e635f6d35b0ff4f1",
  "last_commit_hash_link": "https://gitlab.com/ghost/ghostbank/go/-/tree/981be7365cc7b7da32d5ab28e635f6d35b0ff4f1",
  "last_committed_at": "2025-05-14T21:00:08Z",
  "name": "go",
  "organization_id": "1e7d8c9b-ce80-41ae-8645-5b2a89165615",
  "posture": "internal",
  "primary_framework": "gin",
  "primary_language": "Go",
  "private": true,
  "projects": [
    {
      "active": true,
      "cast_scan_enabled": true,
      "cast_scan_supported": true,
      "endpoints_count": 11,
      "findings_count": 5,
      "id": "5d41402abc4b2a76b9719d911017c592",
      "last_scan_id": "123e4567-e89b-12d3-a456-426614174000",
      "last_scan_status": "success",
      "last_scanned_at": "2025-05-29T22:24:59.324066Z",
      "primary_framework": "gin",
      "primary_language": "Go",
      "purposes": [
        "<string>"
      ],
      "relative_path": "./api",
      "size": 15420
    }
  ],
  "provider": "gitlab",
  "provider_id": "",
  "purposes": [
    "<string>"
  ],
  "review_minimum_severity": "high",
  "review_mode": "auto",
  "scan_branch": "main",
  "size": 32784,
  "summary": "This repository contains the Go port of the Ghostbank API, designed primarily as a minimal demonstration of application security vulnerabilities.",
  "topics": [
    "<string>"
  ],
  "updated_at": "2025-05-29T22:24:59.324066Z",
  "url": "https://gitlab.com/ghostsecurity/ghostbank-go"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Repository ID

Response

OK

Repository information

archived
boolean

Whether the repository is archived

Example:

false

cast_scan_enabled
boolean

Whether scanning is enabled

Example:

true

cast_scan_supported
boolean

Whether scanning is supported

Example:

true

created_at
string

When the repository was created

Example:

"2025-05-29T22:24:59.324066Z"

default_branch_name
string

Default branch name

Example:

"main"

description
string

Repository description

Example:

"Ghostbank Go API"

endpoints_count
integer

Number of API endpoints

Example:

11

findings_count
integer

Number of security findings

Example:

5

frameworks
object[]

Frameworks detected in the repository

full_name
string

Full repository name including organization

Example:

"ghostsecurity/ghostbank-go"

id
string

Repository ID in format {org-id}-{provider}-{provider-id}

Example:

"1e7d8c9b-ce80-41ae-8645-5b2a89165615-gitlab-69265683"

installation_id
string

Installation ID

Example:

"2e1d9bbc-1db3-4c88-b4c7-e11e311c9a82"

labels
string[]

Repository labels/tags

languages
object

Programming languages used with percentages

last_commit_hash
string

Last commit hash

Example:

"981be7365cc7b7da32d5ab28e635f6d35b0ff4f1"

Link to the last commit

Example:

"https://gitlab.com/ghost/ghostbank/go/-/tree/981be7365cc7b7da32d5ab28e635f6d35b0ff4f1"

last_committed_at
string

When the last commit was made

Example:

"2025-05-14T21:00:08Z"

name
string

Repository name

Example:

"go"

organization_id
string

Organization ID

Example:

"1e7d8c9b-ce80-41ae-8645-5b2a89165615"

posture
enum<string>

Security posture of the apps in this repository

Available options:
internal,
external,
hybrid
Example:

"internal"

primary_framework
string

Primary framework detected

Example:

"gin"

primary_language
string

Primary programming language

Example:

"Go"

private
boolean

Whether the repository is private

Example:

true

projects
object[]

Projects within the repository

provider
string

Provider (github, gitlab, etc.)

Example:

"gitlab"

provider_id
string

Provider-specific repository ID

Example:

""

purposes
string[]

Repository purposes

review_minimum_severity
enum<string>

Review minimum severity to use for this repository

Available options:
high,
medium,
low
Example:

"high"

review_mode
enum<string>

Whether to run code reviews for this repository

Available options:
auto,
manual,
none
Example:

"auto"

scan_branch
string

Branch to scan (if different from default branch)

Example:

"main"

size
integer

Repository size in KB

Example:

32784

summary
string

Repository summary

Example:

"This repository contains the Go port of the Ghostbank API, designed primarily as a minimal demonstration of application security vulnerabilities."

topics
string[]

Repository topics

updated_at
string

When the repository was last updated

Example:

"2025-05-29T22:24:59.324066Z"

url
string

Repository URL

Example:

"https://gitlab.com/ghostsecurity/ghostbank-go"