Download an evidence pack
curl --request GET \
--url https://app.trustivan.com/api/v1/compliance/evidence-packs/{id}/download \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/compliance/evidence-packs/{id}/download"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/compliance/evidence-packs/{id}/download', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/compliance/evidence-packs/{id}/download"
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))
}{}{
"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"
}Download an evidence pack
json is the signed pack exactly as stored; sig is its detached
signature (trustivan.evidence-pack-signature/v1: SHA-256 and
HMAC-SHA256 with the key id). csv is the control-to-evidence sheet
for vendor questionnaires and html the print-ready report; both are
rendered from the stored JSON and name its SHA-256.
Anyone can check the JSON’s SHA-256 against the record. Checking the
HMAC needs the signing key, which is derived from the deployment’s
TOKEN_ENCRYPTION_KEY: the operator runs
auditctl verify-pack PACK.json PACK.json.sig.
GET
/
compliance
/
evidence-packs
/
{id}
/
download
Download an evidence pack
curl --request GET \
--url https://app.trustivan.com/api/v1/compliance/evidence-packs/{id}/download \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/compliance/evidence-packs/{id}/download"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/compliance/evidence-packs/{id}/download', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/compliance/evidence-packs/{id}/download"
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))
}{}{
"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"
}Authorizations
Response
The file, as an attachment.
The response is of type object.