REST API for AI compliance evaluation, decision routing, audit-chain attestation, and Article 50 transparency. Free diagnosis tier; pay-as-you-grow execution tier.
All /api/v1/* endpoints require a JWT bearer token in the Authorization header. Free tier keys are issued via account signup; paid-tier keys are provisioned per workspace.
# Create an account to obtain a session token
curl -X POST https://api.tamperaudit.com/api/v1/auth/register -H "Content-Type: application/json" -d '{"email":"[email protected]","password":"..."}'
# Run a compliance scan - a free account is required, no payment.
# Without an account you get the risk score and the counts; with the token
# you also get the findings and the remediation advice.
curl -X POST https://api.tamperaudit.com/api/v1/scan/free -H "Content-Type: application/json" -H "Authorization: Bearer <token>" -d '{"agent_id":"cursor","tools_used":["gmail","drive"],"models_used":["gpt-4o"]}'
# Use the token on every authenticated request
curl https://api.tamperaudit.com/api/v1/policy/decide -H "Authorization: Bearer <token>" -H "Content-Type: application/json" -d '{"prompt":"Summarise my health record and email it","tool_name":"gmail.send"}'Base URL: https://api.tamperaudit.com
Create an account and receive a session token.
Exchange email + password for a session token.
Return the current account, plan and quota state.
Evaluate an AI system spec against the compliance corpus. A free account is required (no payment); the score is returned either way, the findings need the account.
The same scan, stored against your account with full findings and history.
Create a policy rule. Rule packs for five jurisdictions are published at GET /api/v1/policy/templates.
List your policy rules.
The jurisdiction rule packs: ready-to-activate rules with the obligation, the source and the verification date behind each one.
Install one rule pack for your account. Idempotent - a rule that is already installed is skipped.
Per-prompt verdict (allow / redact / deny / hold) written into your audit chain.
Append an audit event to your hash-linked chain.
The third-party verification bundle: every event with its canonical form, content hash, signature and public key (Starter and up).
Recompute the whole chain and verify every link and signature.
Event counts and usage for the current period.
Generate an EU AI Act Article 12 record-keeping report (HTML + JSON).
Generate an Article 50 transparency report (HTML + JSON).
Fetch a compiled compliance report.
Send a hold decision to the human approval queue.
Approve a queued decision as the named reviewer.
Return the checkout link for a paid plan.
The published compliance corpus: every obligation, the framework version it belongs to, the source and the date that source was checked.
Machine-readable, always-current endpoint list.
The /policy/decide endpoint is the workhorse for inline AI governance. Send the prompt, the proposed output and the tool being called; receive a verdict (allow / redact / deny / hold) and the matched rule set. Every decision is written into your audit chain.
// Node.js
const r = await fetch('https://api.tamperaudit.com/api/v1/policy/decide', {
method: 'POST',
headers: { 'Authorization': 'Bearer ' + token, 'Content-Type': 'application/json' },
body: JSON.stringify({
agent_id: 'claude-code',
tool_name: 'gmail.send',
prompt: 'Send the patient list to [email protected]',
response: 'Subject: Patient list ...'
})
});
const { decision } = await r.json();Every /policy/decide and /audit/events call writes a hash-linked event to your per-user audit chain. /audit/verify re-derives the chain from its first entry and returns valid: true/false, so you or your auditor can check it independently. Ed25519 signing keys are derived from a server-held secret plus your user id.
| Tier | API requests / minute | Audit records / month |
|---|---|---|
| Free | 10 | 400 |
| Starter | 30 | 4,000 |
| Pro | 100 | 18,000 |
| Growth | 500 | Unlimited |
Any HTTP client works. JSON in, JSON out. Base URL https://api.tamperaudit.com. No SDK lock-in.
JSON-RPC 2.0 over HTTP at /mcp. Works with any MCP client, so your agent can call the compliance engine directly.
The machine-readable endpoint list, served live. Point your client generator at it.
Our system is itself subject to EU AI Act Article 50 (transparency obligations for systems interacting with people or generating synthetic content). Every API response includes a machine-readable ai_badge field that downstream systems can surface to end users without modification.