API Documentation

Retrieve project details

get

Retrieves detailed information about a specific project, including branch scan statistics and values.

Query parameters
branchstringOptional

Retrieve project-related branch scan statistics and values. Must provide a valid branch name.

Example: main
keystringRequired

Project name to retrieve the specific project details. Must provide a valid project name.

Example: example_project
Responses
chevron-right
200

Successful response

application/json
schemaVersionstringOptional
project_namestringOptional
descriptionstring · nullableOptional
versionstring · nullableOptional
languagesstring[]Optional
created_atstring · date-timeOptional
tagsstring[]Optional
total_locintegerOptional
total_filesintegerOptional
typestringOptional
ownerstringOptional
teamstring[]Optional
created_bystringOptional
scan_idsstring[]Optional
isActivebooleanOptional
statestringOptional
last_scan_timeintegerOptional
is_repository_accessiblebooleanOptional
default_branchstringOptional
get
/project

List projects

get

Retrieves a list of projects based on the provided parameters.

Query parameters
pidstringOptional

Page ID for pagination.

Example: 1
pagestringOptional

Page number for pagination.

Example: 1
pageSizestring · max: 500Optional

Number of projects per page, with a maximum limit of 500.

Example: 50
searchstringOptional

Filter projects by name (alphanumeric, dash, underscore, and dot allowed).

Example: example_project
sortstring · enumOptional

Criteria to sort projects: by name, size (descending/ascending), or scan date (newest first).

Example: namePossible values:
qstringOptional

Base64 encoded filter criteria for projects:

  • type: upload, git, github, gitlab, azure, bitbucket, jenkins
  • owner: Owner's username
  • languages: ["java", "javascript", "csharp", ...]
  • state: failure, run, stop, end
Example: base64_encoded_string
Responses
chevron-right
200

Successful response

application/json
schemaVersionstringOptional
project_namestringOptional
descriptionstring · nullableOptional
versionstring · nullableOptional
languagesstring[]Optional
created_atstring · date-timeOptional
tagsstring[]Optional
total_locintegerOptional
total_filesintegerOptional
typestringOptional
ownerstringOptional
teamstring[]Optional
created_bystringOptional
scan_idsstring[]Optional
isActivebooleanOptional
statestringOptional
last_scan_timeintegerOptional
last_scan_idstringOptional
is_repository_accessiblebooleanOptional
sast_issues_countintegerOptional
sca_issues_countintegerOptional
licenses_countintegerOptional
default_branchstringOptional
get
/projects

Get scan status

get

Retrieve the status and details of a scan using its ID.

Path parameters
scanIdstringRequired

URL path to provide the scan ID.

Responses
chevron-right
200

Success response with scan status details.

application/json
schemaVersionstringOptional
idstringOptional
issues_newnumberOptional
issues_fixednumberOptional
started_atintegerOptional

Timestamp when the scan started

ended_atintegerOptional

Timestamp when the scan ended

statestringOptional
locintegerOptional
nfilesintegerOptional
uidstringOptional
fixcostsstring · nullableOptional
trustlevelsstring · nullableOptional
riskscoreintegerOptional
get
/scan/status/{scanId}

Get scan issues

post

Retrieve issues related to a specific scan using its ID with optional filters.

Query parameters
pagestringOptional

Page ID for pagination (default: 50)

pageSizestring · max: 500Optional

Page size for pagination

Body
Responses
chevron-right
200

Successful response with scan issues details.

application/json
post
/scanlog/issues

Add a new organization

post

This endpoint is used to add a new organization to the application. It accepts the 'orgname' field in the body. If no organization with this name exists, a new organization is created immediately.

Body
orgnamestringRequired

The name of the organization to be added

Responses
chevron-right
200

Successful response

application/json
errorbooleanOptionalExample: false
post
/organization/add

List organizations

get

Retrieves a list of organizations accessible to the user. Use the 'search' parameter in the query string to filter organizations by name.

Query parameters
searchstringOptional

Filter organizations by name (alphanumeric, dash, underscore, and dot allowed).

Example: example_org
Responses
chevron-right
200

Successful response

application/json
string[]OptionalExample: ["Organization1","Organization2"]
get
/organization/list

Add a new project

post

Creates a new 'upload' type project that is ready for analysis when triggered at the scan/start endpoint.

Body
project_namestring · min: 3 · max: 1000Required

The name of the project used in generation. Must be unique within the organization.

descriptionstring · max: 5000Optional

A brief summary of the project's purpose.

tagsstring[] · max: 5Optional

Tags to categorize and group the projects being maintained.

Responses
chevron-right
200

Successful response

application/json
errorbooleanOptionalExample: false
post
/project/add

Start a new scan

post

Only upload type projects can be scanned. The related project should be created via the project/add endpoint before sending this request with the related value.

Body
upfilestring · binaryRequired

Uploaded file object

projectstringRequired

Project under which the uploaded file will be analyzed

branchstringOptional

Branch under which the uploaded file will be analyzed

policy_idstringOptional

Scope under which the analysis should be processed

Responses
chevron-right
200

Scan started successfully

application/json
errorbooleanOptional
messagestringOptional
scan_idstringOptional
post
/scan/start

Stop an active scan

post

Stops an active scan immediately if the provided scan ID exists.

Body
scan_idstringRequired

The ID of the scan to be stopped

Responses
chevron-right
200

Scan stopped successfully

application/json
errorbooleanOptionalExample: false
post
/scan/stop

Retrieve all policies

get

Retrieves all policies created in the organization, including default bundled policies.

Query parameters
searchstringOptional

Filter policies by policy title

Responses
chevron-right
200

List of policies

application/json
idstringOptional

Unique identifier of the policy

descriptionstringOptional

Description of the policy

is_defaultbooleanOptional

Indicates if the policy is a default bundled policy

policy_titlestringOptional

Title of the policy

schemaVersionstringOptional

Version of the schema

get
/policy/list

Get selected policy

get

Retrieve policy by given payload

Path parameters
policyIdstringRequired

Filter policies by policy title

Responses
chevron-right
200

Policy which demanded

application/json
idstringOptional

Unique identifier of the policy

descriptionstringOptional

Description of the policy

is_defaultbooleanOptional

Indicates if the policy is a default bundled policy

policy_titlestringOptional

Title of the policy

schemaVersionstringOptional

Version of the schema

get
/policy/{policyId}

Create a git connected project

post

Create a git-connected project with given parameters.

Body
branchstringOptional

Repository's default branch for standard analysis

policy_idstringRequired

Project's default policy for standard analysis

project_namestring · min: 3 · max: 1000Required

Unique project name within the organization

Example: my-project
tagsstring[] · max: 5Optional

Tags to categorize and group project

Responses
chevron-right
200

Successful response

application/json
errorbooleanOptional

Indicates if an error occurred

messagestringOptional

Human-readable message about project creation status

scan_idstring · nullableOptional

ID of the started scan (if scan started successfully)

post
/integration/git/set

Create a GitHub connected project

post

Create a GitHub-connected project with given parameters.

Body
repoIdstring · ${github.repository.name}:${github.repository.id}Required

GitHub repository id and name combined as string concatenated.

Example: repo_name:1234id
typestring · enumRequired

Repositories view information (public or private)

Possible values:
accountstring · ${github.repository.owner.login}Required

Related repository owner's GitHub login

branchstringRequired

Default branch of the project for standard analysis.

Example: main
policy_idstringRequired

Project's default policy for standard analysis

tagsstring[]Optional

Tags to categorize and group projects

Responses
chevron-right
200

Successful response

application/json
errorbooleanOptional

Indicates if an error occurred

messagestringOptional

Human-readable message about project creation status

scan_idstring · nullableOptional

ID of the started scan (if scan started successfully)

post
/integration/github/set

Create a GitLab connected project

post

Create a GitLab-connected project with given parameters.

Body
repoIdstring · ${GitLab.repository.name}:${GitLab.repository.id}Required

GitLab repository id and name combined as string concatenated.

Example: repo_name:1234id
branchstringRequired

Default branch of the project for standard analysis.

Example: main
typestring · enumRequired

Repositories view information (public or private)

Possible values:
accountstring · ${gitlab.account.id}Required

Related repository owner's GitLab login

policy_idstringRequired

Project's default policy for standard analysis

tagsstring[]Optional

Tags to categorize and group projects

Responses
chevron-right
200

Successful response

application/json
errorbooleanOptional

Indicates if an error occurred

messagestringOptional

Human-readable message about project creation status

scan_idstring · nullableOptional

ID of the started scan (if scan started successfully)

post
/integration/gitlab/set

Create a Azure connected project

post

Create a Azure-connected project with given parameters.

Body
repoIdstringRequired

Depends on repository type, if it is Git type repository it wil formatted like, ${azureRepository.name}:${azureRepository.,d}:${azureRepository.project.id} but if it is Tfvc project, it will formetted like: ${tfvcItem.name}:${azureRepository.id}.

Example: repo_name:1234id:projId | item_name:item_id
typestring · enumRequired

Repositories source control type

Possible values:
branchstringRequired

Default branch of the project for standard analysis.

Example: main
accountstring · ${azureAccount.accountName}Required

Related repository owner's Azure account

policy_idstringRequired

Project's default policy for standard analysis

pathstring · ${azureItem.path}Optional

It will required only importing tfvc project.

tagsstring[]Optional

Tags to categorize and group projects

Responses
chevron-right
200

Successful response

application/json
errorbooleanOptional

Indicates if an error occurred

messagestringOptional

Human-readable message about project creation status

scan_idstring · nullableOptional

ID of the started scan (if scan started successfully)

post
/integration/azure/set

Create a Bitbucket connected project

post

Create a Bitbucket connected project with given parameters.

Query parameters
serverbooleanRequired

If the connection is coming from a Bitbucket server, this should be true. If cloud, it should be false.

Body
repositorystringRequired

Bitbucket repository name.

Example: my-repo
typestring · enumRequired

Repository view information.

Example: publicPossible values:
projectNamestring · ${bitbucketRepository.name}_${bitbucketRepository.name}Required

Name for project generation in the application.

Example: my-repo_my-repo
projectKeystringRequired

Used for connection URL generation.

Example: PROJKEY
accountstringRequired

Depends on environment; if Bitbucket server, use bitbucketProject.name. If cloud, use bitbucketWorkspace.account

Example: my-project
policy_idstringRequired

Default policy ID for standard analysis.

Example: 7xoPVRFf6l86
branchstringRequired

Default branch of the project for standard analysis.

Example: main
workspacestringOptional

Account's workspace information. Required if in a cloud environment.

Example: my-workspace
tagsstring[]Optional

Tags to categorize and group projects.

Example: [tag1, tag2]
Responses
chevron-right
200

Successful response

application/json
errorbooleanOptional

Indicates if there was an error.

messagestringOptional

Detailed message about the project creation status.

scan_idstring · nullableOptional

ID of the initiated scan, if applicable.

post
/integration/bitbucket/set

Trigger an existing Azure project scan

post

Trigger a scan for an existing Azure project with the provided parameters.

Body
projectstringRequired

The project to be analyzed.

branchstringOptional

Optional branch parameter for analyzing a different branch. Defaults to the project's default branch if not provided.

policy_idstringOptional

Optional policy_id parameter for analyzing the project with a different policy scope. Defaults to the project's default policy_id if not provided.

Responses
chevron-right
200

Successful response

application/json
messagestringOptional

Success message.

Example: Scan started successfully.
scan_idstringOptional

ID of the initiated scan.

Example: scan1234
post
/integration/azure/start

Trigger an existing Bitbucket project scan

post

Trigger a scan for an existing Bitbucket project with the provided parameters.

Body
projectstringRequired

The project to be analyzed.

branchstringOptional

Optional branch parameter for analyzing a different branch. Defaults to the project's default branch if not provided.

policy_idstringOptional

Optional policy_id parameter for analyzing the project with a different policy scope. Defaults to the project's default policy_id if not provided.

Responses
chevron-right
200

Successful response

application/json
messagestringOptional

Success message.

Example: Scan started successfully.
scan_idstringOptional

ID of the initiated scan.

Example: scan1234
post
/integration/bitbucket/start

Trigger an existing Git project scan

post

Trigger a scan for an existing Git project with the provided parameters.

Body
projectstringRequired

The project to be analyzed.

branchstringOptional

Optional branch parameter for analyzing a different branch. Defaults to the project's default branch if not provided.

policy_idstringOptional

Optional policy_id parameter for analyzing the project with a different policy scope. Defaults to the project's default policy_id if not provided.

Responses
chevron-right
200

Successful response

application/json
messagestringOptional

Success message.

Example: Scan started successfully.
scan_idstringOptional

ID of the initiated scan.

Example: scan1234
post
/integration/git/start

Trigger an existing Github project scan

post

Trigger a scan for an existing Github project with the provided parameters.

Body
projectstringRequired

The project to be analyzed.

branchstringOptional

Optional branch parameter for analyzing a different branch. Defaults to the project's default branch if not provided.

policy_idstringOptional

Optional policy_id parameter for analyzing the project with a different policy scope. Defaults to the project's default policy_id if not provided.

Responses
chevron-right
200

Successful response

application/json
messagestringOptional

Success message.

Example: Scan started successfully.
scan_idstringOptional

ID of the initiated scan.

Example: scan1234
post
/integration/github/start

Trigger an existing Gitlab project scan

post

Trigger a scan for an existing Gitlab project with the provided parameters.

Body
project_namestringOptional

The project to be analyzed.

branchstringOptional

Optional branch parameter for analyzing a different branch. Defaults to the project's default branch if not provided.

policy_idstringOptional

Optional policy_id parameter for analyzing the project with a different policy scope. Defaults to the project's default policy_id if not provided.

Responses
chevron-right
200

Successful response

application/json
messagestringOptional

Success message.

Example: Scan started successfully.
scan_idstringOptional

ID of the initiated scan.

Example: scan1234
post
/integration/gitlab/start

Last updated