Export Report
export_reportExport a threat model as CSV, PDF, HTML, or JSON audit archive, or a tag as an HTML auditor report. Read-only; no source changes.
Instructions
Export a threat model or a tag as a downloadable document. Read-only; no side effects on the source.
scope selects what is exported and how scope_id is read; format selects the representation:
scope="model"(scope_id= model id) supportsformat∈ {csv,pdf,html,archive}:csv— the model's current state rendered as CSV; returned inline as UTF-8 text incontent.pdf/html— rendered document returned base64-encoded incontent_b64(withcontent_type). Runs as a server-side job; progress is reported automatically while it completes, which may take time for large models.archive— the self-contained, independently-verifiable JSON audit bundle of the model's current state: its latest version and controls, live assertions (with Tier 1 / Tier 2 verdicts and attested flags) and the runs behind them, open findings and those a person closed, risk acceptances and other decisions in force, assumption overrides, attestations, and instance sufficiency signatures; each control's per-clause evidence basis travels with it. Earlier versions, activity and chat are not in it. Those verdicts are the origin's record of what it claimed, which is what a third party checks against the signatures; an importing workspace credits what its own verification establishes (seeimport_threat_model_archive). Returned as{..., "envelope": <dict>}; feed the envelope toimport_threat_model_archiveto restore it into any workspace. Model scope only.
scope="tag"(scope_id= tag id) supports onlyformat="html": the signed auditor report, every member model's report after the reliance edges among the members (each with its status and whether it credits its objective), in one HTML document returned inline incontent.csv,pdf, andarchiveare rejected for tag scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | Yes | export boundary — "model" or "tag". | |
| format | No | "csv" (default), "pdf", "html", or "archive". Tag scope requires "html"; "archive" is model-only. | csv |
| scope_id | Yes | id of the model or tag selected by ``scope``. | |
| server_version | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||