Scoped access, by design.
Every machine operation is authorized through an organization-bound API key and purpose-specific scopes.
Manage API keys ↗Build with the same deterministic assurance engine that powers HAIEC. Connect applications, evidence pipelines and AI agents to reproducible evaluation, accountable decisions and inspectable proof.
Three interfaces. A shared evidence and evaluation foundation. Select the workflow that fits how your team builds and operates AI systems.
Start an evidence-bound run from your application or CI workflow, then retrieve the exact persisted evaluation, Agent Audit, Master Report and passport.
Select your organization-bound AI System and a verified, system-bound source asset. Discovery endpoints help you confirm eligibility.
# Example: use a fresh UUID for each intended run
curl -X POST 'https://www.haiec.com/api/v1/assurance/runs' \
-H "Authorization: Bearer $HAIEC_API_KEY" \
-H 'Content-Type: application/json' \
-H "Idempotency-Key: $NEW_RUN_UUID" \
--data '{
"aiSystemId": "YOUR_AI_SYSTEM_ID",
"engines": {
"static": {
"enabled": true,
"executionMode": "api",
"sourceAssetId": "YOUR_VERIFIED_SOURCE_ID"
}
}
}'
Organization-bound AI System and verified source; supports idempotent retries. Authorization: scan:create. Operation: createAssuranceRun.
View versioned documentation ↗Paginated inventory of runs visible to the API key. Authorization: scan:read. Operation: listAssuranceRuns.
View versioned documentation ↗Returns run status, stage and resulting evaluation identity when available. Authorization: scan:read. Operation: getAssuranceRun.
View versioned documentation ↗Compact disposition, sections and evidence-qualified conclusion. Authorization: report:read. Operation: getEvaluationSummary.
View versioned documentation ↗What was established, what remains open and which evidence is needed next. Authorization: report:read. Operation: getEvaluationAgentAudit.
View versioned documentation ↗Bounded by default; detail=full for the complete projection. Authorization: report:read. Operation: getEvaluationMasterReport.
View versioned documentation ↗PDF presentation of the same persisted Master Assurance Report product. Authorization: report:read. Operation: getEvaluationMasterReportPdf.
View versioned documentation ↗Secondary evidence artifact retained for backwards compatibility. Authorization: report:read. Operation: getEvaluationReport.
View versioned documentation ↗Profile-based executive, technical or auditor PDF representation. Authorization: report:read. Operation: getEvaluationReportPdf.
View versioned documentation ↗Portable, machine-readable record bound to one persisted evaluation. Authorization: report:read. Operation: getEvaluationPassport.
View versioned documentation ↗Lists systems within the organization associated with the API key. Authorization: system:read. Operation: listSystems.
View versioned documentation ↗Preflight for verified and system-bound Source Assets. Authorization: source:read. Operation: listEvaluationSources.
View versioned documentation ↗Admits a bounded, already-generated Evidence Bundle. Does not initiate a second analyzer. Authorization: scan:submit. Operation: submitQualifiedScan.
View versioned documentation ↗Returns provenance and attachable source identity for the existing scan. Authorization: scan:read. Operation: getQualifiedScan.
View versioned documentation ↗Lists configured environment binders for canonical Evidence Intake. Authorization: source:read. Operation: listEvidenceBinders.
View versioned documentation ↗Accepts supported structured payloads through a configured environment binder. Authorization: evidence:ingest.
View versioned documentation ↗Raw log ingestion through the supported evidence intake route. Authorization: evidence:ingest.
View versioned documentation ↗OpenTelemetry traces provided through configured HAIEC evidence binding. Authorization: evidence:ingest.
View versioned documentation ↗OpenTelemetry metrics provided through configured HAIEC evidence binding. Authorization: evidence:ingest.
View versioned documentation ↗OpenTelemetry logs provided through configured HAIEC evidence binding. Authorization: evidence:ingest.
View versioned documentation ↗No endpoints match the current search. Try another method or category.
Connect Cursor, Claude Code, Devin or an MCP-capable agent. The agent discovers your available operations, coordinates approved steps and returns the exact evaluation artifacts issued by HAIEC.
Technical safeguards are valuable when they are designed into the workflow, not added to the marketing copy.
Every machine operation is authorized through an organization-bound API key and purpose-specific scopes.
Manage API keys ↗Evidence receipts, evaluation identities and report artifacts preserve exactly what a result establishes.
Explore evidence ↗Machine results remain bound to qualified evidence and the evaluated method. Human authorization stays explicit.
Read methodology ↗Advanced integration reference
API does not mean a reduced scan. The API invokes the same canonical HAIEC services as the dashboard — equivalent configuration produces an equivalent evaluation.
Integration surfaces: Assurance API v1 — recommended for programmatic integration. HAIEC Assurance MCP — available at /api/mcp (Streamable HTTP, Bearer API key); best for AI IDEs and agents. HAIEC CLI — Preview / Enterprise POC.
A bounded Streamable HTTP MCP interface over canonical HAIEC services. Use it when an AI agent should discover setup, run Assurance, retrieve evidence-bound results, guide resolution, or perform explicitly approved supported actions.
Endpoint: https://www.haiec.com/api/mcp
// Cursor: .cursor/mcp.json (or Devin: .devin/mcp_config.json)
{
"mcpServers": {
"haiec": {
"url": "https://www.haiec.com/api/mcp",
"headers": { "Authorization": "Bearer ${env:HAIEC_API_KEY}" }
}
}
}Current MCP workflow:
ASK → PREFLIGHT → RUN → UNDERSTAND → RESOLVE → RE-EVALUATE → ESTABLISH
Re-running the same source analysis does not close a gap that requires policy, IAM, deployment, identity, telemetry, or other external evidence. The agent should follow the deterministic resolution category returned by HAIEC.
Then ask your agent:
Investigations are persisted evidence timelines over user-declared states. The agent translates ordinary language into the explicit scenario binding, lists prior investigations on return (haiec_list_investigations), prepares scenario-bound live capture, and selects typed intake profiles (kpi, alarm, api_transaction, telecom profiles) that reuse the same canonical mappers as the REST intake routes. An investigation records received evidence — it is not an Assurance disposition.
MCP can perform supported AI System and source setup actions after explicit user approval. Third-party authorization such as GitHub App installation may still require a browser handoff. HAIEC never treats a caller-supplied repository URL or token as proof of trusted source authority.
Runtime testing is optional. HAIEC first performs a read-only runtime safety preflight. Execution requires explicit user authorization and confirmation, and unsupported or unproven-safe categories remain HELD.
Evidence ingestion stores qualified input for later Evaluation. An ingestion receipt does not mean an Assurance gap has been resolved.
Every MCP tool delegates to the canonical Assurance API boundary — same organization scope, same key scopes, same rate limits. MCP never accepts GitHub tokens or organization overrides. See Agent Integration.
Assurance runs are asynchronous: a full source scan, evidence collection, and evaluation takes minutes, not milliseconds. POST /assurance/runs therefore returns a runId immediately (HTTP 202). You poll the run status until an evaluationId appears, then retrieve the summary, report, and passport.
One setup, then any client can trigger the full remote scan: your IDE, a terminal, CI orchestration, or a server application. GitHub repository credentials stay server-side between HAIEC and the GitHub App.
SOURCE_REPOSITORY assetHAIEC_API_KEY, HAIEC_AI_SYSTEM_ID, HAIEC_SOURCE_ASSET_ID)POST /api/v1/assurance/runsSource stays on your machine; the local scanner submits qualified evidence. Coverage is bounded relative to the remote stack — an Enterprise POC distribution.
Local / IDE guideRun the supported local scanner in your CI runner, submit the qualified build evidence with scan:submit, then start the same Assurance Run. GitHub Action v2 is staged pending the local distribution decision.
Behavioral/runtime testing against a reachable endpoint — no source repository required.
Every supported path converges into the same persisted Assurance Evaluation, report, and Passport — but analyzer coverage differs by source mode. Unavailable evidence is recorded as a limitation, never as PASS.
In the dashboard: Settings → Developer → API Keys → create an Assurance key. The secret is shown once — copy it and store it as an environment variable. Never place it in frontend or browser code.
HAIEC_API_KEY=haiec_live_xxxAssurance keys carry scan:submit scan:create scan:read report:read system:read source:read — the minimum needed for local/IDE submission plus remote-source runs.
Evaluations are system-bound. In the dashboard: AI Inventory → select your system and copy its aiSystemId — or discover systems via API (GET /api/v1/systems, scope system:read).
In the dashboard: AI System → Connected Assets. Source repositories move through REGISTERED → CONNECTED → VERIFIED — only VERIFIED sources are eligible for fresh scans. Copy the sourceAssetId and default branch, or list them via GET /api/v1/systems/{systemId}/evaluation-sources.
curl -X POST https://www.haiec.com/api/v1/assurance/runs \
-H "Authorization: Bearer $HAIEC_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: build-$BUILD_ID" \
-d '{
"aiSystemId": "SYSTEM_ID",
"engines": {
"static": {
"enabled": true,
"executionMode": "api",
"sourceAssetId": "SOURCE_ASSET_ID",
"branch": "main"
}
}
}'
# 202 Accepted
# { "runId": "run_…", "status": "CREATED", "links": { "self": "…" }, … }curl -H "Authorization: Bearer $HAIEC_API_KEY" \ https://www.haiec.com/api/v1/assurance/runs/RUN_ID
Poll every 10–30s with a bounded retry budget. status progresses through the engine chain; stage shows the current engine. When the pipeline completes, evaluation.evaluationId appears and links populate. A failed run reports a structured failure object — it is never silently absent.
curl -H "Authorization: Bearer $HAIEC_API_KEY" \ https://www.haiec.com/api/v1/assurance/evaluations/EVAL_ID/summary curl -H "Authorization: Bearer $HAIEC_API_KEY" \ https://www.haiec.com/api/v1/assurance/evaluations/EVAL_ID/report curl -H "Authorization: Bearer $HAIEC_API_KEY" \ https://www.haiec.com/api/v1/assurance/evaluations/EVAL_ID/passport
Summary — compact result for application logic. Report — full evidence-bearing assurance output. Passport — portable machine-readable artifact for the exact evaluation. The disposition (ALLOW / REVIEW / BLOCK) is bounded to the evaluated scope and available evidence — it is not a certification.
| Method | Path | Scope |
|---|---|---|
| POST | /api/v1/assurance/runs | scan:create |
| GET | /api/v1/assurance/runs | scan:read |
| GET | /api/v1/assurance/runs/{runId} | scan:read |
| GET | /api/v1/assurance/evaluations/{evaluationId}/summary | report:read |
| GET | /api/v1/assurance/evaluations/{evaluationId}/agent-audit | report:read |
| GET | /api/v1/assurance/evaluations/{evaluationId}/master-report | report:read |
| GET | /api/v1/assurance/evaluations/{evaluationId}/master-report/pdf | report:read |
| GET | /api/v1/assurance/evaluations/{evaluationId}/report | report:read |
| GET | /api/v1/assurance/evaluations/{evaluationId}/report/pdf | report:read |
| GET | /api/v1/assurance/evaluations/{evaluationId}/passport | report:read |
| GET | /api/v1/systems | system:read |
| GET | /api/v1/systems/{systemId}/evaluation-sources | source:read |
| POST | /api/v1/scans | scan:submit |
| GET | /api/v1/scans/{scanId} | scan:read |
| GET | /api/v1/evidence/binders | source:read |
| POST | /api/ingest/structured | evidence:ingest |
| POST | /api/ingest/log | evidence:ingest |
| POST | /api/otlp/v1/traces | evidence:ingest |
| POST | /api/otlp/v1/metrics | evidence:ingest |
| POST | /api/otlp/v1/logs | evidence:ingest |
Authentication: Authorization: Bearer haiec_live_…. Missing/invalid key → 401; missing scope → 403; cross-organization resources → 404 (non-enumerating). Errors are machine-readable: { "error": { "code", "message", "retryable" } }. OpenAPI: /openapi/assurance-v1.yaml. Agent/machine discovery: /.well-known/haiec-capabilities.json.
The customer-defined system being evaluated. Every assurance run and evaluation is bound to exactly one AI System.
A verified source repository bound to the AI System. Only VERIFIED, system-bound sources are eligible for fresh source scans. REPOSITORY_URL ≠ AI_SYSTEM_BINDING.
The asynchronous execution that coordinates the configured engines (static, runtime, wizard) for one AI System.
The exact persisted evaluation produced by a run. Report artifacts are read from this record — never recomputed.
HAIEC’s bounded conclusion — ALLOW / REVIEW / BLOCK — valid only within the evaluated scope and available evidence. UNKNOWN is never promoted to PASS.
Portable machine-readable representation of the exact evaluation and its assurance lineage.
const res = await fetch("https://www.haiec.com/api/v1/assurance/runs", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.HAIEC_API_KEY}`,
"Content-Type": "application/json",
"Idempotency-Key": buildId,
},
body: JSON.stringify({
aiSystemId: process.env.HAIEC_AI_SYSTEM_ID,
engines: { static: { enabled: true, executionMode: "api",
sourceAssetId: process.env.HAIEC_SOURCE_ASSET_ID, branch: "main" } },
}),
});
if (!res.ok) throw new Error((await res.json()).error.code);
const { runId } = await res.json();
// Poll with bounded retries (e.g. every 15s, up to ~20 min)
const run = await fetch(`${base}/api/v1/assurance/runs/${runId}`,
{ headers: { Authorization: `Bearer ${key}` } }).then(r => r.json());
const evalId = run.evaluation?.evaluationId; // then GET summary/report/passportimport os, time, requests
BASE = "https://www.haiec.com"
H = {"Authorization": f"Bearer {os.environ['HAIEC_API_KEY']}"}
r = requests.post(f"{BASE}/api/v1/assurance/runs", headers={**H,
"Idempotency-Key": build_id}, json={
"aiSystemId": os.environ["HAIEC_AI_SYSTEM_ID"],
"engines": {"static": {"enabled": True, "executionMode": "api",
"sourceAssetId": os.environ["HAIEC_SOURCE_ASSET_ID"],
"branch": "main"}},
})
r.raise_for_status()
run_id = r.json()["runId"]
for _ in range(80): # ~20 min at 15s intervals
run = requests.get(f"{BASE}/api/v1/assurance/runs/{run_id}",
headers=H).json()
if run["evaluation"]:
break
if run["failure"]:
raise SystemExit(run["failure"]["message"])
time.sleep(15)
eval_id = run["evaluation"]["evaluationId"]
summary = requests.get(
f"{BASE}/api/v1/assurance/evaluations/{eval_id}/summary",
headers=H).json()CONSENT_REQUIRED. Use the dashboard to grant consent, or use ci-attached mode to bind evidence your CI produced.GET /api/v1/systems*)./api/v1/assurance/evaluations/{evaluationId}/master-report/pdf; the secondary Assurance Evidence PDF remains at .../report/pdf — both with report:read.Create an Assurance key, pick an AI System, and follow the six steps above — or the end-to-end quickstart and full API guide.
Manage API KeysOpenAI SDK wrapper — usage and cost instrumentation for AI Inventory. Not a scanner.
npm install @haiec/openaiAnthropic SDK wrapper — usage and cost instrumentation for AI Inventory. Not a scanner.
npm install @haiec/anthropicBegin with one consequential system, one assurance question and the integration path that fits your team.