---
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`

## Request

- Base URL: `https://api.kobaltlabs.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.kobaltlabs.com/internal/evals/smart-doc-extraction/label`
- Auth: none declared

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/kobaltlabs-api.md) - [All operations](https://skmtc.dev/kobaltlabs/apis/kobaltlabs-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kobaltlabs/apis/kobaltlabs-api/revisions/8587332d5e43?raw)
