POST
/api/v1/compliance/eu-ai-act/annex-ivGenerate EU AI Act Annex IV technical documentation
Builds the 9-section Annex IV technical documentation per Article 11 by joining the conformity_assessments row with related ai_incident_reports + soc2_control_evidence + audit_logs + sso_configurations. Returns a SHA-256-tamper-detection hash on the canonical JSON. Set persist=true to write the doc back to conformity_assessments.annex_iv_doc. Cross-tenant guard: caller must be a member of the assessment's org.
Authentication
Send Authorization: Bearer YOUR_API_KEY on every request. Generate API keys at /dashboard/api-keys.
Request body required
Example
{
"assessmentId": "00000000-0000-0000-0000-000000000000",
"persist": false
}Schema
{
"application/json": {
"schema": {
"type": "object",
"required": [
"assessmentId"
],
"properties": {
"assessmentId": {
"type": "string",
"format": "uuid"
},
"persist": {
"type": "boolean",
"default": false,
"description": "If true, writes the generated doc back to conformity_assessments.annex_iv_doc."
}
}
}
}
}Response
200 example
{
"success": true
}All status codes
200Generated 9-section Annex IV document with snapshotHash.
400Invalid assessmentId.
404Assessment not found.
Code samples
cURL
curl -X POST \
https://evalguard.ai/api/v1/compliance/eu-ai-act/annex-iv \
-H "Authorization: Bearer $EVALGUARD_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "assessmentId": "00000000-0000-0000-0000-000000000000", "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/eu-ai-act/annex-iv",
body: {
"assessmentId": "00000000-0000-0000-0000-000000000000",
"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/eu-ai-act/annex-iv",
body={
"assessmentId": "00000000-0000-0000-0000-000000000000",
"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/eu-ai-act/annex-iv", map[string]any{"assessmentId": "00000000-0000-0000-0000-000000000000", "persist": false})
if err != nil { panic(err) }
fmt.Println(resp)
}Errors
400404