Skip to main content
POST
/
legal
/
v1
/
full-text
curl -X POST "https://api.case.dev/legal/v1/full-text" \ -H "Authorization: Bearer $CASEDEV_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "url": "<string>" }'
{
  "url": "<string>",
  "title": "<string>",
  "publishedDate": "<string>",
  "author": "<string>",
  "text": "<string>",
  "highlights": [
    "<string>"
  ],
  "summary": "<string>",
  "characterCount": 123
}

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.

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Body

application/json

URL and retrieval options

url
string<uri>
required

URL of the verified legal document

maxCharacters
integer
default:10000

Maximum characters to return (default: 10000, max: 50000)

Required range: 1000 <= x <= 50000
highlightQuery
string

Optional query to extract relevant highlights (e.g., "What is the holding?")

summaryQuery
string

Optional query for generating a summary (e.g., "Summarize the key ruling")

Response

Document content retrieved successfully

url
string

Document URL

title
string

Document title

publishedDate
string | null

Publication date

author
string | null

Author or court

text
string

Full document text

highlights
string[]

Highlighted relevant passages

summary
string | null

AI-generated summary

characterCount
integer

Total characters in text