Endpoints
Four endpoints. Every response carries an as_of date and at least one citation.
Base URL: https://api.lexcel.ai/v1. Bearer token in the Authorization header.
POST /v1/ask
Section titled “POST /v1/ask”Ask a natural-language question, get a cited answer scoped to one jurisdiction.
Request
{ "question": "Can a Delaware LLC waive fiduciary duties in its operating agreement?", "jurisdiction": "DE", "as_of": "2025-08-01"}| Field | Type | Required | Notes |
|---|---|---|---|
question | string | yes | Plain English. No length limit but shorter questions get faster answers. |
jurisdiction | string | yes | Two-letter code (DE, NY, CA, DC). See Coverage. |
as_of | string | no | ISO date. Defaults to today. |
Response
{ "answer": "Yes. Delaware permits an LLC operating agreement to expand, restrict, or eliminate the duties (including fiduciary duties) of members and managers, provided the implied contractual covenant of good faith and fair dealing is preserved.", "citations": [ { "code": "6 Del. C. § 18-1101(c)", "section_number": "18-1101(c)", "section_title": "Construction and application of chapter and limited liability company agreement", "quote": "the member's or manager's or other person's duties may be expanded or restricted or eliminated by provisions in the limited liability company agreement", "effective_as_of": "2025-08-01", "status": "CURRENT" } ], "jurisdiction": "DE", "confidence": "high"}GET /v1/statute/{citation}
Section titled “GET /v1/statute/{citation}”Retrieve a specific section’s canonical text, effective date, version history, and cross-references.
Request
GET /v1/statute/6%20Del.%20C.%20%C2%A7%2018-1101(c)Pass any recognizable citation. URL-encode the whole citation string.
Response
{ "code": "6 Del. C. § 18-1101(c)", "section_number": "18-1101(c)", "section_title": "Construction and application of chapter and limited liability company agreement", "text": "...", "history": "Enacted 1992. Amended 2004, 2013, 2018.", "cross_references": ["6 Del. C. § 18-1104"], "effective_as_of": "2025-08-01", "status": "CURRENT", "jurisdiction": "DE"}POST /v1/compare
Section titled “POST /v1/compare”Same question, multiple jurisdictions, one call.
Request
{ "question": "May an LLC operating agreement eliminate fiduciary duties?", "jurisdictions": ["DE", "NY", "CA", "TX"]}Response
{ "results": [ { "jurisdiction": "DE", "answer": "Yes...", "citations": [...] }, { "jurisdiction": "NY", "answer": "No, but they may be modified...", "citations": [...] }, { "jurisdiction": "CA", "answer": "Only in limited circumstances...", "citations": [...] }, { "jurisdiction": "TX", "answer": "Yes...", "citations": [...] } ]}POST /v1/verify
Section titled “POST /v1/verify”Pass a legal assertion and a jurisdiction, get back whether the statute supports it and where.
Request
{ "assertion": "Delaware allows an LLC operating agreement to eliminate the duty of loyalty.", "jurisdiction": "DE"}Response
{ "verdict": "SUPPORTED", "explanation": "Section 18-1101(c) permits duties, including fiduciary duties, to be expanded, restricted, or eliminated by the operating agreement.", "citations": [ { "code": "6 Del. C. § 18-1101(c)", "quote": "...", "effective_as_of": "2025-08-01", "status": "CURRENT" } ]}verdict is one of SUPPORTED, CONTRADICTED, NO_MATCH.
Errors
Section titled “Errors”| Status | Meaning |
|---|---|
400 | Malformed request (missing jurisdiction, unknown code) |
401 | Missing or invalid API key |
403 | Key revoked or expired |
422 | Jurisdiction not supported (see Coverage) |
429 | Rate limit exceeded — retry after the Retry-After header |
503 | Temporarily unavailable — retry after Retry-After |
Error bodies are JSON: { "detail": "..." }.