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

# Retrieve the latest version of a legal document

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

## Request

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

Retrieves the latest version of a legal document alongside its download URL.

## Path parameters

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

## Query parameters

- `inline` boolean

## Response `200`

OK

- LegalDocumentVersionWithDownloadUrl
  - `created_at` string, date-time, required: The timestamp (in [ISO-8601](https://www.iso.org/iso-8601-date-and-time-format.html) format) of when the resource was created.
  - `download_url` string, required: Download URL for the legal document version.
  - `effective_at` string, date-time, required: Time the legal document version becomes effective.
  - `file` string, required: ID of the file for the legal document version.
  - `id` string, required: Unique resource identifier.
  - `legal_document` string, required: ID of the parent legal document.
  - `modified_at` string, date-time, required: The timestamp (in [ISO-8601](https://www.iso.org/iso-8601-date-and-time-format.html) format) of when the resource was last modified.
  - `version` string, required: Version of the legal document.

## 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/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)
