Skip to content
Connect an agent

Organisations

Download a compliance evidence pack

For a framework and a range of at most 400 days: the controls, the diagrams mapped to them, every check on a default branch, the drift episodes and their pull requests, the approval decisions, the hand-drawn diagrams and the methodology.

GET/orgs/{org}/evidence/export

TL;DR

QuestionAnswer
What does it do?Download a compliance evidence pack.
What does it take?org in the path, and framework, from, to, format, paper, open in the query string.
What does it return?Status 200 with a body of type string.
What can go wrong?400 the query or the range is not valid (evidence.range_invalid); 401 not signed in; 403 a member or a reader (orgs.forbidden), or a plan without compliance evidence (plan.compliance_evidence_not_included); 404 no such organisation, or the caller is not a member of it; 429 too many requests; 503 organisations are not set up on this server. Every failure uses the one error envelope.

What it does

For a framework and a range of at most 400 days: the controls, the diagrams mapped to them, every check on a default branch, the drift episodes and their pull requests, the approval decisions, the hand-drawn diagrams and the methodology. As an HTML report to print as PDF, JSON, or CSV. The owner and admins, on Enterprise. Audited.

Path parameters

FieldTypeRequiredDescription
orgstringyesThe organisation's id or its slug.

Query parameters

FieldTypeRequiredDescription
framework"pci-dss" | "soc2" | "iso27001" | "nist-800-53" | "all"yesOne framework, or all.
fromstringyesThe first day, YYYY-MM-DD, UTC.
tostringyesThe last day, YYYY-MM-DD, UTC, at most 400 days after from.
format"html" | "json" | "checks.csv" | "episodes.csv" | "diagrams.csv"yeshtml (the report to print as PDF), json (the pack), or one CSV table.
paper"a4" | "letter"noThe report's paper: a4 or letter. Only the report reads it.
open"true" | "false"notrue opens the report in the browser to print, rather than downloading it.

Responses

StatusMeaningBody
200The file, as an attachment.string
400The query or the range is not valid (evidence.range_invalid).ErrorResponse
401Not signed in.ErrorResponse
403A member or a reader (orgs.forbidden), or a plan without compliance evidence (plan.compliance_evidence_not_included).ErrorResponse
404No such organisation, or the caller is not a member of it.ErrorResponse
429Too many requests.ErrorResponse
503Organisations are not set up on this server.ErrorResponse

Response body

A 200 answer has the type string.

FieldTypeRequiredDescription

See also

DocWhy
API referenceEvery endpoint, and the error envelope
SchemasEvery request and response type
Tool referenceThe operations as callable tools