curl --request GET \
--url https://app.trustivan.com/api/v1/orgs/current/export \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/orgs/current/export"
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/orgs/current/export', 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/orgs/current/export"
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"
}Everything the tenant can take with them
One file holding every finding, asset, policy and member. Requires
organization:delete, the same bar as the deletion it precedes:
reading any one of those is a viewer’s right, and serialising all of
them into a single download is a different act.
format=json (default) returns one document; format=csv returns a
ZIP of four sheets plus a manifest, because the four sections have four
different shapes and one CSV of all of them would be four tables glued
together.
The audit trail is not in it, deliberately. It has its own export
at /audit/export, which carries the hash-chain verification and the
erasure tombstones and is gated on the audit_export entitlement; a
second export path for the same rows would be a second one that could
disagree about what a tenant may take. The JSON envelope names that
endpoint.
No secret is in it at any format: an API key’s hash, a registry credential’s ciphertext and a workload’s key material are all excluded, because an export is a file that ends up in a download folder.
Each section is capped at 10,000 rows and the answer names any section that was truncated.
curl --request GET \
--url https://app.trustivan.com/api/v1/orgs/current/export \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/orgs/current/export"
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/orgs/current/export', 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/orgs/current/export"
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"
}Authorizations
Response
The export, as an attachment.