POST
/api/v1/compliance/iso-42001/statement-of-applicabilityGenerate ISO/IEC 42001 Statement of Applicability
Generates the SoA per Clause 6.1.3 by joining the static Annex A registry with the org's actual soc2_control_evidence rows. Each control gets an applicability flag, implementation status (implemented / partial / planned / not-applicable), evidence count, and last-evidence timestamp. Coverage percentage computed across applicable controls. Returns a SHA-256 snapshot hash on the canonical JSON for tamper detection on cached copies.
Authentication
Send Authorization: Bearer YOUR_API_KEY on every request. Generate API keys at /dashboard/api-keys.
Request body required
Example
{
"orgId": "00000000-0000-0000-0000-000000000000",
"scope": "<Optional override for the SoA's scope st>",
"version": "1.0",
"format": "json",
"persist": false
}Schema
{
"application/json": {
"schema": {
"type": "object",
"required": [
"orgId"
],
"properties": {
"orgId": {
"type": "string",
"format": "uuid"
},
"scope": {
"type": "string",
"maxLength": 2000,
"description": "Optional override for the SoA's scope statement (defaults to 'All AI systems operated by the organization')."
},
"version": {
"type": "string",
"maxLength": 50,
"default": "1.0",
"description": "SoA version label set by the customer (e.g. '2.1' after a re-baseline)."
},
"format": {
"type": "string",
"enum": [
"json",
"csv"
],
"default": "json",
"description": "Set to 'csv' to receive an RFC-4180 attachment download. Snapshot hash returned via X-Snapshot-Hash response header in CSV mode."
},
"persist": {
"type": "boolean",
"default": false,
"description": "When true, upserts the SoA into soa_snapshots on (org_id, framework, version). Re-saving same version overwrites."
}
}
}
}
}Response
200 example
{
"success": true
}All status codes
200Generated SoA with controls + totals + snapshotHash.
400Invalid orgId or scope.
Code samples
cURL
curl -X POST \
https://evalguard.ai/api/v1/compliance/iso-42001/statement-of-applicability \
-H "Authorization: Bearer $EVALGUARD_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "orgId": "00000000-0000-0000-0000-000000000000", "scope": "<Optional override for the SoA's scope st>", "version": "1.0", "format": "json", "persist": false }'TypeScript
import { EvalGuard } from "@evalguard/sdk";
const client = new EvalGuard({ apiKey: process.env.EVALGUARD_API_KEY });
const response = await client.request({
method: "POST",
path: "/api/v1/compliance/iso-42001/statement-of-applicability",
body: {
"orgId": "00000000-0000-0000-0000-000000000000",
"scope": "<Optional override for the SoA's scope st>",
"version": "1.0",
"format": "json",
"persist": false
},
});
console.log(response);Python
from evalguard import EvalGuard
import os
client = EvalGuard(api_key=os.environ["EVALGUARD_API_KEY"])
response = client.request(
method="POST",
path="/api/v1/compliance/iso-42001/statement-of-applicability",
body={
"orgId": "00000000-0000-0000-0000-000000000000",
"scope": "<Optional override for the SoA's scope st>",
"version": "1.0",
"format": "json",
"persist": False
},
)
print(response)Go
package main
import (
"context"
"fmt"
"os"
"github.com/evalguard/evalguard-go"
)
func main() {
client := evalguard.NewClient(os.Getenv("EVALGUARD_API_KEY"))
resp, err := client.Request(context.Background(), "POST", "/api/v1/compliance/iso-42001/statement-of-applicability", map[string]any{"orgId": "00000000-0000-0000-0000-000000000000", "scope": "<Optional override for the SoA's scope st>", "version": "1.0", "format": "json", "persist": false})
if err != nil { panic(err) }
fmt.Println(resp)
}Errors
400