API in one page

Verify an artifact, call the MCP tools, know the limits and the error shape before you write code.

Endpoints

PathNotes
GET /healthсм. openapi.json
GET /pricingсм. openapi.json
POST /verifyсм. openapi.json
POST /api/scanscan a public MCP server: JSON {"url": "https://…"} → tools/list flags (400 with error text when the server does not answer tools/list)
GET /healthservice status + whether the alert webhook is configured
GET /statsfree-tier usage for your client: limit, used, remaining
POST /mcpMCP 2026-07-28 (JSON-RPC): tools/list, tools/call — verify_artifact, verify_artifact_batch
POST /api/free-scanfree spend scan: email + CSV (≤200 KB), written reply in one business day
GET /verify-receipthuman page: paste a receipt, see whether it verifies
GET /payhuman page: pay 99 USDC from any wallet, token issued in the same response

Limits

WhatValue
Free checks5 per day per client, no signup
Per call, paid$0.005 USDC over x402 (Base)
30 days99 USDC (India: 49 USDC)
Request body256 KB maximum for /verify
Rateburst-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

StatusWhat it means
400`invalid JSON` / `artifact must be an object` — тело не разобрано; ничего не списано
402free 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)
413body larger than the limit — уменьшите артефакт, квота не тронута
429rate limited — `Retry-After` в секундах
500internal — пришлите `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