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

# GET /predictions

`GET /predictions`

## Query parameters

- `nextToken` string
- `maxResults` string
- `sortBy` string
- `order` string

## Response `200`

200 response

- Predictions
  - `nextToken` string, nullable, required
  - `order` 'ascending' | 'descending'
  - `predictions` object[], required
    - `createdBy` string, nullable
    - `createdTime` string, nullable
    - `documentId` string, required
    - `inferenceTime` number, required
    - `modelId` string, required
    - `postprocessConfig` union
      - object
        - `strategy` 'BEST_FIRST', required
      - object
        - `parameters` object, required
          - `collapse` boolean
          - `n` integer, required
        - `strategy` 'BEST_N_PAGES', required
    - `predictionId` string, required
    - `predictions` union[], required
      - union
        - object
          - `confidence` number, required
          - `label` string, required
          - `location` number[]
          - `page` integer
          - `value` string, nullable, required
        - object
          - `label` string, required
          - `page` integer
          - `value` array[], required
            - object[]
              - …
    - `preprocessConfig` object, nullable
      - `autoRotate` boolean
      - `imageQuality` 'LOW' | 'HIGH'
      - `maxPages` integer
      - `pages` integer[]
      - `rotation` 0 | 90 | 180 | 270
    - `trainingId` string, nullable
  - `sortBy` 'createdTime'

## Other responses

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

## Changes

- **2023-06-14** `2af8d1616889` — 3 breaking, 2 info
  - the response property `predictions/items/preprocessConfig/autoRotate` became optional for the status `200`
  - the response property `predictions/items/preprocessConfig/imageQuality` became optional for the status `200`
  - the response property `predictions/items/preprocessConfig/maxPages` became optional for the status `200`
  - added the optional property `predictions/items/preprocessConfig/pages` to the response with the `200` status
  - …1 more
- **2023-03-28** `6f04f3b3738e` — 2 info
  - added the optional property `predictions/items/postprocessConfig` to the response with the `200` status
  - added the optional property `predictions/items/preprocessConfig` to the response with the `200` status
- **2023-02-27** `38ef4f3feaaf` — 2 info
  - added `subschema #1, subschema #2` to the `predictions/items/predictions/items/` response property `anyOf` list for the response status `200`
  - removed `subschema #1, subschema #2` from the `predictions/items/predictions/items/` response property `anyOf` list for the response status `200`
- …earlier changes not shown

[Full history](https://skmtc.dev/lucidtechai/apis/lucidtech-api/changes/predictions/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/654101a6bca7/schema)
