API - v1

Build with TamperAudit

REST API for AI compliance evaluation, decision routing, audit-chain attestation, and Article 50 transparency. Free diagnosis tier; pay-as-you-grow execution tier.

Get API keyBrowse endpoints

Authentication

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"}'

Endpoints

Base URL: https://api.tamperaudit.com

POST

/api/v1/auth/register

Create an account and receive a session token.

POST

/api/v1/auth/login

Exchange email + password for a session token.

GET

/api/v1/auth/me

Return the current account, plan and quota state.

POST

/api/v1/scan/free

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.

POST

/api/v1/scan/paid

The same scan, stored against your account with full findings and history.

POST

/api/v1/policy/rules

Create a policy rule. Rule packs for five jurisdictions are published at GET /api/v1/policy/templates.

GET

/api/v1/policy/rules

List your policy rules.

GET

/api/v1/policy/templates

The jurisdiction rule packs: ready-to-activate rules with the obligation, the source and the verification date behind each one.

POST

/api/v1/policy/templates/apply

Install one rule pack for your account. Idempotent - a rule that is already installed is skipped.

POST

/api/v1/policy/decide

Per-prompt verdict (allow / redact / deny / hold) written into your audit chain.

POST

/api/v1/audit/events

Append an audit event to your hash-linked chain.

GET

/api/v1/audit/export

The third-party verification bundle: every event with its canonical form, content hash, signature and public key (Starter and up).

GET

/api/v1/audit/verify

Recompute the whole chain and verify every link and signature.

GET

/api/v1/audit/stats

Event counts and usage for the current period.

POST

/api/v1/reports/article12

Generate an EU AI Act Article 12 record-keeping report (HTML + JSON).

POST

/api/v1/reports/article50

Generate an Article 50 transparency report (HTML + JSON).

GET

/api/v1/reports/:id

Fetch a compiled compliance report.

POST

/api/v1/approval/queue

Send a hold decision to the human approval queue.

POST

/api/v1/approval/queue/:id/approve

Approve a queued decision as the named reviewer.

POST

/api/v1/billing/checkout

Return the checkout link for a paid plan.

GET

/api/v1/frameworks

The published compliance corpus: every obligation, the framework version it belongs to, the source and the date that source was checked.

GET

/api

Machine-readable, always-current endpoint list.

Decision flow

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();

Audit chain (Article 12 record-keeping)

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.

Rate limits

TierAPI requests / minuteAudit records / month
Free10400
Starter304,000
Pro10018,000
Growth500Unlimited

SDKs

REST

Direct HTTP

Any HTTP client works. JSON in, JSON out. Base URL https://api.tamperaudit.com. No SDK lock-in.

MCP

MCP server

JSON-RPC 2.0 over HTTP at /mcp. Works with any MCP client, so your agent can call the compliance engine directly.

Discovery

GET /api

The machine-readable endpoint list, served live. Point your client generator at it.

EU AI Act Article 50

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.

Get a free API key