Skip to main content
POST
/
legal
/
v1
/
full-text
Get full text of legal document
curl --request POST \
  --url https://api.case.dev/legal/v1/full-text \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "maxCharacters": 10000,
  "highlightQuery": "<string>",
  "summaryQuery": "<string>"
}
'
{
  "url": "<string>",
  "title": "<string>",
  "publishedDate": "<string>",
  "author": "<string>",
  "text": "<string>",
  "highlights": [
    "<string>"
  ],
  "summary": "<string>",
  "characterCount": 123
}

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