curl --request GET \
--url https://app.trustivan.com/api/v1/compliance/frameworks/{id}/report \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/compliance/frameworks/{id}/report"
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/frameworks/{id}/report', 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/frameworks/{id}/report"
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))
}<string>{
"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 one framework's assessment as a report
The same assessment GET /compliance/frameworks/{id} returns, rendered
as a file to attach to an audit package: csv for a spreadsheet,
html for a print-optimised page.
There is no PDF format. No PDF library is in the module and adding one for a document every browser can already print would be a heavy dependency for nothing: the HTML carries print CSS, and “Save as PDF” is the browser’s Print command.
Every rendering names the organization, states when it was generated and when the evidence was collected, and carries the framework’s disclaimer in full: a report that dropped it would be the one rendering of an assessment that reads as a certification.
Same permission (assets:read) and the same fail-closed chain
verification as the JSON assessment, so a downloaded report can never
say more than the API does.
curl --request GET \
--url https://app.trustivan.com/api/v1/compliance/frameworks/{id}/report \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/compliance/frameworks/{id}/report"
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/frameworks/{id}/report', 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/frameworks/{id}/report"
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))
}<string>{
"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
Path Parameters
Response
The report, as an attachment.
The response is of type string.