{"componentChunkName":"component---src-templates-simple-markdown-js","path":"/docs/ai/document-ai/using-results/","matchPath":"","result":{"data":{"markdownRemark":{"html":"<h1 style=\"position:relative;\"><a href=\"#reading-results\" aria-label=\"reading results permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><div class=\"hidden-anchor\" id=\"reading-results\"></div>Reading Results</h1>\n<p>A completed processing run can produce structured schema results, a generated document description, searchable content, and one or more result files.</p>\n<h2 style=\"position:relative;\"><a href=\"#review-results-in-shipwell\" aria-label=\"review results in shipwell permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><div class=\"hidden-anchor\" id=\"review-results-in-shipwell\"></div>Review results in Shipwell</h2>\n<ol>\n<li>\nOpen a completed document.\n</li>\n<li>\nOpen the latest run.\n</li>\n<li>\nReview the document summary.\n</li>\n<li>\nOpen \n<strong>Schemas</strong>\n to review structured values.\n</li>\n<li>\nSelect a value to locate its source when source regions are available.\n</li>\n<li>\nIf the document was split, move between its result slices.\n</li>\n</ol>\n<!-- SCREENSHOT PLACEHOLDER\nFile: images/run-inspector-summary.png\nCapture: Run Inspector Summary for a synthetic logistics document. Ensure generated text contains no customer data.\nAlt: Document processing summary\n-->\n<!-- SCREENSHOT PLACEHOLDER\nFile: images/run-inspector-schemas.png\nCapture: Run Inspector Schemas tab with purchase_order_number and total_amount examples and a visible source highlight.\nAlt: Extracted schemas and source highlight\n-->\n<h2 style=\"position:relative;\"><a href=\"#retrieve-results-for-a-run\" aria-label=\"retrieve results for a run permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><div class=\"hidden-anchor\" id=\"retrieve-results-for-a-run\"></div>Retrieve results for a run</h2>\n<p>Use the run identifier with <code class=\"language-text\">GET /document-store/documents/{id}/results?run_id={run_id}</code> to retrieve every result created by that run.</p>\n<p>The response is paginated. Each result contains:</p>\n<ul>\n<li>\n<code class=\"language-text\">id</code>\n — result identifier\n</li>\n<li>\n<code class=\"language-text\">run_id</code>\n — processing run that created the result\n</li>\n<li>\n<code class=\"language-text\">document_id</code>\n — source document\n</li>\n<li>\n<code class=\"language-text\">schemas</code>\n — structured extraction results\n</li>\n<li>\n<code class=\"language-text\">split_metadata</code>\n — information about the result slice when splitting is enabled\n</li>\n<li>\n<code class=\"language-text\">output_file_ref</code>\n — reference for a generated result file, when one exists\n</li>\n<li>\n<code class=\"language-text\">page_count</code>\n</li>\n<li>\n<code class=\"language-text\">created_at</code>\n and \n<code class=\"language-text\">updated_at</code>\n</li>\n</ul>\n<p>Use the result <code class=\"language-text\">id</code> when downloading or inspecting a specific split result.</p>\n<h2 style=\"position:relative;\"><a href=\"#read-schema-results\" aria-label=\"read schema results permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><div class=\"hidden-anchor\" id=\"read-schema-results\"></div>Read schema results</h2>\n<p>Each item in <code class=\"language-text\">schemas</code> corresponds to a schema in the processing configuration.</p>\n<div class=\"code-wrapper\">\n        <div class=\"gatsby-code-button-container\"\n             data-toaster-id=\"96623370826397960000\"\n             data-toaster-duration=\"1500\"\n             onClick=\"copyCodeToClipboard(`{\n  &quot;name&quot;: &quot;purchase_order_number&quot;,\n  &quot;value&quot;: &quot;PO-10482&quot;,\n  &quot;json_schema&quot;: {\n    &quot;type&quot;: [&quot;string&quot;, &quot;null&quot;]\n  },\n  &quot;prompt&quot;: &quot;Extract the purchase order number. Return null when absent.&quot;,\n  &quot;source_regions&quot;: [\n    {\n      &quot;left&quot;: 0.12,\n      &quot;top&quot;: 0.18,\n      &quot;width&quot;: 0.21,\n      &quot;height&quot;: 0.03\n    }\n  ],\n  &quot;scope&quot;: &quot;document&quot;,\n  &quot;result_cardinality&quot;: &quot;single&quot;\n}`, `96623370826397960000`)\"\n        >\n          <div class=\"gatsby-code-button\" title=\"Copy the code snippet\">Copy</div>\n          <div class=\"done-indicator done-indicator-96623370826397960000\">Copied</div>\n        </div>\n        <div class=\"gatsby-highlight\" data-language=\"json\"><pre class=\"language-json\"><code class=\"language-json\"><span class=\"token punctuation\">{</span>\n  <span class=\"token property\">\"name\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"purchase_order_number\"</span><span class=\"token punctuation\">,</span>\n  <span class=\"token property\">\"value\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"PO-10482\"</span><span class=\"token punctuation\">,</span>\n  <span class=\"token property\">\"json_schema\"</span><span class=\"token operator\">:</span> <span class=\"token punctuation\">{</span>\n    <span class=\"token property\">\"type\"</span><span class=\"token operator\">:</span> <span class=\"token punctuation\">[</span><span class=\"token string\">\"string\"</span><span class=\"token punctuation\">,</span> <span class=\"token string\">\"null\"</span><span class=\"token punctuation\">]</span>\n  <span class=\"token punctuation\">}</span><span class=\"token punctuation\">,</span>\n  <span class=\"token property\">\"prompt\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"Extract the purchase order number. Return null when absent.\"</span><span class=\"token punctuation\">,</span>\n  <span class=\"token property\">\"source_regions\"</span><span class=\"token operator\">:</span> <span class=\"token punctuation\">[</span>\n    <span class=\"token punctuation\">{</span>\n      <span class=\"token property\">\"left\"</span><span class=\"token operator\">:</span> <span class=\"token number\">0.12</span><span class=\"token punctuation\">,</span>\n      <span class=\"token property\">\"top\"</span><span class=\"token operator\">:</span> <span class=\"token number\">0.18</span><span class=\"token punctuation\">,</span>\n      <span class=\"token property\">\"width\"</span><span class=\"token operator\">:</span> <span class=\"token number\">0.21</span><span class=\"token punctuation\">,</span>\n      <span class=\"token property\">\"height\"</span><span class=\"token operator\">:</span> <span class=\"token number\">0.03</span>\n    <span class=\"token punctuation\">}</span>\n  <span class=\"token punctuation\">]</span><span class=\"token punctuation\">,</span>\n  <span class=\"token property\">\"scope\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"document\"</span><span class=\"token punctuation\">,</span>\n  <span class=\"token property\">\"result_cardinality\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"single\"</span>\n<span class=\"token punctuation\">}</span></code></pre></div>\n      </div>\n<p>For application logic:</p>\n<ol>\n<li>\nSelect results by \n<code class=\"language-text\">name</code>\n.\n</li>\n<li>\nValidate \n<code class=\"language-text\">value</code>\n against the schema contract your integration expects.\n</li>\n<li>\nHandle \n<code class=\"language-text\">null</code>\n or missing results explicitly.\n</li>\n<li>\nUse \n<code class=\"language-text\">source_regions</code>\n for review experiences, not as the extracted business value.\n</li>\n<li>\nIgnore response fields your integration does not use.\n</li>\n</ol>\n<h2 style=\"position:relative;\"><a href=\"#multiple-results\" aria-label=\"multiple results permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><div class=\"hidden-anchor\" id=\"multiple-results\"></div>Multiple results</h2>\n<p>When <code class=\"language-text\">result_cardinality</code> is <code class=\"language-text\">multiple</code>, the <code class=\"language-text\">schemas</code> array can contain several entries with the same <code class=\"language-text\">name</code>. Do not assume schema names are unique within a result.</p>\n<p>When the schema's <code class=\"language-text\">json_schema</code> defines an array, one schema-result entry can itself contain an array value. That is different from <code class=\"language-text\">result_cardinality: \"multiple\"</code>.</p>\n<h2 style=\"position:relative;\"><a href=\"#split-documents\" aria-label=\"split documents permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><div class=\"hidden-anchor\" id=\"split-documents\"></div>Split documents</h2>\n<p>When <code class=\"language-text\">split</code> is enabled and multiple logical documents are detected:</p>\n<ul>\n<li>\nOne uploaded document can have multiple result rows.\n</li>\n<li>\nEach result row represents a detected document slice.\n</li>\n<li>\n<code class=\"language-text\">split_metadata</code>\n identifies the source pages for the slice.\n</li>\n<li>\nA result file may be available for each slice.\n</li>\n<li>\nPage numbers continue to refer to the uploaded parent document.\n</li>\n</ul>\n<p>Use the complete result list for the run. Do not rely on <code class=\"language-text\">GET /documents/{id}/results/latest</code> when you need every slice; that endpoint returns only the newest single result row.</p>\n<!-- SCREENSHOT PLACEHOLDER\nFile: images/run-inspector-split-results.png\nCapture: Run Inspector for a synthetic compound PDF with at least two result slices and page navigation.\nAlt: Multiple result slices from a split document\n-->\n<h2 style=\"position:relative;\"><a href=\"#generated-descriptions\" aria-label=\"generated descriptions permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><div class=\"hidden-anchor\" id=\"generated-descriptions\"></div>Generated descriptions</h2>\n<p>When auto-description is enabled, a successful run updates the document's <code class=\"language-text\">description</code>. Retrieve the document to read the current description:</p>\n<p>Use <code class=\"language-text\">GET /document-store/documents/{id}</code> and read <code class=\"language-text\">description</code>.</p>\n<p>A later successful run with auto-description enabled can replace that description. Preserve a prior value in your own system if your workflow requires historical comparison.</p>\n<h2 style=\"position:relative;\"><a href=\"#inspect-supporting-content\" aria-label=\"inspect supporting content permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><div class=\"hidden-anchor\" id=\"inspect-supporting-content\"></div>Inspect supporting content</h2>\n<p>Use the read-only investigation endpoints when your application needs:</p>\n<ul>\n<li>\nA document outline\n</li>\n<li>\nExtracted text for one page\n</li>\n<li>\nKey-value fields\n</li>\n<li>\nDetected signatures\n</li>\n</ul>\n<p>See <a href=\"/docs/ai/document-ai/inspecting-document-content/\">Inspecting Content</a> and <a href=\"/docs/ai/document-ai/signatures/\">Signatures</a>.</p>\n<h2 style=\"position:relative;\"><a href=\"#result-handling-recommendations\" aria-label=\"result handling recommendations permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><div class=\"hidden-anchor\" id=\"result-handling-recommendations\"></div>Result handling recommendations</h2>\n<ul>\n<li>\nKey downstream work by \n<code class=\"language-text\">document_id</code>\n and \n<code class=\"language-text\">run_id</code>\n.\n</li>\n<li>\nTreat each run as immutable history.\n</li>\n<li>\nExpect schema values to be absent when the source document does not contain them.\n</li>\n<li>\nValidate values before applying automated business actions.\n</li>\n<li>\nKeep a human review step for high-impact decisions.\n</li>\n<li>\nUse webhook events as a signal to retrieve the current resource; do not treat an event as the complete result.\n</li>\n</ul>","headings":[{"value":"Reading Results","depth":1},{"value":"Review results in Shipwell","depth":2},{"value":"Retrieve results for a run","depth":2},{"value":"Read schema results","depth":2},{"value":"Multiple results","depth":2},{"value":"Split documents","depth":2},{"value":"Generated descriptions","depth":2},{"value":"Inspect supporting content","depth":2},{"value":"Result handling recommendations","depth":2}]},"contentItem":{"data":{"lastModified":"2026-07-17T16:00:10.000Z","enableToc":null,"disableLastModified":null,"tocMaxDepth":null,"requestLogin":false}},"siteConfig":{"enableToc":true,"disableLastModified":false,"tocMaxDepth":4}},"pageContext":{"matchPath":"","id":"0c3c1b5a-70f3-5298-8113-3a8cb8546aa6__redocly content/docs/ai/document-ai/using-results/","seo":{"title":"Reading Results","description":null,"image":"","keywords":null,"jsonLd":null,"lang":null,"siteUrl":null},"pageId":"docs/ai/document-ai/using-results.md","pageBaseUrl":"/docs/ai/document-ai/using-results","type":"markdown","toc":{"enable":true,"maxDepth":4,"headings":[{"depth":1,"value":"Reading Results","id":"reading-results"},{"depth":2,"value":"Review results in Shipwell","id":"review-results-in-shipwell"},{"depth":2,"value":"Retrieve results for a run","id":"retrieve-results-for-a-run"},{"depth":2,"value":"Read schema results","id":"read-schema-results"},{"depth":2,"value":"Multiple results","id":"multiple-results"},{"depth":2,"value":"Split documents","id":"split-documents"},{"depth":2,"value":"Generated descriptions","id":"generated-descriptions"},{"depth":2,"value":"Inspect supporting content","id":"inspect-supporting-content"},{"depth":2,"value":"Result handling recommendations","id":"result-handling-recommendations"}]},"data":{"title":"Reading Results"},"catalogInfo":null,"link":"/docs/ai/document-ai/using-results/","sidebarName":"developerPortal","isLanding":false,"showPrevButton":null,"showNextButton":null,"apiVersions":null,"apiVersionId":null,"isDefaultApiVersion":null}},"staticQueryHashes":["1123603147","1302185487","1344209882","1398840060","1520077861","1975142765","2667623876","2950305614","3240152602","3743992808","561138138"]}