---
title: "GET /documents"
method: GET
path: "/documents"
---

# GET /documents

`GET /documents`

## Query parameters

- `consentId` string
- `datasetId` string
- `nextToken` string
- `maxResults` string

## Response `200`

200 response

- Documents
  - `consentId` string[]
  - `datasetId` string[]
  - `documents` object[], required
    - `consentId` string
    - `content` string
    - `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
    - `name` string, nullable, required
    - `retentionInDays` integer, required
    - `updatedBy` string, nullable, required
    - `updatedTime` string, nullable, required
  - `nextToken` string, nullable, required

## Other responses

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

## Changes

- **2022-01-06** `79adeefb69f1` — 2 info
  - added the required property `documents/items/description` to the response with the `200` status
  - added the required property `documents/items/name` to the response with the `200` status
- **2021-11-05** `9788e6bfa925` — 4 breaking, 9 warning, 5 info
  - the `documents/items/content` response property's maxLength was unset from `6250000` for the response status `200`
  - removed the required property `documents/items/description` from the response with the `200` status
  - removed the required property `documents/items/metadata` from the response with the `200` status
  - removed the required property `documents/items/name` from the response with the `200` status
  - …14 more

[Change history](https://skmtc.dev/lucidtechai/apis/lucidtech-api/changes/documents/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/79adeefb69f1/schema)
