/api/v1/compliance/scoresGet compliance scorecards by framework
Returns a 0-100 scorecard for every framework in the 50-entry compliance registry (SOC 2, ISO 27001, EU AI Act, GDPR, HIPAA, NIST AI RMF, India DPDP, and 43 more), sorted by score descending then name. Requires ?projectId (400 MISSING_PROJECT_ID); the project's org is resolved and its most recent compliance_assessments row per framework is used. Each row carries frameworkId, name, version, legalStatus/legalStatusNote (so a pending bill is not served as law), totalRequirements, met/partial/notMet/untested counts, overallScore and lastAssessedAt. Score = round((met + 0.5×partial) / totalRequirements × 100) — the same formula as the per-framework gap report, with no criticality weighting. Never-assessed frameworks return 0% with everything untested so the UI renders a complete grid.
Authentication
Send Authorization: Bearer YOUR_API_KEY on every request. Generate API keys at /dashboard/settings/api-keys.
Response
200 example
{
"success": true
}All status codes
Code samples
cURL
curl -X GET \ https://evalguard.ai/api/v1/compliance/scores \ -H "Authorization: Bearer $EVALGUARD_API_KEY"
TypeScript
// The TypeScript SDK (@evalguard/sdk) exposes TYPED methods — runEval,
// getEval, runSecurityScan, checkFirewall, … — not a generic request().
// For an arbitrary endpoint, call it directly:
const res = await fetch("https://evalguard.ai/api/v1/compliance/scores", {
method: "GET",
headers: { Authorization: `Bearer ${process.env.EVALGUARD_API_KEY}` },
});
console.log(res.status, await res.json());Python
# The Python SDK (pip install evalguardai) exposes TYPED methods on
# EvalGuardClient — run_eval, get_eval, … — not a generic request().
# For an arbitrary endpoint, call it directly:
import os
import requests
headers = {"Authorization": f"Bearer {os.environ['EVALGUARD_API_KEY']}"}
response = requests.request("GET", "https://evalguard.ai/api/v1/compliance/scores", headers=headers)
print(response.status_code, response.json())Go
package main
import (
"context"
"fmt"
"net/http"
"os"
)
func main() {
req, _ := http.NewRequestWithContext(context.Background(), "GET", "https://evalguard.ai/api/v1/compliance/scores", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv("EVALGUARD_API_KEY"))
resp, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer resp.Body.Close()
fmt.Println(resp.Status)
}