Skip to main content

October 16, 2026

[New + API] Read and set one dataset document’s ground truth GET /v3/document-packets/{document_packet_id}/ground-truth/ reads a dataset document’s ground truth, keyed by field persistent_id (null until it is first set), and PUT on the same path creates or replaces it: 201 on the first write, 200 on a replace, both with the stored document. Both take an optional workflow version and extract node, and answer with the version_id and node_id they used. A production packet answers 409 NOT_IN_DATASET, now a documented error code. The Python SDK adds get_ground_truth and set_ground_truth, the TypeScript SDK getGroundTruth and setGroundTruth, and the MCP server the get_ground_truth and set_ground_truth tools. See Get ground truth and Set ground truth.