Get coverage

Reads one framework clause by clause: every clause the standard publishes, what covers it, and which controls stand behind it — so a coverage number can be checked line by line rather than taken on trust.

GET /v1/trust/coverage/{framework}

Addresshttps://api.hanzo.ai/v1/trust/coverage/{framework}
MethodGET
Operationget_trust_coverage_by_framework
AuthAuthorization: Bearer $HANZO_API_KEY

Reads one framework clause by clause: every clause the standard publishes, what covers it, and which controls stand behind it — so a coverage number can be checked line by line rather than taken on trust.

Request

1 field.

FieldInTypeRequiredDescription
frameworkpathstringyesFramework is the framework id — "soc2", "iso27001", "nist80053".

Response

StatusBodyMeaning
200trust.clauseCoverageok
defaultproblem-detailsrefused

200 body — 20 fields.

FieldInTypeAlwaysDescription
automatedbodyinteger (int64)—Automated is how many clauses have an automated control behind them that something can fail on behalf of.
clausesbodytrust.clauseRow[]—Clauses is every clause the standard publishes, with what stands behind it.
clauses[].controlsbodystring[]—Controls are the ids behind it, strongest first.
clauses[].groupbodystring—Group is the clause's section within the standard, when it has one.
clauses[].idbodystring—ID is the clause id as the standard publishes it — "CC6.1", "A.5.15", "AC".
clauses[].levelbodystring—Level is what the strongest control pointed at this clause is worth: "automated", "partial" or "none".
clauses[].titlebodystring—Title is the standard's own words for that clause.
editionbodystring—Edition is which edition this clause list is taken from.
frameworkbodystring—Framework is the framework id — "soc2", "iso27001", "nist80053".
generatedbodyinteger (int64)—Generated is when this was computed, unix milliseconds.
namebodystring—Name is the published standard's name.
nonebodyinteger (int64)—None is how many have nothing behind them.
notebodystring—Note is what this clause list is scoped to, when a count alone would misrepresent it.
partialbodyinteger (int64)—Partial is how many are answered in part.
publisherbodystring—Publisher is who publishes it — AICPA, ISO/IEC, NIST.
statementbodystring—Statement is the counts as one sentence, carrying the unit.
totalbodyinteger (int64)—Total is the framework's WHOLE published clause list — the denominator.
unitbodystring—Unit is what ONE clause is — "criterion", "control", "family".
unitsbodystring—Units is the plural of Unit, for rendering a sentence.
versionbodystring—Version is the embedded inventory's version.

Failure carries the platform error shape — see Errors.

Examples

hanzo trust coverage get <framework>
import { Configuration, TrustApi } from 'hanzoai';

const api = new TrustApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getTrustCoverageByFramework({ framework: 'framework' });
from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import TrustApi

client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = TrustApi(client).get_trust_coverage_by_framework(framework='framework')
cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)

resp, _, err := client.TrustAPI.GetTrustCoverageByFramework(context.Background()).Execute()
if err != nil {
	return err
}
use hanzo_client::apis::{configuration::Configuration, trust_api};

let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();

let result = trust_api::get_trust_coverage_by_framework(&cfg, Default::default()).await?;
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.TrustApi;

ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));

var result = new TrustApi(client).getTrustCoverageByFramework();
curl https://api.hanzo.ai/v1/trust/coverage/<framework> \
  -H "Authorization: Bearer $HANZO_API_KEY"

Tool trust, op get_trust_coverage_by_framework — POST the JSON-RPC envelope to https://api.hanzo.ai/v1/mcp.

curl -X POST https://api.hanzo.ai/v1/mcp \
  -H "Authorization: Bearer $HANZO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
       "jsonrpc": "2.0",
       "id": 1,
       "method": "tools/call",
       "params": {
         "name": "trust",
         "arguments": {
           "op": "get_trust_coverage_by_framework",
           "input": {
             "framework": "<framework>"
           }
         }
       }
     }'

Trust API · All Hanzo APIs · Interactive reference

Was this page useful?