List findings
curl --request GET \
--url https://api.app.chainloop.dev/v1/findings \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.app.chainloop.dev/v1/findings"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.app.chainloop.dev/v1/findings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.app.chainloop.dev/v1/findings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.app.chainloop.dev/v1/findings"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.app.chainloop.dev/v1/findings")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.app.chainloop.dev/v1/findings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"pagination": {
"total_count": 1,
"page": 4,
"total_pages": 1,
"page_size": 7
},
"results": [
{
"severity": "FINDING_SEVERITY_UNSPECIFIED",
"package_purl": "package_purl",
"linear_ticket": {
"finding_id": "finding_id",
"external_scope_id": "external_scope_id",
"external_url": "external_url",
"external_identifier": "external_identifier",
"provider": "provider",
"state_name": "state_name",
"state_type": "state_type",
"automatic": true,
"id": "id"
},
"first_seen_at": "2000-01-23T04:56:07.000Z",
"recommendation": "recommendation",
"external_id": "external_id",
"source": "source",
"vulnerability": {
"is_in_kev": true,
"description": "description",
"cvss_vectors": [
"cvss_vectors",
"cvss_vectors"
]
},
"finding_type": "FINDING_TYPE_UNSPECIFIED",
"project_name": "project_name",
"has_conflicting_assessments": true,
"status_detail": "FINDING_STATUS_DETAIL_UNSPECIFIED",
"resolution_reason": "FINDING_RESOLUTION_REASON_UNSPECIFIED",
"needs_review": true,
"project_version_name": "project_version_name",
"fixed_version": "fixed_version",
"artifact_ids": [
"artifact_ids",
"artifact_ids"
],
"assessment_ids": [
"assessment_ids",
"assessment_ids"
],
"location": "location",
"id": "id",
"effective_assessment_status": "ASSESSMENT_STATUS_UNSPECIFIED",
"last_seen_at": "2000-01-23T04:56:07.000Z",
"effective_assessment_id": "effective_assessment_id",
"status": "FINDING_STATUS_UNSPECIFIED"
},
{
"severity": "FINDING_SEVERITY_UNSPECIFIED",
"package_purl": "package_purl",
"linear_ticket": {
"finding_id": "finding_id",
"external_scope_id": "external_scope_id",
"external_url": "external_url",
"external_identifier": "external_identifier",
"provider": "provider",
"state_name": "state_name",
"state_type": "state_type",
"automatic": true,
"id": "id"
},
"first_seen_at": "2000-01-23T04:56:07.000Z",
"recommendation": "recommendation",
"external_id": "external_id",
"source": "source",
"vulnerability": {
"is_in_kev": true,
"description": "description",
"cvss_vectors": [
"cvss_vectors",
"cvss_vectors"
]
},
"finding_type": "FINDING_TYPE_UNSPECIFIED",
"project_name": "project_name",
"has_conflicting_assessments": true,
"status_detail": "FINDING_STATUS_DETAIL_UNSPECIFIED",
"resolution_reason": "FINDING_RESOLUTION_REASON_UNSPECIFIED",
"needs_review": true,
"project_version_name": "project_version_name",
"fixed_version": "fixed_version",
"artifact_ids": [
"artifact_ids",
"artifact_ids"
],
"assessment_ids": [
"assessment_ids",
"assessment_ids"
],
"location": "location",
"id": "id",
"effective_assessment_status": "ASSESSMENT_STATUS_UNSPECIFIED",
"last_seen_at": "2000-01-23T04:56:07.000Z",
"effective_assessment_id": "effective_assessment_id",
"status": "FINDING_STATUS_UNSPECIFIED"
}
]
}{
"code": 0,
"details": [
"details",
"details"
],
"message": "message"
}{
"code": 6,
"details": [
"details",
"details"
],
"message": "message"
}{
"code": 1,
"details": [
"details",
"details"
],
"message": "message"
}{
"code": 5,
"details": [
"details",
"details"
],
"message": "message"
}{
"code": 5,
"details": [
{
"@type": "@type"
},
{
"@type": "@type"
}
],
"message": "message"
}List findings
List security findings (vulnerabilities, license violations, etc.) for the current organization, with optional filters.
GET
/
v1
/
findings
List findings
curl --request GET \
--url https://api.app.chainloop.dev/v1/findings \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.app.chainloop.dev/v1/findings"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.app.chainloop.dev/v1/findings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.app.chainloop.dev/v1/findings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.app.chainloop.dev/v1/findings"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.app.chainloop.dev/v1/findings")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.app.chainloop.dev/v1/findings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"pagination": {
"total_count": 1,
"page": 4,
"total_pages": 1,
"page_size": 7
},
"results": [
{
"severity": "FINDING_SEVERITY_UNSPECIFIED",
"package_purl": "package_purl",
"linear_ticket": {
"finding_id": "finding_id",
"external_scope_id": "external_scope_id",
"external_url": "external_url",
"external_identifier": "external_identifier",
"provider": "provider",
"state_name": "state_name",
"state_type": "state_type",
"automatic": true,
"id": "id"
},
"first_seen_at": "2000-01-23T04:56:07.000Z",
"recommendation": "recommendation",
"external_id": "external_id",
"source": "source",
"vulnerability": {
"is_in_kev": true,
"description": "description",
"cvss_vectors": [
"cvss_vectors",
"cvss_vectors"
]
},
"finding_type": "FINDING_TYPE_UNSPECIFIED",
"project_name": "project_name",
"has_conflicting_assessments": true,
"status_detail": "FINDING_STATUS_DETAIL_UNSPECIFIED",
"resolution_reason": "FINDING_RESOLUTION_REASON_UNSPECIFIED",
"needs_review": true,
"project_version_name": "project_version_name",
"fixed_version": "fixed_version",
"artifact_ids": [
"artifact_ids",
"artifact_ids"
],
"assessment_ids": [
"assessment_ids",
"assessment_ids"
],
"location": "location",
"id": "id",
"effective_assessment_status": "ASSESSMENT_STATUS_UNSPECIFIED",
"last_seen_at": "2000-01-23T04:56:07.000Z",
"effective_assessment_id": "effective_assessment_id",
"status": "FINDING_STATUS_UNSPECIFIED"
},
{
"severity": "FINDING_SEVERITY_UNSPECIFIED",
"package_purl": "package_purl",
"linear_ticket": {
"finding_id": "finding_id",
"external_scope_id": "external_scope_id",
"external_url": "external_url",
"external_identifier": "external_identifier",
"provider": "provider",
"state_name": "state_name",
"state_type": "state_type",
"automatic": true,
"id": "id"
},
"first_seen_at": "2000-01-23T04:56:07.000Z",
"recommendation": "recommendation",
"external_id": "external_id",
"source": "source",
"vulnerability": {
"is_in_kev": true,
"description": "description",
"cvss_vectors": [
"cvss_vectors",
"cvss_vectors"
]
},
"finding_type": "FINDING_TYPE_UNSPECIFIED",
"project_name": "project_name",
"has_conflicting_assessments": true,
"status_detail": "FINDING_STATUS_DETAIL_UNSPECIFIED",
"resolution_reason": "FINDING_RESOLUTION_REASON_UNSPECIFIED",
"needs_review": true,
"project_version_name": "project_version_name",
"fixed_version": "fixed_version",
"artifact_ids": [
"artifact_ids",
"artifact_ids"
],
"assessment_ids": [
"assessment_ids",
"assessment_ids"
],
"location": "location",
"id": "id",
"effective_assessment_status": "ASSESSMENT_STATUS_UNSPECIFIED",
"last_seen_at": "2000-01-23T04:56:07.000Z",
"effective_assessment_id": "effective_assessment_id",
"status": "FINDING_STATUS_UNSPECIFIED"
}
]
}{
"code": 0,
"details": [
"details",
"details"
],
"message": "message"
}{
"code": 6,
"details": [
"details",
"details"
],
"message": "message"
}{
"code": 1,
"details": [
"details",
"details"
],
"message": "message"
}{
"code": 5,
"details": [
"details",
"details"
],
"message": "message"
}{
"code": 5,
"details": [
{
"@type": "@type"
},
{
"@type": "@type"
}
],
"message": "message"
}Query Parameters
Filter by statuses
Filter by one or more statuses
- FINDING_STATUS_OPEN: OPEN: newly detected finding, not yet triaged or acted upon
- FINDING_STATUS_IN_PROGRESS: IN_PROGRESS: finding is being investigated or actively remediated
- FINDING_STATUS_RESOLVED: RESOLVED: finding has been fixed, mitigated, or otherwise closed (see resolution_reason for details)
- FINDING_STATUS_REJECTED: REJECTED: finding has been dismissed by an operator (e.g. false positive, risk accepted, out of scope)
Available options:
FINDING_STATUS_UNSPECIFIED, FINDING_STATUS_OPEN, FINDING_STATUS_IN_PROGRESS, FINDING_STATUS_RESOLVED, FINDING_STATUS_REJECTED 