Skip to content

Code Insight REST API Documentation (v1)

The Code Insight REST APIs provide a standardized interface for interacting with the application.

An authorization JWT token must be included in the HTTP Authorization header using the Bearer schema. The token can be obtained from the Code Insight Web UI under the Preferences menu. To set the token, click the Authorize button below on the right, enter the JWT token in the Value field, then click Authorize and close the dialog. Once authorized, the token will be automatically included in the HTTP Authorization header for all API requests made through the Swagger UI.

Note: If accessing the REST APIs through external tools such as curl or Postman, include the token manually in the HTTP header using the following format: Authorization: Bearer JWT_TOKEN. "Bearer" must precede the actual JWT token value.

Download OpenAPI description
Languages
Servers
Mock server
https://codeinsightapi.redocly.app/_mock/swagger
Code Insight REST API Server
https://codeinsightapi.redocly.app/codeinsight/api

Email Templates

Internal API for fetching custom email templates and images from core server

Operations

CodebaseFolder

Operations

Deprecated APIs

Operations

Component

Operations

Files

Operations

Folder

Operations

Project API

Operations

Generate Report

Request

Generates Reports (PROJECT, AUDIT, NOTICES, CUSTOM_REPORT) for a given projectId. For ALL Reports we need to provide the id of the report. All project users including Observer, Reviewer and Analyst can generate reports for private projects.

Security
bearerAuth
Path
projectIdinteger(int64)>= 1required

ID of the Project

Example: 1
reportIdinteger(int64)>= 1required

ID of the Report that is to be generated

Example: 1
Bodyapplication/json

The success response of the generate is a taskId which should be used during download. If the report type is custom report and enableProjectPicker is true otherProjectId is required.

otherProjectIdinteger(int32)

otherProjectId

Example: 1
optionsobject

options

curl -i -X POST \
  https://codeinsightapi.redocly.app/_mock/swagger/projects/1/reports/1/generate \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "otherProjectId": 1,
    "options": {
      "property1": "string",
      "property2": "string"
    }
  }'

Responses

OK

Add child projects to parent project

Request

Add child projects to parent project.

Security
bearerAuth
Path
projectIdinteger(int64)>= 1required

Id of Parent Project

Example: 1
Query
childProjectIdsArray of integers(int32)required

Id of Child Projects

curl -i -X POST \
  'https://codeinsightapi.redocly.app/_mock/swagger/projects/1/children?childProjectIds=0' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

OK

Remove child Projects from parent project

Request

Remove child project from parent project

Security
bearerAuth
Path
projectIdinteger(int64)>= 1required

Id of Parent Project

Example: 1
Query
childProjectIdsArray of integers(int32)required

Id of Child Projects

curl -i -X DELETE \
  'https://codeinsightapi.redocly.app/_mock/swagger/projects/1/children?childProjectIds=0' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

OK

Inventory API

Operations

inventoryWorkflow

Operations

Jobs

Operations

ldap

Operations

license

Operations

sourceCodeManagement

Operations

Reports

Operations

Rules

Operations

Scan profiles

Operations

Task

Operations

Scan API

Operations

User API

Operations

vulnerability

Operations