Citation Verification API
Verify case law, statutes, regulations, and more against primary authority. Detect hallucinated citations, fabricated quotes, misstated holdings, and 40+ other error categories.
Authentication
Every request requires an API key in the x-api-key header. Keys are provisioned during onboarding.
curl https://api.counselstack.com/api/v1/check \ -H "x-api-key: cs_live_..." \ -H "Content-Type: application/json" \ -d '{ ... }'
Base URL
Check Citation
Verify a legal citation against primary authority. Returns an assessment, plain-language summary, and structured error labels.
Request Body
| Parameter | Type | Description |
|---|---|---|
| citation_type required | string | Type of citation. See Citation Types. |
| citation_text required | string | The exact citation as it appears in the source document. |
| citation_context required | string | Surrounding sentence(s) showing how the citation is used. Include any parenthetical, quotation, or characterization. |
| jurisdiction_hint optional | string | Jurisdiction for disambiguation (e.g. "CA", "9th Cir."). Useful for state statutes. |
Example Request
curl -X POST https://api.counselstack.com/api/v1/check \ -H "x-api-key: cs_live_..." \ -H "Content-Type: application/json" \ -d '{ "citation_type": "case", "citation_text": "Dynamex Operations West, Inc. v. Superior Court, 4 Cal. 5th 903 (2018)", "citation_context": "Under the ABC test established in Dynamex, a worker is presumed to be an employee unless the hiring entity demonstrates three factors." }'
Response
| Field | Type | Description |
|---|---|---|
| analysis.overall_assessment | string | One of correct, needs_improvement, incorrect, not_verifiable |
| analysis.summary | string | Plain-language explanation of the verification result. |
| analysis.labels | ClientLabel[] | Structured error and treatment labels. See Error Labels. |
| usage.inputTokens | number | Total input tokens consumed. |
| usage.outputTokens | number | Total output tokens consumed. |
Example Response
{ "analysis": { "overall_assessment": "correct", "summary": "The citation accurately describes the ABC test established in Dynamex Operations West, Inc. v. Superior Court. The case adopted the ABC test for determining employee vs. independent contractor status under California wage orders. Note also that the California Legislature subsequently codified this test in Assembly Bill 5 (2019).", "labels": [ { "code": "generally_followed" } ] }, "usage": { "inputTokens": 28450, "outputTokens": 1842 } }
Check Balance
Returns remaining check credits for your API key.
{ "credits_remaining": 847, "plan": "prepaid" }
Citation Types
The citation_type parameter routes the request to the appropriate verification pipeline.
| Value | Authority | Example |
|---|---|---|
| case | Case Law | Dynamex Operations West, Inc. v. Superior Court, 4 Cal. 5th 903 (2018) |
| statute | Federal Statutes | 42 U.S.C. § 1983 |
| regulation | Federal Regulations | 29 C.F.R. § 541.602(a) |
| state_statute | State Statutes | Cal. Lab. Code § 2775 |
| constitution | State Constitutions | Cal. Const. art. I, § 1 |
| fed_court_rule | Federal Court Rules | Fed. R. Civ. P. 12(b)(6) |
| fr | Federal Register | 89 Fed. Reg. 32,842 (Apr. 26, 2024) |
| plaw | Public Laws | Pub. L. No. 117-169, 136 Stat. 1818 |
Coverage & Collections
Purpose-built legal data collections verified against primary authority.
Case Law
29M+ citations. Federal and state opinions with full text, citation graphs, parentheticals, and treatment history.
Federal Statutes
United States Code. Full section text with hierarchy and cross-references.
Federal Regulations
Code of Federal Regulations via eCFR. Current and historical versions at section-level granularity.
State Statutes
40+ state codes. Structured by jurisdiction with hierarchy, section text, and legislative history.
State Constitutions
All 50 states. Article, section, and clause-level text with amendment history.
Federal Court Rules
FRCP, FRE, FRAP, FRCrP, and Bankruptcy Rules with full text and hierarchical structure.
Federal Register
Final rules, proposed rules, and notices with full text and metadata.
Public Laws
Enacted legislation with Statutes at Large references and enrollment data.
Assessments
Every citation receives one of four assessments.
Error Labels
Structured codes describing specific issues found during verification.
Citation Accuracy
Treatment
Treatment labels describe how subsequent courts have treated the cited authority. These are informational and do not affect the accuracy assessment.
Error Codes
© 2026 Counsel Stack, Inc. All rights reserved.