{"uid":"cap_n02FWavg_hSaU6mA3pU6M","slug":"lexrails-legal-citation-extraction-fabrication-check-d05b412b","name":"LexRails Legal Citation Extraction & Fabrication Check","description":"Scan a block of text (brief, memo, agent draft), extract every citation, structurally check each, and return a fabrication risk flag with per-citation verdicts.","url":"https://lex.chainverdict.xyz/v1/cite/extract","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","additionalProperties":true}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.028","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.028/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.028","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.028","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qbJ5ynESKdSz2n-9xLmyH","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.028","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts legal citations from text and checks them for fabrication/hallucination using deterministic verification","exampleAgentPrompt":"Can you run this legal brief through LexRails to check whether any of the case citations are fabricated or hallucinated? Here's the text: 'The court in Smith v. Jones, 442 U.S. 584 (1979), held that...'","exampleUseCases":[{"title":"AI-generated legal memo audit","prompt":"I had an AI write a legal memo for me and I'm worried it made up some case citations — can you run it through LexRails and flag any fabricated or hallucinated references? Here's the full text of the memo."},{"title":"Law firm brief quality check","prompt":"Before I file this brief, can you extract all the legal citations from it and check each one to make sure none of them are made up? I need to know which citations might be hallucinated."},{"title":"AI content compliance screening","prompt":"We're building a legal AI assistant and need to validate its outputs before showing them to users — can you check this sample response for any fabricated case law or statutory references using a deterministic citation checker?"}],"resultDescription":"Returns extracted legal citations found in the input text along with deterministic fabrication/hallucination flags for each citation, indicating which references appear to be invented versus verifiably real.","failureModes":["Empty or very short text with no citations may return empty results","Non-legal text passed as input may yield no extracted citations","Payment failure via x402/USDC will block the call","Extremely long documents may exceed input size limits","Citations in non-standard formats may not be extracted correctly"],"whenToPreferThis":"Choose this endpoint when you need deterministic (not probabilistic) verification of legal citations in text — especially when auditing AI-generated legal content for hallucinated case law, statutes, or regulations. Prefer this over general-purpose LLM checks when you need reliable, consistent results that don't vary between runs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:41:23.918Z","isFirstParty":false}