{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-index.sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Documents","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"span","attributes":{"style":{"color":"#cdcefb","fontSize":"14px","fontWeight":"700","textTransform":"uppercase","letterSpacing":"0.05em","display":"block","marginBottom":"-30px"}},"children":["Get Started"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"documents","__idx":0},"children":["Documents"]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Upload, store, retrieve, and download reusable source documents."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Documents is the Anesya resource for storing source files in your workspace before downstream processing."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use it when you want a stable document ID that can later be reused by:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["parsing"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["extract"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["list and search workflows"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["operational or audit flows around uploaded files"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If you do not need a reusable stored file, you can sometimes skip this step and send a file or URL directly to parsing or extract."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"what-documents-is-for","__idx":1},"children":["What documents is for"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Documents is the right entry point when you want to:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["upload one local file to Anesya"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["keep a reusable file reference in the workspace"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["list previously uploaded files"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["search documents by filename or metadata"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["download the stored source file later"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["trim a PDF before parsing or extraction"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The common workflow is:"]},{"$$mdtype":"Tag","name":"Diagram","attributes":{"data-language":"mermaid","diagramType":"mermaid","diagramSource":"flowchart LR\n    A[Upload file] --> B[Get document ID]\n    B --> C[Create parsing]\n    B --> D[Create extract]\n    B --> E[Retrieve or download later]\n","diagramHtml":"<svg id=\"diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" class=\"flowchart\" style=\"max-width: 679.328125px;\" viewBox=\"0 0 679.328125 278\" role=\"graphics-document document\" aria-roledescription=\"flowchart-v2\"><style>\n    #diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 foreignObject {\n      overflow: visible;\n    }\n  </style><style>#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7{font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .error-icon{fill:#552222;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .error-text{fill:#552222;stroke:#552222;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .edge-thickness-normal{stroke-width:1px;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .edge-thickness-thick{stroke-width:3.5px;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .edge-pattern-solid{stroke-dasharray:0;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .edge-thickness-invisible{stroke-width:0;fill:none;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .edge-pattern-dashed{stroke-dasharray:3;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .edge-pattern-dotted{stroke-dasharray:2;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .marker{fill:#333333;stroke:#333333;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .marker.cross{stroke:#333333;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 svg{font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;font-size:16px;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 p{margin:0;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .label{font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;color:#333;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .cluster-label text{fill:#333;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .cluster-label span{color:#333;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .cluster-label span p{background-color:transparent;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .label text,#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 span{fill:#333;color:#333;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .node rect,#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .node circle,#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .node ellipse,#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .node polygon,#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .rough-node .label text,#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .node .label text,#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .image-shape .label,#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .icon-shape .label{text-anchor:middle;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .rough-node .label,#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .node .label,#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .image-shape .label,#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .icon-shape .label{text-align:center;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .node.clickable{cursor:pointer;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .arrowheadPath{fill:#333333;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .edgePath .path{stroke:#333333;stroke-width:1px;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .flowchart-link{stroke:#333333;fill:none;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .cluster text{fill:#333;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .cluster span{color:#333;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 rect.text{fill:none;stroke-width:0;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .icon-shape,#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .icon-shape p,#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .icon-shape .label rect,#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 .node .neo-node{stroke:#9370DB;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 [data-look=\"neo\"].node rect,#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 [data-look=\"neo\"].cluster rect,#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 [data-look=\"neo\"].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 [data-look=\"neo\"].swimlane.cluster rect{filter:none;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 [data-look=\"neo\"].node path{stroke:#9370DB;stroke-width:1px;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 [data-look=\"neo\"].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 [data-look=\"neo\"].node .neo-line path{stroke:#9370DB;filter:none;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 [data-look=\"neo\"].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 [data-look=\"neo\"].node circle .state-start{fill:#000000;}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 [data-look=\"neo\"].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 [data-look=\"neo\"].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7 :root{--mermaid-font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;}</style><g><marker id=\"diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7_flowchart-v2-pointEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\"><path d=\"M 0 0 L 10 5 L 0 10 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7_flowchart-v2-pointStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"4.5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\"><path d=\"M 0 5 L 10 10 L 10 0 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7_flowchart-v2-pointEnd-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 11.5 14\" refX=\"11.5\" refY=\"7\" markerUnits=\"userSpaceOnUse\" markerWidth=\"10.5\" markerHeight=\"14\" orient=\"auto\"><path d=\"M 0 0 L 11.5 7 L 0 14 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7_flowchart-v2-pointStart-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 11.5 14\" refX=\"1\" refY=\"7\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11.5\" markerHeight=\"14\" orient=\"auto\"><polygon points=\"0,7 11.5,14 11.5,0\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></polygon></marker><marker id=\"diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7_flowchart-v2-circleEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"11\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7_flowchart-v2-circleStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-1\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7_flowchart-v2-circleEnd-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refY=\"5\" refX=\"12.25\" markerUnits=\"userSpaceOnUse\" markerWidth=\"14\" markerHeight=\"14\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7_flowchart-v2-circleStart-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-2\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"14\" markerHeight=\"14\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7_flowchart-v2-crossEnd\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"12\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><path d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7_flowchart-v2-crossStart\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"-1\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><path d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7_flowchart-v2-crossEnd-margin\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 15 15\" refX=\"17.7\" refY=\"7.5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"12\" markerHeight=\"12\" orient=\"auto\"><path d=\"M 1,1 L 14,14 M 1,14 L 14,1\" class=\"arrowMarkerPath\" style=\"stroke-width: 2.5;\"></path></marker><marker id=\"diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7_flowchart-v2-crossStart-margin\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 15 15\" refX=\"-3.5\" refY=\"7.5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"12\" markerHeight=\"12\" orient=\"auto\"><path d=\"M 1,1 L 14,14 M 1,14 L 14,1\" class=\"arrowMarkerPath\" style=\"stroke-width: 2.5; stroke-dasharray: 1, 0;\"></path></marker><g class=\"root\"><g class=\"clusters\"></g><g class=\"edgePaths\"><path d=\"M143.609,139L147.776,139C151.943,139,160.276,139,167.943,139C175.609,139,182.609,139,186.109,139L189.609,139\" id=\"diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7-L_A_B_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_A_B_0\" data-points=\"W3sieCI6MTQzLjYwOTM3NSwieSI6MTM5fSx7IngiOjE2OC42MDkzNzUsInkiOjEzOX0seyJ4IjoxOTMuNjA5Mzc1LCJ5IjoxMzl9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7_flowchart-v2-pointEnd)\"></path><path d=\"M314.065,112L328.315,99.167C342.564,86.333,371.063,60.667,395.631,47.833C420.198,35,440.833,35,451.151,35L461.469,35\" id=\"diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7-L_B_C_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_B_C_0\" data-points=\"W3sieCI6MzE0LjA2NTQyOTY4NzUsInkiOjExMn0seyJ4IjozOTkuNTYyNSwieSI6MzV9LHsieCI6NDY1LjQ2ODc1LCJ5IjozNX1d\" data-look=\"classic\" marker-end=\"url(#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7_flowchart-v2-pointEnd)\"></path><path d=\"M374.563,139L378.729,139C382.896,139,391.229,139,406.086,139C420.943,139,442.323,139,453.013,139L463.703,139\" id=\"diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7-L_B_D_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_B_D_0\" data-points=\"W3sieCI6Mzc0LjU2MjUsInkiOjEzOX0seyJ4IjozOTkuNTYyNSwieSI6MTM5fSx7IngiOjQ2Ny43MDMxMjUsInkiOjEzOX1d\" data-look=\"classic\" marker-end=\"url(#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7_flowchart-v2-pointEnd)\"></path><path d=\"M314.065,166L328.315,178.833C342.564,191.667,371.063,217.333,388.813,230.167C406.563,243,413.563,243,417.063,243L420.563,243\" id=\"diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7-L_B_E_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_B_E_0\" data-points=\"W3sieCI6MzE0LjA2NTQyOTY4NzUsInkiOjE2Nn0seyJ4IjozOTkuNTYyNSwieSI6MjQzfSx7IngiOjQyNC41NjI1LCJ5IjoyNDN9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7_flowchart-v2-pointEnd)\"></path></g><g class=\"edgeLabels\"><g class=\"edgeLabel\"><g class=\"label\" data-id=\"L_A_B_0\" transform=\"translate(0, 0)\"><foreignObject width=\"0\" height=\"0\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"></span></div></foreignObject></g></g><g class=\"edgeLabel\"><g class=\"label\" data-id=\"L_B_C_0\" transform=\"translate(0, 0)\"><foreignObject width=\"0\" height=\"0\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"></span></div></foreignObject></g></g><g class=\"edgeLabel\"><g class=\"label\" data-id=\"L_B_D_0\" transform=\"translate(0, 0)\"><foreignObject width=\"0\" height=\"0\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"></span></div></foreignObject></g></g><g class=\"edgeLabel\"><g class=\"label\" data-id=\"L_B_E_0\" transform=\"translate(0, 0)\"><foreignObject width=\"0\" height=\"0\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"></span></div></foreignObject></g></g></g><g class=\"nodes\"><g class=\"node default\" id=\"diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7-flowchart-A-0\" data-look=\"classic\" transform=\"translate(75.8046875, 139)\"><rect class=\"basic label-container\" style=\"\" x=\"-67.8046875\" y=\"-27\" width=\"135.609375\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-37.8046875, -12)\"><rect></rect><foreignObject width=\"75.609375\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>Upload file</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7-flowchart-B-1\" data-look=\"classic\" transform=\"translate(284.0859375, 139)\"><rect class=\"basic label-container\" style=\"\" x=\"-90.4765625\" y=\"-27\" width=\"180.953125\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-60.4765625, -12)\"><rect></rect><foreignObject width=\"120.953125\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>Get document ID</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7-flowchart-C-3\" data-look=\"classic\" transform=\"translate(547.9453125, 35)\"><rect class=\"basic label-container\" style=\"\" x=\"-82.4765625\" y=\"-27\" width=\"164.953125\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-52.4765625, -12)\"><rect></rect><foreignObject width=\"104.953125\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>Create parsing</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7-flowchart-D-5\" data-look=\"classic\" transform=\"translate(547.9453125, 139)\"><rect class=\"basic label-container\" style=\"\" x=\"-80.2421875\" y=\"-27\" width=\"160.484375\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-50.2421875, -12)\"><rect></rect><foreignObject width=\"100.484375\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>Create extract</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7-flowchart-E-7\" data-look=\"classic\" transform=\"translate(547.9453125, 243)\"><rect class=\"basic label-container\" style=\"\" x=\"-123.3828125\" y=\"-27\" width=\"246.765625\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-93.3828125, -12)\"><rect></rect><foreignObject width=\"186.765625\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>Retrieve or download later</p></span></div></foreignObject></g></g></g></g></g><defs><filter id=\"diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7-drop-shadow\" height=\"130%\" width=\"130%\"><feDropShadow dx=\"4\" dy=\"4\" stdDeviation=\"0\" flood-opacity=\"0.06\" flood-color=\"#000000\"></feDropShadow></filter></defs><defs><filter id=\"diagram-53c47913eae756ad5fa81c9f28d5d353b8d979346dbfd2d8b2c3299b63efb7d7-drop-shadow-small\" height=\"150%\" width=\"150%\"><feDropShadow dx=\"2\" dy=\"2\" stdDeviation=\"0\" flood-opacity=\"0.06\" flood-color=\"#000000\"></feDropShadow></filter></defs></svg>","diagramHtmlDark":"<svg id=\"diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" class=\"flowchart\" style=\"max-width: 679.328125px;\" viewBox=\"0 0 679.328125 278\" role=\"graphics-document document\" aria-roledescription=\"flowchart-v2\"><style>\n    #diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea foreignObject {\n      overflow: visible;\n    }\n  </style><style>#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea{font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;font-size:16px;fill:#ccc;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .error-icon{fill:#a44141;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .error-text{fill:#ddd;stroke:#ddd;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .edge-thickness-normal{stroke-width:1px;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .edge-thickness-thick{stroke-width:3.5px;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .edge-pattern-solid{stroke-dasharray:0;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .edge-thickness-invisible{stroke-width:0;fill:none;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .edge-pattern-dashed{stroke-dasharray:3;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .edge-pattern-dotted{stroke-dasharray:2;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .marker{fill:lightgrey;stroke:lightgrey;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .marker.cross{stroke:lightgrey;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea svg{font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;font-size:16px;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea p{margin:0;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .label{font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;color:#ccc;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .cluster-label text{fill:#F9FFFE;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .cluster-label span{color:#F9FFFE;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .cluster-label span p{background-color:transparent;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .label text,#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea span{fill:#ccc;color:#ccc;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .node rect,#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .node circle,#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .node ellipse,#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .node polygon,#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .node path{fill:#1f2020;stroke:#ccc;stroke-width:1px;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .rough-node .label text,#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .node .label text,#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .image-shape .label,#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .icon-shape .label{text-anchor:middle;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .rough-node .label,#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .node .label,#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .image-shape .label,#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .icon-shape .label{text-align:center;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .node.clickable{cursor:pointer;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .root .anchor path{fill:lightgrey!important;stroke-width:0;stroke:lightgrey;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .arrowheadPath{fill:lightgrey;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .edgePath .path{stroke:lightgrey;stroke-width:1px;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .flowchart-link{stroke:lightgrey;fill:none;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .edgeLabel{background-color:hsl(0, 0%, 34.4117647059%);text-align:center;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .edgeLabel p{background-color:hsl(0, 0%, 34.4117647059%);}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .edgeLabel rect{opacity:0.5;background-color:hsl(0, 0%, 34.4117647059%);fill:hsl(0, 0%, 34.4117647059%);}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .labelBkg{background-color:rgba(87.75, 87.75, 87.75, 0.5);}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .cluster rect{fill:hsl(180, 1.5873015873%, 28.3529411765%);stroke:rgba(255, 255, 255, 0.25);stroke-width:1px;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .cluster text{fill:#F9FFFE;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .cluster span{color:#F9FFFE;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;font-size:12px;background:hsl(20, 1.5873015873%, 12.3529411765%);border:1px solid rgba(255, 255, 255, 0.25);border-radius:2px;pointer-events:none;z-index:100;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#ccc;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea rect.text{fill:none;stroke-width:0;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .icon-shape,#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .image-shape{background-color:hsl(0, 0%, 34.4117647059%);text-align:center;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .icon-shape p,#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .image-shape p{background-color:hsl(0, 0%, 34.4117647059%);padding:2px;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .icon-shape .label rect,#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .image-shape .label rect{opacity:0.5;background-color:hsl(0, 0%, 34.4117647059%);fill:hsl(0, 0%, 34.4117647059%);}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea .node .neo-node{stroke:#ccc;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea [data-look=\"neo\"].node rect,#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea [data-look=\"neo\"].cluster rect,#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea [data-look=\"neo\"].node polygon{stroke:url(#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea [data-look=\"neo\"].swimlane.cluster rect{filter:none;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea [data-look=\"neo\"].node path{stroke:url(#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea-gradient);stroke-width:1px;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea [data-look=\"neo\"].node .outer-path{filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea [data-look=\"neo\"].node .neo-line path{stroke:#ccc;filter:none;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea [data-look=\"neo\"].node circle{stroke:url(#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea [data-look=\"neo\"].node circle .state-start{fill:#000000;}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea [data-look=\"neo\"].icon-shape .icon{fill:url(#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea [data-look=\"neo\"].icon-shape .icon-neo path{stroke:url(#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea :root{--mermaid-font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;}</style><g><marker id=\"diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea_flowchart-v2-pointEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\"><path d=\"M 0 0 L 10 5 L 0 10 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea_flowchart-v2-pointStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"4.5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\"><path d=\"M 0 5 L 10 10 L 10 0 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea_flowchart-v2-pointEnd-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 11.5 14\" refX=\"11.5\" refY=\"7\" markerUnits=\"userSpaceOnUse\" markerWidth=\"10.5\" markerHeight=\"14\" orient=\"auto\"><path d=\"M 0 0 L 11.5 7 L 0 14 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea_flowchart-v2-pointStart-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 11.5 14\" refX=\"1\" refY=\"7\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11.5\" markerHeight=\"14\" orient=\"auto\"><polygon points=\"0,7 11.5,14 11.5,0\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></polygon></marker><marker id=\"diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea_flowchart-v2-circleEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"11\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea_flowchart-v2-circleStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-1\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea_flowchart-v2-circleEnd-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refY=\"5\" refX=\"12.25\" markerUnits=\"userSpaceOnUse\" markerWidth=\"14\" markerHeight=\"14\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea_flowchart-v2-circleStart-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-2\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"14\" markerHeight=\"14\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea_flowchart-v2-crossEnd\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"12\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><path d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea_flowchart-v2-crossStart\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"-1\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><path d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea_flowchart-v2-crossEnd-margin\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 15 15\" refX=\"17.7\" refY=\"7.5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"12\" markerHeight=\"12\" orient=\"auto\"><path d=\"M 1,1 L 14,14 M 1,14 L 14,1\" class=\"arrowMarkerPath\" style=\"stroke-width: 2.5;\"></path></marker><marker id=\"diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea_flowchart-v2-crossStart-margin\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 15 15\" refX=\"-3.5\" refY=\"7.5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"12\" markerHeight=\"12\" orient=\"auto\"><path d=\"M 1,1 L 14,14 M 1,14 L 14,1\" class=\"arrowMarkerPath\" style=\"stroke-width: 2.5; stroke-dasharray: 1, 0;\"></path></marker><g class=\"root\"><g class=\"clusters\"></g><g class=\"edgePaths\"><path d=\"M143.609,139L147.776,139C151.943,139,160.276,139,167.943,139C175.609,139,182.609,139,186.109,139L189.609,139\" id=\"diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea-L_A_B_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_A_B_0\" data-points=\"W3sieCI6MTQzLjYwOTM3NSwieSI6MTM5fSx7IngiOjE2OC42MDkzNzUsInkiOjEzOX0seyJ4IjoxOTMuNjA5Mzc1LCJ5IjoxMzl9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea_flowchart-v2-pointEnd)\"></path><path d=\"M314.065,112L328.315,99.167C342.564,86.333,371.063,60.667,395.631,47.833C420.198,35,440.833,35,451.151,35L461.469,35\" id=\"diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea-L_B_C_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_B_C_0\" data-points=\"W3sieCI6MzE0LjA2NTQyOTY4NzUsInkiOjExMn0seyJ4IjozOTkuNTYyNSwieSI6MzV9LHsieCI6NDY1LjQ2ODc1LCJ5IjozNX1d\" data-look=\"classic\" marker-end=\"url(#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea_flowchart-v2-pointEnd)\"></path><path d=\"M374.563,139L378.729,139C382.896,139,391.229,139,406.086,139C420.943,139,442.323,139,453.013,139L463.703,139\" id=\"diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea-L_B_D_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_B_D_0\" data-points=\"W3sieCI6Mzc0LjU2MjUsInkiOjEzOX0seyJ4IjozOTkuNTYyNSwieSI6MTM5fSx7IngiOjQ2Ny43MDMxMjUsInkiOjEzOX1d\" data-look=\"classic\" marker-end=\"url(#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea_flowchart-v2-pointEnd)\"></path><path d=\"M314.065,166L328.315,178.833C342.564,191.667,371.063,217.333,388.813,230.167C406.563,243,413.563,243,417.063,243L420.563,243\" id=\"diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea-L_B_E_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_B_E_0\" data-points=\"W3sieCI6MzE0LjA2NTQyOTY4NzUsInkiOjE2Nn0seyJ4IjozOTkuNTYyNSwieSI6MjQzfSx7IngiOjQyNC41NjI1LCJ5IjoyNDN9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea_flowchart-v2-pointEnd)\"></path></g><g class=\"edgeLabels\"><g class=\"edgeLabel\"><g class=\"label\" data-id=\"L_A_B_0\" transform=\"translate(0, 0)\"><foreignObject width=\"0\" height=\"0\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"></span></div></foreignObject></g></g><g class=\"edgeLabel\"><g class=\"label\" data-id=\"L_B_C_0\" transform=\"translate(0, 0)\"><foreignObject width=\"0\" height=\"0\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"></span></div></foreignObject></g></g><g class=\"edgeLabel\"><g class=\"label\" data-id=\"L_B_D_0\" transform=\"translate(0, 0)\"><foreignObject width=\"0\" height=\"0\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"></span></div></foreignObject></g></g><g class=\"edgeLabel\"><g class=\"label\" data-id=\"L_B_E_0\" transform=\"translate(0, 0)\"><foreignObject width=\"0\" height=\"0\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"></span></div></foreignObject></g></g></g><g class=\"nodes\"><g class=\"node default\" id=\"diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea-flowchart-A-0\" data-look=\"classic\" transform=\"translate(75.8046875, 139)\"><rect class=\"basic label-container\" style=\"\" x=\"-67.8046875\" y=\"-27\" width=\"135.609375\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-37.8046875, -12)\"><rect></rect><foreignObject width=\"75.609375\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>Upload file</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea-flowchart-B-1\" data-look=\"classic\" transform=\"translate(284.0859375, 139)\"><rect class=\"basic label-container\" style=\"\" x=\"-90.4765625\" y=\"-27\" width=\"180.953125\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-60.4765625, -12)\"><rect></rect><foreignObject width=\"120.953125\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>Get document ID</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea-flowchart-C-3\" data-look=\"classic\" transform=\"translate(547.9453125, 35)\"><rect class=\"basic label-container\" style=\"\" x=\"-82.4765625\" y=\"-27\" width=\"164.953125\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-52.4765625, -12)\"><rect></rect><foreignObject width=\"104.953125\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>Create parsing</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea-flowchart-D-5\" data-look=\"classic\" transform=\"translate(547.9453125, 139)\"><rect class=\"basic label-container\" style=\"\" x=\"-80.2421875\" y=\"-27\" width=\"160.484375\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-50.2421875, -12)\"><rect></rect><foreignObject width=\"100.484375\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>Create extract</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea-flowchart-E-7\" data-look=\"classic\" transform=\"translate(547.9453125, 243)\"><rect class=\"basic label-container\" style=\"\" x=\"-123.3828125\" y=\"-27\" width=\"246.765625\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-93.3828125, -12)\"><rect></rect><foreignObject width=\"186.765625\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>Retrieve or download later</p></span></div></foreignObject></g></g></g></g></g><defs><filter id=\"diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea-drop-shadow\" height=\"130%\" width=\"130%\"><feDropShadow dx=\"4\" dy=\"4\" stdDeviation=\"0\" flood-opacity=\"0.06\" flood-color=\"#FFFFFF\"></feDropShadow></filter></defs><defs><filter id=\"diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea-drop-shadow-small\" height=\"150%\" width=\"150%\"><feDropShadow dx=\"2\" dy=\"2\" stdDeviation=\"0\" flood-opacity=\"0.06\" flood-color=\"#FFFFFF\"></feDropShadow></filter></defs><linearGradient id=\"diagram-7aff2dff198f5327b9f2168d4e26637d17a34872ced050c3e0b3b01831a4d9ea-gradient\" gradientUnits=\"objectBoundingBox\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\"><stop offset=\"0%\" stop-color=\"#cccccc\" stop-opacity=\"1\"></stop><stop offset=\"100%\" stop-color=\"hsl(180, 0%, 18.3529411765%)\" stop-opacity=\"1\"></stop></linearGradient></svg>"},"children":["flowchart LR\n    A[Upload file] --> B[Get document ID]\n    B --> C[Create parsing]\n    B --> D[Create extract]\n    B --> E[Retrieve or download later]\n"]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"quick-start","__idx":2},"children":["Quick start"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The most common document workflow has three steps:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["upload one file"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["keep the returned document ID"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["reuse that ID in parsing or extract"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"upload-a-document","__idx":3},"children":["Upload a document"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/api/schema/documents/document_create"},"children":["Create document"]}," to store a new file."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl -X POST \"https://api.anesya.app/v0/documents\" \\\n  -H \"X-API-Key: $ANESYA_API_KEY\" \\\n  -F \"file=@invoice.pdf;type=application/pdf\" \\\n  -F \"filename=invoice.pdf\" \\\n  -F 'metadata={\"source\":\"api\"}'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Example response:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"id\": \"300f339f-da71-4f9f-80f6-c25a63baae75\",\n  \"filename\": \"invoice.pdf\",\n  \"file_url\": \"/v0/documents/300f339f-da71-4f9f-80f6-c25a63baae75/download\",\n  \"metadata\": {\n    \"source\": \"api\"\n  },\n  \"page_count\": 3,\n  \"created_at\": \"2025-06-12T14:56:10.682461Z\",\n  \"updated_at\": \"2025-06-12T14:56:10.682461Z\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Save the returned ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]},". This is the document ID you can reuse later."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"reuse-the-document-in-parsing","__idx":4},"children":["Reuse the document in parsing"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl -X POST \"https://api.anesya.app/v0/parsing\" \\\n  -H \"X-API-Key: $ANESYA_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"document\": \"YOUR_DOCUMENT_ID\",\n    \"model\": \"PIGALLE\"\n  }'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"reuse-the-document-in-extract","__idx":5},"children":["Reuse the document in extract"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl -X POST \"https://api.anesya.app/v0/extract\" \\\n  -H \"X-API-Key: $ANESYA_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"document\": \"YOUR_DOCUMENT_ID\",\n    \"schema\": \"YOUR_SCHEMA_ID\"\n  }'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"what-you-get-back","__idx":6},"children":["What you get back"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The document resource returned by create, retrieve, and list contains:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"id\": \"300f339f-da71-4f9f-80f6-c25a63baae75\",\n  \"filename\": \"invoice.pdf\",\n  \"file_url\": \"/v0/documents/300f339f-da71-4f9f-80f6-c25a63baae75/download\",\n  \"metadata\": {\n    \"source\": \"api\"\n  },\n  \"page_count\": 3,\n  \"created_at\": \"2025-06-12T14:56:10.682461Z\",\n  \"updated_at\": \"2025-06-12T14:56:10.682461Z\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"key-fields","__idx":7},"children":["Key fields"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Field"},"children":["Field"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"What it contains"},"children":["What it contains"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Stable document identifier"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["filename"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Stored file name"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["file_url"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Relative download endpoint for this file"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["metadata"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Custom metadata object"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["page_count"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Number of pages in the stored document"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["created_at"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Creation timestamp"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["updated_at"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Last update timestamp"]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"endpoints","__idx":8},"children":["Endpoints"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The documents resource exposes four public actions."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"post-v0documents","__idx":9},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /v0/documents"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Upload one new file and create a document resource."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"multipart-fields","__idx":10},"children":["Multipart fields"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Field"},"children":["Field"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":["Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required"},"children":["Required"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["file"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["binary"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Source document file"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["filename"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Optional filename override"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["metadata"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["object"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Optional metadata object"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"query-parameters","__idx":11},"children":["Query parameters"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Parameter"},"children":["Parameter"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":["Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pdf_page_start"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Optional first PDF page to keep"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pdf_page_end"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Optional last PDF page to keep"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This PDF trimming happens at upload time."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["It is useful when:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["the original PDF is larger than the subset you need"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["you want to reduce downstream parsing work"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["only a known page range matters"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"get-v0documents","__idx":12},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /v0/documents"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["List documents in the workspace."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"query-parameters-1","__idx":13},"children":["Query parameters"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Parameter"},"children":["Parameter"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":["Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["page"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Page number"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["size"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Page size"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["search"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Search in filename and metadata values"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["created_at_after"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["date-time"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Filter lower bound"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["created_at_before"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["date-time"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Filter upper bound"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"get-v0documentsid","__idx":14},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /v0/documents/{id}"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Retrieve one document by its UUID."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"get-v0documentsiddownload","__idx":15},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /v0/documents/{id}/download"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Get the download URL for the stored file."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Important behavior:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["the documented response is ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["302"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["clients that want the actual file should follow the redirect"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"response-format-details","__idx":16},"children":["Response format details"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Documents has three main response shapes."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"create-or-retrieve","__idx":17},"children":["Create or retrieve"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Both ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /v0/documents"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /v0/documents/{id}"]}," return one document object."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"list-documents","__idx":18},"children":["List documents"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /v0/documents"]}," returns a paginated resource:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"count\": 1,\n  \"next\": null,\n  \"previous\": null,\n  \"results\": [\n    {\n      \"id\": \"300f339f-da71-4f9f-80f6-c25a63baae75\",\n      \"filename\": \"invoice.pdf\"\n    }\n  ]\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"download-document","__idx":19},"children":["Download document"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /v0/documents/{id}/download"]}," does not return the normal document object."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Instead, it redirects to the underlying file URL."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"search-and-filtering","__idx":20},"children":["Search and filtering"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Document listing supports lightweight search and date filtering."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"search","__idx":21},"children":["Search"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["search"]}," query parameter to search in:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["the document filename"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["metadata values"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Example:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl -X GET \"https://api.anesya.app/v0/documents?search=invoice\" \\\n  -H \"X-API-Key: $ANESYA_API_KEY\"\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"date-filtering","__idx":22},"children":["Date filtering"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["created_at_after"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["created_at_before"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Example:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl -X GET \"https://api.anesya.app/v0/documents?created_at_after=2026-04-01T00:00:00Z&created_at_before=2026-04-30T23:59:59Z\" \\\n  -H \"X-API-Key: $ANESYA_API_KEY\"\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"when-to-use-documents-vs-direct-parsing-or-extract","__idx":23},"children":["When to use documents vs direct parsing or extract"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use documents first when:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["the file should be reused later"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["you want a stable internal document ID"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["the workflow may involve several downstream steps"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["the source file should be discoverable in list views"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["you want to trim a PDF once and reuse the trimmed version"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Skip documents and go directly to parsing or extract when:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["you only need one one-off processing call"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["the file is already available as a public or pre-signed URL"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["you do not need a stored document lifecycle"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"best-practices","__idx":24},"children":["Best practices"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"1-use-documents-when-reuse-matters","__idx":25},"children":["1. Use documents when reuse matters"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If the same file may be parsed again, extracted again, or audited later, upload it first and keep the document ID."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"2-use-metadata-intentionally","__idx":26},"children":["2. Use metadata intentionally"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Good metadata makes list and search workflows much easier."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Typical metadata examples:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["source system"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["customer ID"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["import batch identifier"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["internal reference number"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"3-trim-pdfs-early-when-only-part-of-the-file-matters","__idx":27},"children":["3. Trim PDFs early when only part of the file matters"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If you only need a subset of pages, use ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pdf_page_start"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pdf_page_end"]}," at upload time."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This avoids carrying an oversized document through the rest of the pipeline."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"4-treat-the-document-id-as-the-canonical-reusable-reference","__idx":28},"children":["4. Treat the document ID as the canonical reusable reference"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Once a document is uploaded, reuse the UUID rather than re-uploading the same file repeatedly."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"5-follow-redirects-for-download","__idx":29},"children":["5. Follow redirects for download"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If you call the download endpoint programmatically, make sure your client follows ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["302"]}," redirects or handles the redirected URL explicitly."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"common-pitfalls","__idx":30},"children":["Common pitfalls"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"re-uploading-the-same-file-every-time","__idx":31},"children":["Re-uploading the same file every time"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If the file is meant to be reused, upload it once and keep the document ID."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"forgetting-that-search-includes-metadata-values","__idx":32},"children":["Forgetting that search includes metadata values"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If search results seem broader than expected, remember that metadata values are part of the search surface."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"expecting-the-download-endpoint-to-return-json","__idx":33},"children":["Expecting the download endpoint to return JSON"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The documented behavior is a redirect, not a standard document object."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"forgetting-pdf-trimming-is-applied-at-upload-time","__idx":34},"children":["Forgetting PDF trimming is applied at upload time"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If you trim pages during upload, the stored document itself reflects that subset."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["That is usually desirable, but it should be intentional."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"troubleshooting","__idx":35},"children":["Troubleshooting"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"401-unauthorized","__idx":36},"children":["401 Unauthorized"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Your API key is missing or invalid. Check the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["X-API-Key"]}," header."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"404-not-found-on-retrieve-or-download","__idx":37},"children":["404 Not Found on retrieve or download"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The document ID does not exist, is not accessible in the current workspace context, or the file is missing."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"upload-fails-with-validation-errors","__idx":38},"children":["Upload fails with validation errors"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Check that:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["file"]}," field is present"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["the multipart request is correctly formed"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["the PDF trim parameters are valid if you used them"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"download-does-not-return-the-file-body","__idx":39},"children":["Download does not return the file body"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Your client may not be following redirects automatically."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Handle the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["302"]}," response correctly."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"related-guides","__idx":40},"children":["Related guides"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/tutorials/quickstart"},"children":["API quickstart"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/tutorials/parsing"},"children":["Parsing"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/tutorials/extract"},"children":["Extract"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/tutorials/extract"},"children":["Extract guide"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/tutorials/agent-guide"},"children":["Anesya API Reference for Coding Agents"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/api/schema/documents/document_create"},"children":["API reference"]}]}]}]},"headings":[{"value":"Documents","id":"documents","depth":1},{"value":"What documents is for","id":"what-documents-is-for","depth":2},{"value":"Quick start","id":"quick-start","depth":2},{"value":"Upload a document","id":"upload-a-document","depth":3},{"value":"Reuse the document in parsing","id":"reuse-the-document-in-parsing","depth":3},{"value":"Reuse the document in extract","id":"reuse-the-document-in-extract","depth":3},{"value":"What you get back","id":"what-you-get-back","depth":2},{"value":"Key fields","id":"key-fields","depth":3},{"value":"Endpoints","id":"endpoints","depth":2},{"value":"POST /v0/documents","id":"post-v0documents","depth":3},{"value":"Multipart fields","id":"multipart-fields","depth":4},{"value":"Query parameters","id":"query-parameters","depth":4},{"value":"GET /v0/documents","id":"get-v0documents","depth":3},{"value":"Query parameters","id":"query-parameters-1","depth":4},{"value":"GET /v0/documents/{id}","id":"get-v0documentsid","depth":3},{"value":"GET /v0/documents/{id}/download","id":"get-v0documentsiddownload","depth":3},{"value":"Response format details","id":"response-format-details","depth":2},{"value":"Create or retrieve","id":"create-or-retrieve","depth":3},{"value":"List documents","id":"list-documents","depth":3},{"value":"Download document","id":"download-document","depth":3},{"value":"Search and filtering","id":"search-and-filtering","depth":2},{"value":"Search","id":"search","depth":3},{"value":"Date filtering","id":"date-filtering","depth":3},{"value":"When to use documents vs direct parsing or extract","id":"when-to-use-documents-vs-direct-parsing-or-extract","depth":2},{"value":"Best practices","id":"best-practices","depth":2},{"value":"1. Use documents when reuse matters","id":"1-use-documents-when-reuse-matters","depth":3},{"value":"2. Use metadata intentionally","id":"2-use-metadata-intentionally","depth":3},{"value":"3. Trim PDFs early when only part of the file matters","id":"3-trim-pdfs-early-when-only-part-of-the-file-matters","depth":3},{"value":"4. Treat the document ID as the canonical reusable reference","id":"4-treat-the-document-id-as-the-canonical-reusable-reference","depth":3},{"value":"5. Follow redirects for download","id":"5-follow-redirects-for-download","depth":3},{"value":"Common pitfalls","id":"common-pitfalls","depth":2},{"value":"Re-uploading the same file every time","id":"re-uploading-the-same-file-every-time","depth":3},{"value":"Forgetting that search includes metadata values","id":"forgetting-that-search-includes-metadata-values","depth":3},{"value":"Expecting the download endpoint to return JSON","id":"expecting-the-download-endpoint-to-return-json","depth":3},{"value":"Forgetting PDF trimming is applied at upload time","id":"forgetting-pdf-trimming-is-applied-at-upload-time","depth":3},{"value":"Troubleshooting","id":"troubleshooting","depth":2},{"value":"401 Unauthorized","id":"401-unauthorized","depth":3},{"value":"404 Not Found on retrieve or download","id":"404-not-found-on-retrieve-or-download","depth":3},{"value":"Upload fails with validation errors","id":"upload-fails-with-validation-errors","depth":3},{"value":"Download does not return the file body","id":"download-does-not-return-the-file-body","depth":3},{"value":"Related guides","id":"related-guides","depth":2}],"frontmatter":{"seo":{"title":"Documents"}},"lastModified":"2026-04-22T15:07:29.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/tutorials/documents","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}