---
title: "Retrieve document"
method: GET
path: "/documents/{documentId}"
---

# Retrieve document

`GET /documents/{documentId}`

Get a specific document by ID

## Path parameters

- `documentId` number, required — The ID of the document to retrieve

## Query parameters

- `namespace` 'uk-legislation', required — The namespace of the document

## Response `200`

Document found

- object
  - `id` number, required — Document ID
  - `url` string, required — Document URL
  - `namespace` 'uk-legislation', required — Document namespace
  - `title` string, required — Document title
  - `text` string, required — Full document text
  - `summary` string, required — Document summary
  - `indexed_at` number, required — Unix timestamp of when the document was indexed

## Other responses

- `404` — Document not found

---

[API](https://skmtc.net/team-openpm/apis/lawgpt-search-api.md) · [All operations](https://skmtc.net/team-openpm/apis/lawgpt-search-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/team-openpm/lawgpt-search-api/revisions/133ed3f1fef0/schema)
