Analyze legal documents and seller policies for risk factors via x402 micropayment on Base.
What it does
LegalEasy (also branded PolicyCheck) provides an x402-payable endpoint that analyzes legal documents—terms of service, privacy policies, refund policies, and shipping terms—returning structured, machine-readable risk assessments with plain-English summaries. The `/api/x402/analyze` endpoint costs $0.03 per analysis, settled on Base mainnet (EIP-155:8453) via the x402 micropayment protocol.
The API accepts either a seller URL (which it auto-discovers and fetches policy pages from) or raw policy text. It returns a risk score (0–10), risk level classification, buyer protection rating (letter grade A+ through F), detected clause flags (e.g., binding arbitration, class action waiver, restocking fees), and a list of consumer-friendly positives. Each risk factor includes severity, source policy page, and a note when severity has been discounted for standard boilerplate. The response also includes analysis confidence and status fields so agents can determine whether to trust the scores.
The service is designed as an intelligence provider for AI shopping agents: it reports factual risk classifications without making purchase recommendations. A clause registry endpoint lists all detectable clause types with stable identifiers, enabling rule-based agent logic. Audit trail features allow linking checks to specific agents and transactions via `agent_id` and `transaction_ref` parameters.
Capabilities
Use cases
- —AI shopping agents verifying seller return and refund policies before purchase
- —Automated compliance checks on vendor terms of service
- —Extracting structured risk data from privacy policies for data governance workflows
- —Auditing seller policy changes over time with logged check history
- —Rule-based agent logic that blocks purchases from sellers with specific clauses like binding arbitration
Fit
Best for
- —AI agents that need machine-readable legal risk data at checkout
- —Developers building shopping or procurement agents that must evaluate seller policies
- —Compliance teams needing automated audit trails of policy checks
- —Applications requiring structured extraction of legal clauses from unstructured text
Not for
- —Providing legal advice or attorney-grade contract review
- —Analyzing non-English legal documents (no multilingual support documented)
- —High-volume batch processing without understanding per-call x402 payment costs
Quick start
curl -X POST https://legaleasy.tools/api/x402/analyze \
-H "Content-Type: application/json" \
-H "X-PAYMENT: <x402-payment-token>" \
-d '{"url": "https://amazon.com"}'Example
Request
{
"url": "https://amazon.com",
"document_type": "terms"
}Response
{
"payment": {
"payer": "0xdef456...",
"network": "eip155:8453",
"settled": true,
"transaction": "0xabc123..."
},
"analysis": {
"flags": [
"return_shipping_fee"
],
"summary": "3 of 4 policy categories analyzed. Return shipping fee detected.",
"positives": [
"Free shipping on orders over $25"
],
"confidence": "medium",
"risk_level": "low",
"risk_score": 1.5,
"seller_url": "https://amazon.com",
"analyzed_at": "2026-02-16T11:29:53Z",
"risk_factors": [
{
"detail": "Buyer pays return shipping costs.",
"factor": "return_shipping_fee",
"source": "returns",
"found_in": "return_policy",
"severity": "low",
"severity_note": null
}
],
"analysis_status": "partial",
"buyer_protection_score": 85,
"buyer_protection_rating": "A"
}
}Endpoint
Quality
The endpoint returned a live 402 challenge, full OpenAPI schema is available (though served from policycheck.tools), and detailed documentation describes request/response fields, clause registry, and pricing. Score is slightly below 0.8 because the x402 challenge object was empty (no payment details captured in the probe) and the OpenAPI paths reference /api/chatgpt/analyze rather than /api/x402/analyze specifically.
Warnings
- —The x402 challenge object captured in the probe was empty — payment parameters (amount, token, network) were not directly confirmed from the 402 response itself.
- —The OpenAPI spec is served from policycheck.tools and documents /api/chatgpt/analyze, not /api/x402/analyze directly; the x402 endpoint details come from the docs page only.
- —No pricing page found (404); the $0.03 price is documented on the docs page but not independently verifiable from the 402 challenge.
Citations
- —The /api/x402/analyze endpoint costs $0.03 per analysis on Base mainnet (eip155:8453)https://legaleasy.tools/docs
- —The endpoint accepts url, sellerUrl, seller_url, text, or policy_text as body fieldshttps://legaleasy.tools/docs
- —Response wraps analysis inside a payment + analysis envelope with settlement detailshttps://legaleasy.tools/docs
- —Risk factors include severity_note for standard_tos_boilerplate discountinghttps://legaleasy.tools/docs
- —Clause registry is versioned (current 1.0.1) and available at GET /api/clause-registryhttps://legaleasy.tools/docs
- —Audit trail supports agent_id and transaction_ref parameters for compliance logginghttps://legaleasy.tools
- —LegalEasy analyzes terms of service, privacy policies, refund policies, and other legal documents with risk assessmentshttps://legaleasy.tools/docs