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

# GET /documents/{documentId}

`GET /documents/{documentId}`

## Path parameters

- `documentId` string, required

## Response `200`

200 response

- Document
  - `consentId` string
  - `content` string
  - `contentMD5` string, nullable, required
  - `contentType` 'application/pdf' | 'image/jpeg' | 'image/png' | 'image/tiff', required
  - `createdBy` string, nullable, required
  - `createdTime` string, nullable, required
  - `datasetId` string
  - `description` string, nullable, required
  - `documentId` string, required
  - `groundTruth` object[]
    - `label` string, required
    - `value` union, required
      - string, nullable
      - boolean, nullable
      - number, nullable
      - union
        - object[]
          - `label` string, required
          - `value` union, required
            - string
            - boolean
            - number
            - GroundTruthList — recursive
        - array[]
          - object[]
            - `label` string, required
            - `value` union, required
              - …
  - `metadata` object, nullable, required
  - `name` string, nullable, required
  - `retentionInDays` integer, required
  - `updatedBy` string, nullable, required
  - `updatedTime` string, nullable, required

## Other responses

- `400` — 400 response
- `403` — 403 response
- `404` — 404 response
- `415` — 415 response
- `500` — 500 response

## Changes

- **2022-09-29** `424af607ab69` — 2 breaking, 2 info
  - the response property `groundTruth/items/value/anyOf[#/components/schemas/groundTruthList]/` became nullable for the status `200`
  - the response property `metadata` became nullable for the status `200`
  - added `subschema #2, subschema #3` to the `groundTruth/items/value` response property `anyOf` list for the response status `200`
  - removed `subschema #2, subschema #3` from the `groundTruth/items/value` response property `anyOf` list for the response status `200`
- **2022-09-13** `b8d771f64c04` — 1 info
  - added the required property `contentMD5` to the response with the `200` status
- **2022-03-31** `13bf8cf663ba` — 1 breaking, 2 info
  - the `groundTruth/items/value/anyOf[subschema #1]/` response property's maxLength was increased from `128` to `512` for the response status `200`
  - added `subschema #1, subschema #2` to the `groundTruth/items/value/anyOf[#/components/schemas/groundTruthList]/` response property `anyOf` list for the response status `200`
  - removed `subschema #1, subschema #2` from the `groundTruth/items/value/anyOf[#/components/schemas/groundTruthList]/` response property `anyOf` list for the response status `200`
- …earlier changes not shown

[Full history](https://skmtc.dev/lucidtechai/apis/lucidtech-api/changes/documents/:documentId/get.md)

---

[API](https://skmtc.dev/lucidtechai/apis/lucidtech-api.md) · [All operations](https://skmtc.dev/lucidtechai/apis/lucidtech-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/lucidtechai/lucidtech-api/revisions/424af607ab69/schema)
