Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.case.dev/llms.txt

Use this file to discover all available pages before exploring further.

We search the web, synthesize the results, and cite our sources.
Endpoint
POST /search/v1/answer
curl -X POST https://api.case.dev/search/v1/answer \
  -H "Authorization: Bearer sk_case_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "What is the statute of limitations for medical malpractice in California?"
  }'
Response
{
  "answer": "In California, the statute of limitations for medical malpractice is generally 3 years from the date of injury or 1 year from when the patient discovered or should have discovered the injury, whichever comes first [1]. However, there are exceptions for cases involving foreign objects left in the body [2] and for minors [3].",
  "citations": [
    {
      "id": "1",
      "url": "https://law.cornell.edu/california/medical-malpractice",
      "title": "California Medical Malpractice Laws",
      "text": "California Code of Civil Procedure Section 340.5..."
    },
    {
      "id": "2",
      "url": "https://findlaw.com/healthcare/foreign-object-exception",
      "title": "Foreign Object Exception",
      "text": "When a foreign object is left in the body..."
    }
  ]
}

Parameters

ParameterTypeDefaultDescription
querystringRequiredQuestion to answer
numResultsnumber10Number of sources to search
includeDomainsarrayOnly search these domains
excludeDomainsarrayExclude these domains
useCustomLLMbooleanfalseUse Case.dev LLM for answer
modelstringgpt-4oLLM model (when useCustomLLM: true)
streambooleanfalseStream the response

Examples

Basic question

casedev search:v1 answer \
  --query "What are the requirements for a valid non-compete agreement in Texas?"

Authoritative sources only

casedev search:v1 answer \
  --query "What is the current federal minimum wage?" \
  --include-domain dol.gov \
  --include-domain law.cornell.edu \
  --include-domain congress.gov \
  --num-results 5

With custom LLM

casedev search:v1 answer \
  --query "Explain the differences between Chapter 7 and Chapter 11 bankruptcy" \
  --use-custom-llm \
  --model "anthropic/claude-sonnet-4.5"
Web data only. For comprehensive legal research, use Lexis, Westlaw, or OpenLaws.