Skip to main content
POST
/
project
/
{projectId}
/
scan
/
start
Start a scan
curl --request POST \
  --url https://us.cybedefend.com/project/{projectId}/scan/start \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "branch": "main",
  "sourceType": "manual"
}
'
{
  "success": true,
  "message": "<string>",
  "scanId": "<string>",
  "detectedLanguages": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

projectId
string<uuid>
required

The unique identifier of the project to scan

Example:

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

Body

application/json
branch
string

Branch name being scanned (for GitHub/GitLab integrations). If not provided, scan is not associated with a specific branch.

Example:

"main"

sourceType
enum<string>
default:manual

Source type of the scan (manual, cli, github, gitlab, jetbrains, vscode). Defaults to manual if not provided.

Available options:
manual,
cli,
github,
gitlab,
jetbrains,
vscode
Example:

"manual"

Response

Scan initiated successfully - returns signed URL for upload

success
boolean
required

Whether the scan started successfully

message
string
required

Message describing the scan start result

scanId
string

The unique identifier of the created scan

detectedLanguages
string[]

Detected languages (if any) during scan initialization