---
title: "Label Smart Doc Extraction Eval Result"
method: POST
path: "/internal/evals/smart-doc-extraction/label"
tags: ["internal"]
---

# Label Smart Doc Extraction Eval Result

`POST /internal/evals/smart-doc-extraction/label`

Save a reviewer-provided ground-truth expiration date for one document.

Ground truth is about the underlying document, not one eval run, so it's
shared across every run's results rather than scoped to `body.run_id`.

## Request body

- SmartDocExtractionLabelRequest
  - `run_id` string, required
  - `upload_id` string, required
  - `expiration_date` string, nullable

## Response `200`

Successful Response

- SmartDocExtractionResultItem
  - `upload_id` string, required
  - `group` string, required
  - `filename` string, nullable
  - `document_type` string, nullable
  - `smart_document_type` string, required
  - `preview_url` string, nullable
  - `ground_truth_expiration_date` string, nullable
  - `backends` object, required
  - `field_preferences` object
  - `preference_score` object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/kobaltlabs/apis/fastapi.md) · [All operations](https://skmtc.dev/kobaltlabs/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kobaltlabs/fastapi/revisions/425d5b8a3c17/schema)
