Verifies legal citations and retrieves source material using the case.dev Legal Research API and CLI. Use when validating a citation, confirming a case exists, pulling source text, finding related authorities, extracting citations from a brief or opinion, or building a filing-ready authority check without branded citator terminology.
Use case.dev legal research endpoints to verify citations, retrieve source text, and expand to related authorities. Keep the language generic: "verified citation," "candidate authority," "related authority," and "manual treatment review."
legal.verify() before citing it.legal.find() or legal.research().legal.fullText() once you have a verified source URL.legal.similar() to find related authorities.Reference guide: references/CASEDEV-WORKFLOW.md
Runtime and setup: references/RUNTIME.md
Concrete scenarios: references/EXAMPLES.md
Lightweight eval set: references/EVALS.md
Examples:
Use legal.verify() with the citation text exactly as written.
verified means the citation matched a real source in the database.not_found means likely typo, hallucination, or unsupported citation.multiple_matches means manual review is required before citation.If verification succeeds, use the returned case URL with legal.fullText() to inspect the opinion and optionally highlight the issue you care about.
Use legal.similar() on the verified source URL to find related authorities.
Use legal.research() when you need broader issue-based research with multiple phrasings of the same question.
If you are checking a brief, opinion, or article URL, use legal.citationsFromUrl() to extract cited authorities, then verify important citations individually.
Always record:
Format the final work product using references/OUTPUT-TEMPLATE.md.
Do not assume tools are installed. Check references/RUNTIME.md before running any script.
legal.find() results as verified authorities.legal.similar() are citing references or direct history.multiple_matches or not_found.