Secret findings
List secret findings
List leaked-credential findings detected across the organization’s connected source repositories, with their current triage state.
GET
/
api
/
v1
/
orgs
/
{orgSlug}
/
secret-findings
List secret findings
curl --request GET \
--url https://api.tolmo.com/api/v1/orgs/{orgSlug}/secret-findings \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.tolmo.com/api/v1/orgs/{orgSlug}/secret-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.tolmo.com/api/v1/orgs/{orgSlug}/secret-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.tolmo.com/api/v1/orgs/{orgSlug}/secret-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.tolmo.com/api/v1/orgs/{orgSlug}/secret-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.tolmo.com/api/v1/orgs/{orgSlug}/secret-findings")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tolmo.com/api/v1/orgs/{orgSlug}/secret-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[
{
"id": "<string>",
"orgId": "<string>",
"resourceKey": "<string>",
"fingerprint": "<string>",
"source": "<string>",
"engine": "<string>",
"engineVersion": "<string>",
"ruleId": "<string>",
"propertyPath": "<string>",
"severity": "<string>",
"entropy": 123,
"verificationState": "<string>",
"origin": "<string>",
"matchContext": "<string>",
"startLine": 123,
"endLine": 123,
"startColumn": 123,
"endColumn": 123,
"firstSeenAt": "<string>",
"lastSeenAt": "<string>",
"latestScanId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"triageVerdict": "real_secret",
"triageConfidence": "high",
"triageSeverity": "critical",
"triageReasoning": "<string>",
"triageModel": "<string>",
"triageVerified": true,
"triageVerificationMethod": "<string>",
"triageEvaluatedScanId": "<string>",
"triageEvaluatedAt": "<string>",
"triagePostedFindingId": "<string>",
"integrationId": "<string>",
"isActive": true,
"activeLastSeenAt": "<string>",
"lastValidatedAt": "<string>",
"validationError": "<string>",
"validationMethod": "<string>",
"tokenOwner": "<string>",
"tokenOwnerType": "<string>",
"tokenScopes": [
"<string>"
],
"tokenPrivilege": "<string>",
"tokenIdentity": {}
}
]Authorizations
A Tolmo API token, sent as Authorization: Bearer <token>. Either a user token (usr_tok.*, minted by tolmo auth login, scoped to your own permissions) or an org API token created in the Tolmo app, for CI and automation.
Path Parameters
Query Parameters
ISO-8601 timestamp; only secrets last seen on or after this point are returned
Pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$Required range:
1 <= x <= 500Required range:
0 <= x <= 9007199254740991When set, returns only rows whose triage is missing or evaluated against a different scan than latest_scan_id. Drives the secret-finding-triage agent sweep.
Response
200 - application/json
Default Response
Available options:
real_secret, likely_real, likely_false_positive, clear_false_positive Available options:
high, medium, low Available options:
critical, high, medium, low Show child attributes
Show child attributes
⌘I
List secret findings
curl --request GET \
--url https://api.tolmo.com/api/v1/orgs/{orgSlug}/secret-findings \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.tolmo.com/api/v1/orgs/{orgSlug}/secret-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.tolmo.com/api/v1/orgs/{orgSlug}/secret-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.tolmo.com/api/v1/orgs/{orgSlug}/secret-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.tolmo.com/api/v1/orgs/{orgSlug}/secret-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.tolmo.com/api/v1/orgs/{orgSlug}/secret-findings")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tolmo.com/api/v1/orgs/{orgSlug}/secret-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[
{
"id": "<string>",
"orgId": "<string>",
"resourceKey": "<string>",
"fingerprint": "<string>",
"source": "<string>",
"engine": "<string>",
"engineVersion": "<string>",
"ruleId": "<string>",
"propertyPath": "<string>",
"severity": "<string>",
"entropy": 123,
"verificationState": "<string>",
"origin": "<string>",
"matchContext": "<string>",
"startLine": 123,
"endLine": 123,
"startColumn": 123,
"endColumn": 123,
"firstSeenAt": "<string>",
"lastSeenAt": "<string>",
"latestScanId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"triageVerdict": "real_secret",
"triageConfidence": "high",
"triageSeverity": "critical",
"triageReasoning": "<string>",
"triageModel": "<string>",
"triageVerified": true,
"triageVerificationMethod": "<string>",
"triageEvaluatedScanId": "<string>",
"triageEvaluatedAt": "<string>",
"triagePostedFindingId": "<string>",
"integrationId": "<string>",
"isActive": true,
"activeLastSeenAt": "<string>",
"lastValidatedAt": "<string>",
"validationError": "<string>",
"validationMethod": "<string>",
"tokenOwner": "<string>",
"tokenOwnerType": "<string>",
"tokenScopes": [
"<string>"
],
"tokenPrivilege": "<string>",
"tokenIdentity": {}
}
]