---
title: "A published legal document"
method: GET
path: "/api/legal/{slug}"
---

# A published legal document

`GET /api/legal/{slug}`

## Request

- Base URL: `https://trooth.co`
- URL: `https://trooth.co/api/legal/{slug}`
- Auth: none required

The full text of one of the twenty published Trooth legal documents, with its title, effective date and body. The slug must be one of the published set; anything else responds 404. Cached at the edge for one hour with a one day stale-while-revalidate window. Readable cross-origin: the response carries Access-Control-Allow-Origin: * and never Access-Control-Allow-Credentials, so a browser on any site may read it without cookies.

## Path parameters

- `slug` string, required

## Response `200`

The document.

- LegalDocument
  - `slug` string, required
  - `title` string, required
  - `effective` string, required
  - `html` string, required

## Other responses

- `404`: Unknown document.

---

[API](https://skmtc.dev/trooth/apis/trooth-public-api.md) · [All operations](https://skmtc.dev/trooth/apis/trooth-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/trooth/apis/trooth-public-api/revisions/e4d4e92641d9?raw)
