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.

The problem: You need to research a legal issue across multiple jurisdictions. Manual research takes days. The solution: Use AI-powered web search to get answers with citations, or run deep research for comprehensive analysis.
Web data only. This searches publicly available web content. For comprehensive legal research (case law, statutes, regulations), use specialized platforms like Lexis, Westlaw, or OpenLaws.

Quick answer with citations

Let your users get AI-generated answers to questions:
curl -X POST https://api.case.dev/search/v1/answer \
  -H "Authorization: Bearer $CASEDEV_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "What is the statute of limitations for medical malpractice in California?",
    "includeDomains": ["law.cornell.edu", "findlaw.com", "justia.com"]
  }'

Deep research

For complex topics, offer your users comprehensive multi-step research:
# Start research
RESEARCH=$(curl -s -X POST https://api.case.dev/search/v1/research \
  -H "Authorization: Bearer $CASEDEV_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "instructions": "Research non-compete agreement enforceability across US states",
    "model": "pro"
  }')

RESEARCH_ID=$(echo $RESEARCH | jq -r '.researchId')

# Get results
curl "https://api.case.dev/search/v1/research/$RESEARCH_ID" \
  -H "Authorization: Bearer $CASEDEV_API_KEY"
For simple searches, expose the search endpoint directly:
curl -X POST https://api.case.dev/search/v1/search \
  -H "Authorization: Bearer $CASEDEV_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "SEC cryptocurrency enforcement actions 2024",
    "numResults": 20,
    "startPublishedDate": "2024-01-01",
    "excludeDomains": ["reddit.com", "twitter.com"],
    "includeText": true
  }'

Research models

Choose based on your users’ needs:
ModelTimeDepthUse case
fast~30 secBasicQuick fact-checking
normal~2 minGoodStandard research
pro~5 minBestComplex topics
Tip: Use includeDomains to restrict results to authoritative sources like government sites and legal databases.