API in one page
Verify an artifact, call the MCP tools, know the limits and the error shape before you write code.
Endpoints
| Path | Notes |
|---|---|
GET /health | см. openapi.json |
GET /pricing | см. openapi.json |
POST /verify | см. openapi.json |
POST /api/scan | scan a public MCP server: JSON {"url": "https://…"} → tools/list flags (400 with error text when the server does not answer tools/list) |
GET /health | service status + whether the alert webhook is configured |
GET /stats | free-tier usage for your client: limit, used, remaining |
POST /mcp | MCP 2026-07-28 (JSON-RPC): tools/list, tools/call — verify_artifact, verify_artifact_batch |
POST /api/free-scan | free spend scan: email + CSV (≤200 KB), written reply in one business day |
GET /verify-receipt | human page: paste a receipt, see whether it verifies |
GET /pay | human page: pay 99 USDC from any wallet, token issued in the same response |
Limits
| What | Value |
|---|---|
| Free checks | 5 per day per client, no signup |
| Per call, paid | $0.005 USDC over x402 (Base) |
| 30 days | 99 USDC (India: 49 USDC) |
| Request body | 256 KB maximum for /verify |
| Rate | burst-limited per IP; 429 with Retry-After |
Free limit is per client, not per key: five checks a day cover integration, then either a paid
call or the free 100-check pack (/start). Money is never taken without a payment header.
Errors
| Status | What it means |
|---|---|
400 | `invalid JSON` / `artifact must be an object` — тело не разобрано; ничего не списано |
402 | free limit reached. Body carries `free_remaining: 0`, `resets_at`, and three ways forward: `free_pack` (100 checks/30 days), `human_review` (one artifact, free), `pay_human` (99 USDC) |
413 | body larger than the limit — уменьшите артефакт, квота не тронута |
429 | rate limited — `Retry-After` в секундах |
500 | internal — пришлите `X-Request-ID`, по нему находим запрос |
A 402 is not a dead end: the body names three ways forward, and one of them is free.
Copy-paste examples
Verify an artifact
curl -s -X POST https://attest.rta.lat/verify \
-H 'content-type: application/json' \
-d '{"artifact": {"findings": [{"id": "f1", "title": "checked the schema"}]}}'List MCP tools
curl -s -X POST https://attest.rta.lat/mcp \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'Call a tool over MCP
curl -s -X POST https://attest.rta.lat/mcp \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call",
"params":{"name":"verify_artifact","arguments":{"artifact":{"findings":[]}}}}'Pay per call (x402)
# 402 → pay 0.005 USDC on Base → retry with the header
curl -s -X POST https://attest.rta.lat/verify \
-H 'content-type: application/json' \
-H "X-PAYMENT: " \
-d '{"artifact": {...}}'
Verify without trusting us
Every paid verdict is Ed25519-signed. /verify-offline checks it in the
browser with no network calls; conformance/receipt-vectors.json (CC0) lets your own code
disagree with ours and be right about it.
Machine-readable: openapi.json · llms.txt · what a receipt proves