---
title: "Get full text of legal document"
method: POST
path: "/legal/v1/full-text"
tags: ["Legal"]
---

# Get full text of legal document

`POST /legal/v1/full-text`

Retrieve the full text content of a legal document. Use after verifying the source with legal.verify(). Returns complete text with optional highlights and AI summary.

## Request body

- object
  - `url` string, uri, required — URL of the verified legal document
  - `maxCharacters` integer — Maximum characters to return (default: 10000, max: 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 `200`

Document content retrieved successfully

- object
  - `url` string — Document URL
  - `title` string — Document title
  - `publishedDate` string, nullable — Publication date
  - `author` string, nullable — Author or court
  - `text` string — Full document text
  - `highlights` string[] — Highlighted relevant passages
  - `summary` string, nullable — AI-generated summary
  - `characterCount` integer — Total characters in text

## Other responses

- `400` — Bad request - invalid URL or parameters
- `401` — Unauthorized - invalid API key
- `403` — Forbidden - insufficient permissions
- `503` — Service unavailable - content service unreachable

---

[API](https://skmtc.net/casemark/apis/case-dev-api.md) · [All operations](https://skmtc.net/casemark/apis/case-dev-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/casemark/case-dev-api/versions/5b7e64e6d6f9/schema)
