Skip to main content
GET
/
project
/
{projectId}
/
branches
Get branches from vulnerability detections
curl --request GET \
  --url https://api-eu.cybedefend.com/project/{projectId}/branches \
  --header 'x-api-key: <api-key>'
{
  "projectId": "550e8400-e29b-41d4-a716-446655440000",
  "branches": [
    "main",
    "develop",
    "feature/new-feature"
  ]
}

Authorizations

x-api-key
string
header
required

API Key for authentication. You can generate an API key from your personal settings.

Path Parameters

projectId
string<uuid>
required

Project identifier

Response

Branches retrieved successfully

projectId
string<uuid>
required

Project identifier

Example:

"550e8400-e29b-41d4-a716-446655440000"

branches
string[]
required

List of distinct branch names found in SAST, SCA, and IAC vulnerability detections

Example:
["main", "develop", "feature/new-feature"]