Compare crypto findings with another completed scan
curl --request GET \
--url https://{tenant}.earnie.dev/v1/scans/{scanId}/crypto/diff \
--header 'Authorization: Bearer <token>'import requests
url = "https://{tenant}.earnie.dev/v1/scans/{scanId}/crypto/diff"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{tenant}.earnie.dev/v1/scans/{scanId}/crypto/diff', 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://{tenant}.earnie.dev/v1/scans/{scanId}/crypto/diff",
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://{tenant}.earnie.dev/v1/scans/{scanId}/crypto/diff"
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://{tenant}.earnie.dev/v1/scans/{scanId}/crypto/diff")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenant}.earnie.dev/v1/scans/{scanId}/crypto/diff")
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{
"scan_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"against_scan_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"summary": {
"new": 1,
"resolved": 1,
"re_detected": 1,
"still_open": 1
},
"new": [
{
"finding_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"identity_hash": "<string>",
"locator": "<string>",
"rule_key": "<string>",
"title": "<string>",
"severity": "critical",
"state": "open"
}
],
"resolved": [
{
"finding_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"identity_hash": "<string>",
"locator": "<string>",
"rule_key": "<string>",
"title": "<string>",
"severity": "critical",
"state": "open"
}
],
"re_detected": [
{
"finding_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"identity_hash": "<string>",
"locator": "<string>",
"rule_key": "<string>",
"title": "<string>",
"severity": "critical",
"state": "open"
}
],
"still_open": [
{
"finding_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"identity_hash": "<string>",
"locator": "<string>",
"rule_key": "<string>",
"title": "<string>",
"severity": "critical",
"state": "open"
}
]
}{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}scans
Compare crypto findings with another completed scan
Compares immutable crypto observations by stable finding identity. Both scans must belong to the authenticated organization’s same project, be completed, and carry full-coverage crypto observations. The against scan must precede scanId in canonical (created_at, id) order. Empty arrays are returned for empty buckets, including a clean crypto scan.
GET
/
v1
/
scans
/
{scanId}
/
crypto
/
diff
Compare crypto findings with another completed scan
curl --request GET \
--url https://{tenant}.earnie.dev/v1/scans/{scanId}/crypto/diff \
--header 'Authorization: Bearer <token>'import requests
url = "https://{tenant}.earnie.dev/v1/scans/{scanId}/crypto/diff"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{tenant}.earnie.dev/v1/scans/{scanId}/crypto/diff', 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://{tenant}.earnie.dev/v1/scans/{scanId}/crypto/diff",
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://{tenant}.earnie.dev/v1/scans/{scanId}/crypto/diff"
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://{tenant}.earnie.dev/v1/scans/{scanId}/crypto/diff")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenant}.earnie.dev/v1/scans/{scanId}/crypto/diff")
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{
"scan_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"against_scan_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"summary": {
"new": 1,
"resolved": 1,
"re_detected": 1,
"still_open": 1
},
"new": [
{
"finding_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"identity_hash": "<string>",
"locator": "<string>",
"rule_key": "<string>",
"title": "<string>",
"severity": "critical",
"state": "open"
}
],
"resolved": [
{
"finding_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"identity_hash": "<string>",
"locator": "<string>",
"rule_key": "<string>",
"title": "<string>",
"severity": "critical",
"state": "open"
}
],
"re_detected": [
{
"finding_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"identity_hash": "<string>",
"locator": "<string>",
"rule_key": "<string>",
"title": "<string>",
"severity": "critical",
"state": "open"
}
],
"still_open": [
{
"finding_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"identity_hash": "<string>",
"locator": "<string>",
"rule_key": "<string>",
"title": "<string>",
"severity": "critical",
"state": "open"
}
]
}{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}Authorizations
Query Parameters
Response
Stable-identity crypto finding comparison.
Stable-identity comparison between two completed full-coverage crypto scans. resolved means absent from the target scan, not a human triage resolution. A finding first seen before the comparison scan, absent, and observed again is re_detected rather than new.