{"componentChunkName":"component---src-templates-simple-markdown-js","path":"/docs/ai/document-ai/managing-documents/","matchPath":"","result":{"data":{"markdownRemark":{"html":"<h1 style=\"position:relative;\"><a href=\"#managing-documents\" aria-label=\"managing 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=\"managing-documents\"></div>Managing Documents</h1>\n<p>Use the document list and document endpoints to find, organize, correct, and delete documents.</p>\n<h2 style=\"position:relative;\"><a href=\"#find-documents-in-shipwell\" aria-label=\"find documents 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=\"find-documents-in-shipwell\"></div>Find documents in Shipwell</h2>\n<p>The Document AI list shows each document's filename, type, associations, status, and latest processing information.</p>\n<p>Use filters to narrow the list, then open a document to view its metadata, run history, and latest results.</p>\n<p><img src=\"/ef105e80f3b8d06183180c875432878a/document-list-filters.png\" alt=\"Filtering the Document AI document list\"></p>\n<h2 style=\"position:relative;\"><a href=\"#list-documents-through-the-api\" aria-label=\"list documents through the api 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=\"list-documents-through-the-api\"></div>List documents through the API</h2>\n\n      <div class=\"code-snippets-tabs\" >\n    <div class=\"snippets-tabs-headers\">\n      <span class=\"tab-header active\" data-lang=\"curl\" data-snippet-id=\"curl\">curl</span><span class=\"tab-header \" data-lang=\"python\" data-snippet-id=\"python\">python</span>\n    </div>\n    <div class=\"snippets-tabs-contents\">\n      <div class=\"tab-content active\" data-lang=\"curl\" data-snippet-id=\"curl\"><div class=\"code-wrapper\">\n        <div class=\"gatsby-code-button-container\"\n             data-toaster-id=\"18359449336672463000\"\n             data-toaster-duration=\"1500\"\n             onClick=\"copyCodeToClipboard(`curl --get \\\\\n  &quot;https://sandbox-api.shipwell.com/document-store/documents&quot; \\\\\n  -H &quot;Authorization: Token <user-token>&quot; \\\\\n  --data-urlencode &quot;status=completed&quot; \\\\\n  --data-urlencode &quot;entity_type=shipment&quot; \\\\\n  --data-urlencode &quot;entity_id=SW-1001&quot; \\\\\n  --data-urlencode &quot;sort_by=created_at&quot; \\\\\n  --data-urlencode &quot;sort_direction=desc&quot;`, `18359449336672463000`)\"\n        >\n          <div class=\"gatsby-code-button\" title=\"Copy the code snippet\">Copy</div>\n          <div class=\"done-indicator done-indicator-18359449336672463000\">Copied</div>\n        </div>\n        <div class=\"gatsby-highlight\" data-language=\"curl\"><pre class=\"language-curl\"><code class=\"language-curl\">curl --get \\\n  &quot;https://sandbox-api.shipwell.com/document-store/documents&quot; \\\n  -H &quot;Authorization: Token &lt;user-token&gt;&quot; \\\n  --data-urlencode &quot;status=completed&quot; \\\n  --data-urlencode &quot;entity_type=shipment&quot; \\\n  --data-urlencode &quot;entity_id=SW-1001&quot; \\\n  --data-urlencode &quot;sort_by=created_at&quot; \\\n  --data-urlencode &quot;sort_direction=desc&quot;</code></pre></div>\n      </div></div><div class=\"tab-content \" data-lang=\"python\" data-snippet-id=\"python\"><div class=\"code-wrapper\">\n        <div class=\"gatsby-code-button-container\"\n             data-toaster-id=\"56754043441000950000\"\n             data-toaster-duration=\"1500\"\n             onClick=\"copyCodeToClipboard(`import requests\n\nresponse = requests.get(\n    &quot;https://sandbox-api.shipwell.com/document-store/documents&quot;,\n    headers={&quot;Authorization&quot;: &quot;Token <user-token>&quot;},\n    params={\n        &quot;status&quot;: &quot;completed&quot;,\n        &quot;entity_type&quot;: &quot;shipment&quot;,\n        &quot;entity_id&quot;: &quot;SW-1001&quot;,\n        &quot;sort_by&quot;: &quot;created_at&quot;,\n        &quot;sort_direction&quot;: &quot;desc&quot;,\n    },\n    timeout=30,\n)\nresponse.raise_for_status()\ndocuments = response.json()`, `56754043441000950000`)\"\n        >\n          <div class=\"gatsby-code-button\" title=\"Copy the code snippet\">Copy</div>\n          <div class=\"done-indicator done-indicator-56754043441000950000\">Copied</div>\n        </div>\n        <div class=\"gatsby-highlight\" data-language=\"python\"><pre class=\"language-python\"><code class=\"language-python\"><span class=\"token keyword\">import</span> requests\n\nresponse <span class=\"token operator\">=</span> requests<span class=\"token punctuation\">.</span>get<span class=\"token punctuation\">(</span>\n    <span class=\"token string\">\"https://sandbox-api.shipwell.com/document-store/documents\"</span><span class=\"token punctuation\">,</span>\n    headers<span class=\"token operator\">=</span><span class=\"token punctuation\">{</span><span class=\"token string\">\"Authorization\"</span><span class=\"token punctuation\">:</span> <span class=\"token string\">\"Token &lt;user-token>\"</span><span class=\"token punctuation\">}</span><span class=\"token punctuation\">,</span>\n    params<span class=\"token operator\">=</span><span class=\"token punctuation\">{</span>\n        <span class=\"token string\">\"status\"</span><span class=\"token punctuation\">:</span> <span class=\"token string\">\"completed\"</span><span class=\"token punctuation\">,</span>\n        <span class=\"token string\">\"entity_type\"</span><span class=\"token punctuation\">:</span> <span class=\"token string\">\"shipment\"</span><span class=\"token punctuation\">,</span>\n        <span class=\"token string\">\"entity_id\"</span><span class=\"token punctuation\">:</span> <span class=\"token string\">\"SW-1001\"</span><span class=\"token punctuation\">,</span>\n        <span class=\"token string\">\"sort_by\"</span><span class=\"token punctuation\">:</span> <span class=\"token string\">\"created_at\"</span><span class=\"token punctuation\">,</span>\n        <span class=\"token string\">\"sort_direction\"</span><span class=\"token punctuation\">:</span> <span class=\"token string\">\"desc\"</span><span class=\"token punctuation\">,</span>\n    <span class=\"token punctuation\">}</span><span class=\"token punctuation\">,</span>\n    timeout<span class=\"token operator\">=</span><span class=\"token number\">30</span><span class=\"token punctuation\">,</span>\n<span class=\"token punctuation\">)</span>\nresponse<span class=\"token punctuation\">.</span>raise_for_status<span class=\"token punctuation\">(</span><span class=\"token punctuation\">)</span>\ndocuments <span class=\"token operator\">=</span> response<span class=\"token punctuation\">.</span>json<span class=\"token punctuation\">(</span><span class=\"token punctuation\">)</span></code></pre></div>\n      </div></div>\n    </div></div>\n    \n<p>Available filters include:</p>\n<ul>\n<li>\n<code class=\"language-text\">entity_type</code>\n and \n<code class=\"language-text\">entity_id</code>\n</li>\n<li>\n<code class=\"language-text\">status</code>\n</li>\n<li>\n<code class=\"language-text\">content_type</code>\n</li>\n<li>\n<code class=\"language-text\">document_type</code>\n</li>\n<li>\n<code class=\"language-text\">created_from</code>\n — inclusive RFC 3339 timestamp\n</li>\n<li>\n<code class=\"language-text\">created_to</code>\n — exclusive RFC 3339 timestamp\n</li>\n</ul>\n<p>Repeat list filters such as <code class=\"language-text\">status</code> to include multiple values.</p>\n<p>Sorting supports <code class=\"language-text\">filename</code>, <code class=\"language-text\">created_at</code>, <code class=\"language-text\">status</code>, and <code class=\"language-text\">content_type</code>. Results default to 20 per page and support up to 100.</p>\n<h2 style=\"position:relative;\"><a href=\"#retrieve-one-document\" aria-label=\"retrieve one document 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-one-document\"></div>Retrieve one document</h2>\n<p>Use <code class=\"language-text\">GET /document-store/documents/{id}</code> to retrieve one document.</p>\n<p>The response includes:</p>\n<ul>\n<li>\nSource file metadata\n</li>\n<li>\nDocument status and skip reason\n</li>\n<li>\nDescription\n</li>\n<li>\nAssociations\n</li>\n<li>\nLatest run summary\n</li>\n<li>\nLatest result summaries\n</li>\n<li>\nCreation and update timestamps\n</li>\n</ul>\n<h2 style=\"position:relative;\"><a href=\"#update-description-and-associations\" aria-label=\"update description and associations 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=\"update-description-and-associations\"></div>Update description and associations</h2>\n<p><code class=\"language-text\">PATCH /documents/{id}</code> is a partial update. Provide only the fields that should change.</p>\n\n      <div class=\"code-snippets-tabs\" >\n    <div class=\"snippets-tabs-headers\">\n      <span class=\"tab-header active\" data-lang=\"curl\" data-snippet-id=\"curl\">curl</span><span class=\"tab-header \" data-lang=\"python\" data-snippet-id=\"python\">python</span>\n    </div>\n    <div class=\"snippets-tabs-contents\">\n      <div class=\"tab-content active\" data-lang=\"curl\" data-snippet-id=\"curl\"><div class=\"code-wrapper\">\n        <div class=\"gatsby-code-button-container\"\n             data-toaster-id=\"49668595261170290000\"\n             data-toaster-duration=\"1500\"\n             onClick=\"copyCodeToClipboard(`curl -X PATCH \\\\\n  &quot;https://sandbox-api.shipwell.com/document-store/documents/<document-id>&quot; \\\\\n  -H &quot;Authorization: Token <user-token>&quot; \\\\\n  -H &quot;Content-Type: application/json&quot; \\\\\n  -d '{\n    &quot;description&quot;: &quot;Signed proof of delivery for shipment SW-1001&quot;,\n    &quot;associations&quot;: [\n      {&quot;entity_type&quot;: &quot;shipment&quot;, &quot;entity_id&quot;: &quot;SW-1001&quot;}\n    ]\n  }'`, `49668595261170290000`)\"\n        >\n          <div class=\"gatsby-code-button\" title=\"Copy the code snippet\">Copy</div>\n          <div class=\"done-indicator done-indicator-49668595261170290000\">Copied</div>\n        </div>\n        <div class=\"gatsby-highlight\" data-language=\"curl\"><pre class=\"language-curl\"><code class=\"language-curl\">curl -X PATCH \\\n  &quot;https://sandbox-api.shipwell.com/document-store/documents/&lt;document-id&gt;&quot; \\\n  -H &quot;Authorization: Token &lt;user-token&gt;&quot; \\\n  -H &quot;Content-Type: application/json&quot; \\\n  -d &#39;{\n    &quot;description&quot;: &quot;Signed proof of delivery for shipment SW-1001&quot;,\n    &quot;associations&quot;: [\n      {&quot;entity_type&quot;: &quot;shipment&quot;, &quot;entity_id&quot;: &quot;SW-1001&quot;}\n    ]\n  }&#39;</code></pre></div>\n      </div></div><div class=\"tab-content \" data-lang=\"python\" data-snippet-id=\"python\"><div class=\"code-wrapper\">\n        <div class=\"gatsby-code-button-container\"\n             data-toaster-id=\"55389635433819320000\"\n             data-toaster-duration=\"1500\"\n             onClick=\"copyCodeToClipboard(`import requests\n\nresponse = requests.patch(\n    &quot;https://sandbox-api.shipwell.com/document-store/documents/<document-id>&quot;,\n    headers={&quot;Authorization&quot;: &quot;Token <user-token>&quot;},\n    json={\n        &quot;description&quot;: &quot;Signed proof of delivery for shipment SW-1001&quot;,\n        &quot;associations&quot;: [\n            {&quot;entity_type&quot;: &quot;shipment&quot;, &quot;entity_id&quot;: &quot;SW-1001&quot;}\n        ],\n    },\n    timeout=30,\n)\nresponse.raise_for_status()\ndocument = response.json()`, `55389635433819320000`)\"\n        >\n          <div class=\"gatsby-code-button\" title=\"Copy the code snippet\">Copy</div>\n          <div class=\"done-indicator done-indicator-55389635433819320000\">Copied</div>\n        </div>\n        <div class=\"gatsby-highlight\" data-language=\"python\"><pre class=\"language-python\"><code class=\"language-python\"><span class=\"token keyword\">import</span> requests\n\nresponse <span class=\"token operator\">=</span> requests<span class=\"token punctuation\">.</span>patch<span class=\"token punctuation\">(</span>\n    <span class=\"token string\">\"https://sandbox-api.shipwell.com/document-store/documents/&lt;document-id>\"</span><span class=\"token punctuation\">,</span>\n    headers<span class=\"token operator\">=</span><span class=\"token punctuation\">{</span><span class=\"token string\">\"Authorization\"</span><span class=\"token punctuation\">:</span> <span class=\"token string\">\"Token &lt;user-token>\"</span><span class=\"token punctuation\">}</span><span class=\"token punctuation\">,</span>\n    json<span class=\"token operator\">=</span><span class=\"token punctuation\">{</span>\n        <span class=\"token string\">\"description\"</span><span class=\"token punctuation\">:</span> <span class=\"token string\">\"Signed proof of delivery for shipment SW-1001\"</span><span class=\"token punctuation\">,</span>\n        <span class=\"token string\">\"associations\"</span><span class=\"token punctuation\">:</span> <span class=\"token punctuation\">[</span>\n            <span class=\"token punctuation\">{</span><span class=\"token string\">\"entity_type\"</span><span class=\"token punctuation\">:</span> <span class=\"token string\">\"shipment\"</span><span class=\"token punctuation\">,</span> <span class=\"token string\">\"entity_id\"</span><span class=\"token punctuation\">:</span> <span class=\"token string\">\"SW-1001\"</span><span class=\"token punctuation\">}</span>\n        <span class=\"token punctuation\">]</span><span class=\"token punctuation\">,</span>\n    <span class=\"token punctuation\">}</span><span class=\"token punctuation\">,</span>\n    timeout<span class=\"token operator\">=</span><span class=\"token number\">30</span><span class=\"token punctuation\">,</span>\n<span class=\"token punctuation\">)</span>\nresponse<span class=\"token punctuation\">.</span>raise_for_status<span class=\"token punctuation\">(</span><span class=\"token punctuation\">)</span>\ndocument <span class=\"token operator\">=</span> response<span class=\"token punctuation\">.</span>json<span class=\"token punctuation\">(</span><span class=\"token punctuation\">)</span></code></pre></div>\n      </div></div>\n    </div></div>\n    \n<p>The <code class=\"language-text\">associations</code> array replaces the complete current array. Send <code class=\"language-text\">[]</code> to clear all associations.</p>\n<h2 style=\"position:relative;\"><a href=\"#correct-an-extracted-value\" aria-label=\"correct an extracted value 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=\"correct-an-extracted-value\"></div>Correct an extracted value</h2>\n<p>Human corrections can be added to the latest result:</p>\n<p>Send <code class=\"language-text\">schema_corrections</code> in <code class=\"language-text\">PATCH /document-store/documents/{id}</code>.</p>\n<p>A correction supports:</p>\n<ul>\n<li>\n<code class=\"language-text\">name</code>\n — schema result to correct\n</li>\n<li>\n<code class=\"language-text\">value</code>\n — corrected value\n</li>\n<li>\n<code class=\"language-text\">page_number</code>\n — optional source page\n</li>\n<li>\n<code class=\"language-text\">json_schema</code>\n — optional schema contract\n</li>\n<li>\n<code class=\"language-text\">prompt</code>\n — optional extraction context\n</li>\n<li>\n<code class=\"language-text\">source_regions</code>\n — optional normalized source locations\n</li>\n</ul>\n<p>Corrections require an existing result. The endpoint returns <code class=\"language-text\">no_result</code> when the document has not produced one.</p>\n<p>Validate corrected values in the same way as automatically extracted values.</p>\n<!-- SCREENSHOT PLACEHOLDER\nFile: images/schema-correction.png\nCapture: Human correction workflow for a synthetic extracted field, if this workflow is available in the current UI.\nAlt: Correcting an extracted document value\n-->\n<h2 style=\"position:relative;\"><a href=\"#list-observed-document-types\" aria-label=\"list observed document types 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=\"list-observed-document-types\"></div>List observed document types</h2>\n<p>Retrieve document types found in your company's latest completed results:</p>\n<p>Use <code class=\"language-text\">GET /document-store/documents/document-types</code>.</p>\n<p>Use this list to populate a document-type filter without hardcoding values.</p>\n<h2 style=\"position:relative;\"><a href=\"#delete-a-document\" aria-label=\"delete a document 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=\"delete-a-document\"></div>Delete a document</h2>\n<p>Use <code class=\"language-text\">DELETE /document-store/documents/{id}</code>. A successful request returns <code class=\"language-text\">204 No Content</code>.</p>\n<p>Deletion removes the document from customer-facing list, retrieval, search, and inspection operations. Treat deletion as irreversible from your integration's perspective.</p>","headings":[{"value":"Managing Documents","depth":1},{"value":"Find documents in Shipwell","depth":2},{"value":"List documents through the API","depth":2},{"value":"Retrieve one document","depth":2},{"value":"Update description and associations","depth":2},{"value":"Correct an extracted value","depth":2},{"value":"List observed document types","depth":2},{"value":"Delete a document","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":"b0f6d4c6-1859-514d-bb9a-f5593c87fa16__redocly content/docs/ai/document-ai/managing-documents/","seo":{"title":"Managing Documents","description":null,"image":"","keywords":null,"jsonLd":null,"lang":null,"siteUrl":null},"pageId":"docs/ai/document-ai/managing-documents.md","pageBaseUrl":"/docs/ai/document-ai/managing-documents","type":"markdown","toc":{"enable":true,"maxDepth":4,"headings":[{"depth":1,"value":"Managing Documents","id":"managing-documents"},{"depth":2,"value":"Find documents in Shipwell","id":"find-documents-in-shipwell"},{"depth":2,"value":"List documents through the API","id":"list-documents-through-the-api"},{"depth":2,"value":"Retrieve one document","id":"retrieve-one-document"},{"depth":2,"value":"Update description and associations","id":"update-description-and-associations"},{"depth":2,"value":"Correct an extracted value","id":"correct-an-extracted-value"},{"depth":2,"value":"List observed document types","id":"list-observed-document-types"},{"depth":2,"value":"Delete a document","id":"delete-a-document"}]},"data":{"title":"Managing Documents"},"catalogInfo":null,"link":"/docs/ai/document-ai/managing-documents/","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"]}