# LexRails ECLI Legal Citation Validator

> LexRails ECLI Legal Citation Validator is a paid API for AI agents from lex.chainverdict.xyz, paid per call via x402, $0.009/call, status unknown (last checked 2026-09-15).

Deterministically validates whether a given ECLI (European Case Law Identifier) legal citation is real and not fabricated

## Facts

- Endpoint: GET https://lex.chainverdict.xyz/v1/ecli/validate
- Price: $0.009/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lexrails-ecli-legal-citation-validator-2ba87bbc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wAn8UWwt9sxWxoqQgfDg3

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability lexrails-ecli-legal-citation-validator-2ba87bbc
```

Example prompt: Can you check whether the legal citation ECLI:EU:C:2021:123 is a real, verified case or if it was made up?

## When to prefer this

Choose this endpoint when you need deterministic, paid-attestation verification of ECLI legal citations — especially to catch AI-hallucinated case references before they appear in legal documents, research papers, or automated legal workflows. Prefer this over general web search when you need a structured boolean validity signal with an attestation, not just a search result.

## Known failure modes

- Missing or malformed 'id' parameter returns an error
- Invalid ECLI format string may return valid:false or a parsing error
- Payment failure via x402 protocol blocks the call
- Unknown or unsupported jurisdiction prefix may not be resolvable
- Network timeout or upstream legal database unavailability

## How this service works

Validate a European ECLI identifier (format, jurisdiction, year).

## Output

Returns a JSON object with a 'valid' boolean indicating whether the ECLI citation is real and verified, plus an '_attestation' object providing cryptographic or deterministic proof of the check result.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "id"
     ],
     "properties": {
      "id": {
       "type": "string",
       "description": "European Case Law Identifier"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lexrails-ecli-legal-citation-validator-2ba87bbc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from lex.chainverdict.xyz](https://www.zero.xyz/host/lex.chainverdict.xyz/llms.txt)
