REST API v2
To call the functions of FOSSLight, you can use the REST API.
How to start
To call the REST API, you need to issue a TOKEN. Please follow the steps below.
- Log in with your Admin account
- In the System > User Management tab, you can issue a Token for each User.
REST API List

- For Demo service: https://demo.fosslight.org/swagger-ui/index.html (integration server : https://demo.fosslight.org/)
0. Header
Key | Required | Type | Value |
---|---|---|---|
Authorization | O | String | Issued token information |
How to Enter Token When Using Swagger UI
ℹ️ This is a feature provided to make authentication easier when using Swagger UI. If you are conducting tests with Curl or other API testing tools, you need to include the token information in the header for each API.
• Click the Authorize button.

• After entering the token information in the Value field of the popup, click the Authorize button.

• After entering the token information in the Value field of the popup, click the Authorize button.

1. Check OSS & License information
API | Response fo | Description |
---|---|---|
GET /api/v2/license | JSON | Query the license information.
|
GET /api/v2/oss | JSON | Query Open Source information.
|
POST /api/v2/oss | JSON | (Admin only) Register Open Source.
|
GET /api/v2/refine-download-location | JSON | (Admin only) Refine OSS information.
|
2. Check 3rd Party information
API | Response Format | Description |
---|---|---|
GET /api/v2/partners | JSON | Query 3rd Party information.
|
GET /api/v2/partners/{id}/bom/file | FILE | 3rd party BOM export - Download in file format.
|
GET /api/v2/partners/{id}/bom/json-data | JSON | 3rd party BOM export - Received in JSON format.
|
POST /api/v2/partners/{id}/editors | JSON | Add an editor to the 3rd party.
|
3. Check project information, upload OSS Report/Packaging, export/comparison of BOM
API | Response Format | Description |
---|---|---|
GET /api/v2/projects | JSON | Retrieve information about the Project including the following items:
|
POST /api/v2/projects | JSON | API for Project Creation. The generated project ID will be returned.
|
GET /api/v2/projects/models | JSON | Query model information for the Project.
|
DELETE /api/v2/projects/{id} | JSON | Delete project (Only projects that have not been distributed can be deleted).
|
GET /api/v2/projects/{id}/bom/compare-with/{compareId} | JSON | Project BOM Compare.
|
GET /api/v2/projects/{id}/bom/file | JSON | Project BOM export - Download in file format.
|
GET /api/v2/projects/{id}/bom/json-data | JSON | Project BOM export - Received in JSON format.
|
POST /api/v2/projects/{id}/editors | JSON | Add an editor to the project.
|
POST /api/v2/projects/{id}/models | JSON | Update the project's Model information through a list of model information strings. (Note: This will only add models; they will not be distributed. If distribution is needed after adding model information, please go to the Distribution tab and proceed with distribution.)
|
POST /api/v2/projects/{id}/models/upload | JSON | Update the project's Model information using a Model List Excel file. (Note: This will only add models; they will not be distributed. If distribution is needed after adding model information, please go to the Distribution tab and proceed with distribution.)
![]() |
GET /api/v2/projects/{id}/notice | JSON | Notice for receiving files for the project ID
|
POST /api/v2/projects/{id}/packages | JSON | Upload a package file to the project.
|
GET /api/v2/projects/{id}/security/json-data | JSON | Query security vulnerability information detected in the project in JSON format
|
POST /api/v2/projects/{id}/{tab_name}/oss-load | - | Load open-source information reviewed in previous projects into the project (Only projects with identification confirmed can be loaded).
|
POST /api/v2/projects/{id}/{tab_name}/reports | - | Upload an open-source analyzed report file to the project.
|
POST /api/v2/projects/{id}/{tab_name}/reset | - | Reset the tab selected in Project > Identification.
|
4. Check Vulnerability information
API | Response Format | Description |
---|---|---|
GET /api/v2/max-vulnerabilities | JSON | Check the maximum score and CVE ID by OSS Name and Version.
|
GET /api/v2/vulnerabilities | JSON | Query the CVE ID, CVSS Score, CVE ID Link, and OSS Information (OSS Name, OSS Version and Nickname) by OSS Name and Version or CVE ID.
|
5. Create Self-Check and register OSS Report
API | Response Format | Description |
---|---|---|
POST /api/v2/selfchecks | JSON | Create a Self-Check Project and receive the generated Self-Check ID.
|
GET /api/v2/selfchecks/{id} | JSON | Query the Self-Check project.
|
GET /api/v2/selfchecks/{id}/bom/file | FILE | Download the result file exported from Self-Check.
|
POST /api/v2/selfchecks/{id}/editors | - | Add editors to Self-Check.
|
POST /api/v2/selfchecks/{id}/report | - | Upload the analyzed open source report file to Self-Check.
|
6. Check the value of the code used when using API
API | Response Format | Description |
---|---|---|
GET /api/v2/codes | JSON | Query the list of values for the following parameters to be used when creating a project and querying 3rd Party in Self-Check.
|
7. Check Binary DB
API | Response Format | Description |
---|---|---|
GET /api/v2/binaries | JSON | Query based on the following information from the Binary DB.
|
8. Compliance Status
API | Response Format | Description |
---|---|---|
(enterprise only)POST /api/v2/compliance/3rdparty-status | JSON | Query 3rd Party Status using the 3rd Party creation date and Division.
|
(enterprise only)POST /api/v2/compliance/product-status | JSON | Query Product Status using the Project creation date, Model release date, and Division.
|
Error code
In case of an error, an HTTP Response Code other than 2xx will be returned.