---
title: "Download the latest version of a legal document"
method: GET
path: "/legal-documents/{legal_document_id}/latest/file"
tags: ["legal-documents"]
---

# Download the latest version of a legal document

`GET /legal-documents/{legal_document_id}/latest/file`

## Request

- Base URL: `https://api.engine.usesophic.com`
- URL: `https://api.engine.usesophic.com/legal-documents/{legal_document_id}/latest/file`
- Auth: HTTP bearer

Downloads the file for the latest version of a legal document (by effective date). This endpoint redirects to a signed download URL. Clients that cannot follow a redirect can make the request with ?redirect=false and manually open the URL in `download_url` to trigger the download. If you want to open the file inline,add ?inline=true to the request.

## Path parameters

- `legal_document_id` string, required: The ID of the legal document.

## Query parameters

- `redirect` boolean
- `inline` boolean

## Response `200`

OK

- unknown

## Other responses

- `400`: Bad Request

## Changes

- **2026-10-06** `aa43bab6253c`: 1 breaking
  - response property `context/additionalProperties/` list-of-types was widened by adding types `array` to media type `application/json` of response `400`
- **2026-07-13** `03da9bc8e86b`: 1 info
  - api tag `legal-documents` added

[Operation history](https://skmtc.dev/joinsophic/apis/sophic-engine-api/changes/legal-documents/:legal_document_id/latest/file/get.md)

---

[API](https://skmtc.dev/joinsophic/apis/sophic-engine-api.md) - [All operations](https://skmtc.dev/joinsophic/apis/sophic-engine-api/llms.txt) - [OpenAPI document](https://skmtc.dev/joinsophic/apis/sophic-engine-api/revisions/1afda7d8d185?raw)
