curl --request POST \
--url https://app.trustivan.com/api/v1/compliance/evidence-packs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"from": "2026-10-01",
"to": "2026-10-31"
}
'import requests
url = "https://app.trustivan.com/api/v1/compliance/evidence-packs"
payload = {
"from": "2026-10-01",
"to": "2026-10-31"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({from: '2026-10-01', to: '2026-10-31'})
};
fetch('https://app.trustivan.com/api/v1/compliance/evidence-packs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/compliance/evidence-packs"
payload := strings.NewReader("{\n \"from\": \"2026-10-01\",\n \"to\": \"2026-10-31\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"evidence_pack": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"framework": "<string>",
"period_from": "2023-11-07T05:31:56Z",
"period_to": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"sha256": "<string>",
"key_id": "<string>",
"controls": 123,
"passing": 123,
"failing": 123,
"not_assessed": 123,
"outside_evidence": 123,
"created_at": "2023-11-07T05:31:56Z"
}
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Create an evidence pack
Builds a point-in-time record for one framework over a date range and
stores it. Each control is passing (every check TRUSTIVAN holds for
it showed no open issue), failing, not_assessed (no data yet) or
outside_evidence (TRUSTIVAN observes nothing relevant). None of these
says a control is satisfied; every pack carries the framework’s
disclaimer.
The evidence behind each control: what TRUSTIVAN’s data showed at generation, and the period’s activity (findings opened and resolved, lifecycle events, suppressions with who made them, scans, policy verdicts, SLA attainment against the organization’s own targets, and the last collected cloud and Kubernetes benchmark results including passes). The audit chain is verified first (a verification error refuses the pack, 500) and the head of each hash-chained table is recorded.
The JSON is stored as the exact bytes that were signed
(HMAC-SHA256, the audit checkpoint’s scheme), so every later download
is identical. from and to are dates (YYYY-MM-DD, UTC; to
includes that whole day) or RFC 3339 timestamps. A to in the future
is cut to now; a period may be at most 366 days.
curl --request POST \
--url https://app.trustivan.com/api/v1/compliance/evidence-packs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"from": "2026-10-01",
"to": "2026-10-31"
}
'import requests
url = "https://app.trustivan.com/api/v1/compliance/evidence-packs"
payload = {
"from": "2026-10-01",
"to": "2026-10-31"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({from: '2026-10-01', to: '2026-10-31'})
};
fetch('https://app.trustivan.com/api/v1/compliance/evidence-packs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/compliance/evidence-packs"
payload := strings.NewReader("{\n \"from\": \"2026-10-01\",\n \"to\": \"2026-10-31\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"evidence_pack": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"framework": "<string>",
"period_from": "2023-11-07T05:31:56Z",
"period_to": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"sha256": "<string>",
"key_id": "<string>",
"controls": 123,
"passing": 123,
"failing": 123,
"not_assessed": 123,
"outside_evidence": 123,
"created_at": "2023-11-07T05:31:56Z"
}
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}