{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-index.sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Parsing","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":"parsing","__idx":0},"children":["Parsing"]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Convert documents into OCR, markdown, and page-level parsing data."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Parsing is the Anesya endpoint for turning a document into machine-usable content before structured extraction."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["It can:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["run OCR on the document"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["generate ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["markdown_content"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["return page-level parsing data in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ocr_content"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["describe images when picture descriptions are enabled"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["report processing status and partial page failures"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use parsing when you need visibility into the document content itself, not only the final structured JSON."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If you only need the final structured result from a schema, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/tutorials/extract"},"children":["Extract"]},"."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"what-parsing-is-for","__idx":1},"children":["What parsing is for"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Parsing is the right entry point when you want to:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["inspect OCR output before extraction"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["get readable markdown for LLM workflows"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["process one document or fan out over a list of public URLs"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["detect partial page failures"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["reuse a parsing in later downstream steps"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The typical flow is:"]},{"$$mdtype":"Tag","name":"Diagram","attributes":{"data-language":"mermaid","diagramType":"mermaid","diagramSource":"flowchart LR\n    A[Document ID, URL, file, or URL list] --> B[Create parsing]\n    B --> C[Poll parsing]\n    C --> D[Use markdown or OCR]\n    C --> E[Create extract]\n","diagramHtml":"<svg id=\"diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" class=\"flowchart\" style=\"max-width: 959.9375px;\" viewBox=\"0 0 959.9375 174\" role=\"graphics-document document\" aria-roledescription=\"flowchart-v2\"><style>\n    #diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 foreignObject {\n      overflow: visible;\n    }\n  </style><style>#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493{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-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .error-icon{fill:#552222;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .error-text{fill:#552222;stroke:#552222;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .edge-thickness-normal{stroke-width:1px;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .edge-thickness-thick{stroke-width:3.5px;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .edge-pattern-solid{stroke-dasharray:0;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .edge-thickness-invisible{stroke-width:0;fill:none;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .edge-pattern-dashed{stroke-dasharray:3;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .edge-pattern-dotted{stroke-dasharray:2;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .marker{fill:#333333;stroke:#333333;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .marker.cross{stroke:#333333;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 svg{font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;font-size:16px;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 p{margin:0;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .label{font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;color:#333;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .cluster-label text{fill:#333;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .cluster-label span{color:#333;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .cluster-label span p{background-color:transparent;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .label text,#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 span{fill:#333;color:#333;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .node rect,#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .node circle,#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .node ellipse,#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .node polygon,#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .rough-node .label text,#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .node .label text,#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .image-shape .label,#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .icon-shape .label{text-anchor:middle;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .rough-node .label,#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .node .label,#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .image-shape .label,#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .icon-shape .label{text-align:center;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .node.clickable{cursor:pointer;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .arrowheadPath{fill:#333333;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .edgePath .path{stroke:#333333;stroke-width:1px;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .flowchart-link{stroke:#333333;fill:none;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .cluster text{fill:#333;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .cluster span{color:#333;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 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-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 rect.text{fill:none;stroke-width:0;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .icon-shape,#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .icon-shape p,#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .icon-shape .label rect,#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 .node .neo-node{stroke:#9370DB;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 [data-look=\"neo\"].node rect,#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 [data-look=\"neo\"].cluster rect,#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 [data-look=\"neo\"].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 [data-look=\"neo\"].swimlane.cluster rect{filter:none;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 [data-look=\"neo\"].node path{stroke:#9370DB;stroke-width:1px;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 [data-look=\"neo\"].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 [data-look=\"neo\"].node .neo-line path{stroke:#9370DB;filter:none;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 [data-look=\"neo\"].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 [data-look=\"neo\"].node circle .state-start{fill:#000000;}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 [data-look=\"neo\"].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 [data-look=\"neo\"].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493 :root{--mermaid-font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;}</style><g><marker id=\"diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493_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-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493_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-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493_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-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493_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-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493_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-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493_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-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493_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-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493_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-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493_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-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493_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-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493_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-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493_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=\"M268,87L272.167,87C276.333,87,284.667,87,292.333,87C300,87,307,87,310.5,87L314,87\" id=\"diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493-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=\"W3sieCI6MjY4LCJ5Ijo4N30seyJ4IjoyOTMsInkiOjg3fSx7IngiOjMxOCwieSI6ODd9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493_flowchart-v2-pointEnd)\"></path><path d=\"M482.953,87L487.12,87C491.286,87,499.62,87,507.286,87C514.953,87,521.953,87,525.453,87L528.953,87\" id=\"diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493-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=\"W3sieCI6NDgyLjk1MzEyNSwieSI6ODd9LHsieCI6NTA3Ljk1MzEyNSwieSI6ODd9LHsieCI6NTMyLjk1MzEyNSwieSI6ODd9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493_flowchart-v2-pointEnd)\"></path><path d=\"M655.022,60L662.779,55.833C670.535,51.667,686.049,43.333,697.306,39.167C708.563,35,715.563,35,719.063,35L722.563,35\" id=\"diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493-L_C_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_C_D_0\" data-points=\"W3sieCI6NjU1LjAyMTc4NDg1NTc2OTMsInkiOjYwfSx7IngiOjcwMS41NjI1LCJ5IjozNX0seyJ4Ijo3MjYuNTYyNSwieSI6MzV9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493_flowchart-v2-pointEnd)\"></path><path d=\"M655.022,114L662.779,118.167C670.535,122.333,686.049,130.667,702.713,134.833C719.378,139,737.193,139,746.1,139L755.008,139\" id=\"diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493-L_C_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_C_E_0\" data-points=\"W3sieCI6NjU1LjAyMTc4NDg1NTc2OTMsInkiOjExNH0seyJ4Ijo3MDEuNTYyNSwieSI6MTM5fSx7IngiOjc1OS4wMDc4MTI1LCJ5IjoxMzl9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493_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_C_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_C_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-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493-flowchart-A-0\" data-look=\"classic\" transform=\"translate(138, 87)\"><rect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\"></rect><g class=\"label\" style=\"\" transform=\"translate(-100, -24)\"><rect></rect><foreignObject width=\"200\" height=\"48\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\"><span class=\"nodeLabel\"><p>Document ID, URL, file, or URL list</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493-flowchart-B-1\" data-look=\"classic\" transform=\"translate(400.4765625, 87)\"><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-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493-flowchart-C-3\" data-look=\"classic\" transform=\"translate(604.7578125, 87)\"><rect class=\"basic label-container\" style=\"\" x=\"-71.8046875\" y=\"-27\" width=\"143.609375\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-41.8046875, -12)\"><rect></rect><foreignObject width=\"83.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>Poll parsing</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493-flowchart-D-5\" data-look=\"classic\" transform=\"translate(839.25, 35)\"><rect class=\"basic label-container\" style=\"\" x=\"-112.6875\" y=\"-27\" width=\"225.375\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-82.6875, -12)\"><rect></rect><foreignObject width=\"165.375\" 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>Use markdown or OCR</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493-flowchart-E-7\" data-look=\"classic\" transform=\"translate(839.25, 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></g></g><defs><filter id=\"diagram-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493-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-db4794f764bb2880d7091a7625c323c3002a1459f028650d18d45a5864c74493-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-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" class=\"flowchart\" style=\"max-width: 959.9375px;\" viewBox=\"0 0 959.9375 174\" role=\"graphics-document document\" aria-roledescription=\"flowchart-v2\"><style>\n    #diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed foreignObject {\n      overflow: visible;\n    }\n  </style><style>#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed{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-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .error-icon{fill:#a44141;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .error-text{fill:#ddd;stroke:#ddd;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .edge-thickness-normal{stroke-width:1px;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .edge-thickness-thick{stroke-width:3.5px;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .edge-pattern-solid{stroke-dasharray:0;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .edge-thickness-invisible{stroke-width:0;fill:none;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .edge-pattern-dashed{stroke-dasharray:3;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .edge-pattern-dotted{stroke-dasharray:2;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .marker{fill:lightgrey;stroke:lightgrey;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .marker.cross{stroke:lightgrey;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed svg{font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;font-size:16px;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed p{margin:0;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .label{font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;color:#ccc;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .cluster-label text{fill:#F9FFFE;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .cluster-label span{color:#F9FFFE;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .cluster-label span p{background-color:transparent;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .label text,#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed span{fill:#ccc;color:#ccc;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .node rect,#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .node circle,#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .node ellipse,#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .node polygon,#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .node path{fill:#1f2020;stroke:#ccc;stroke-width:1px;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .rough-node .label text,#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .node .label text,#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .image-shape .label,#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .icon-shape .label{text-anchor:middle;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .rough-node .label,#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .node .label,#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .image-shape .label,#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .icon-shape .label{text-align:center;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .node.clickable{cursor:pointer;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .root .anchor path{fill:lightgrey!important;stroke-width:0;stroke:lightgrey;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .arrowheadPath{fill:lightgrey;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .edgePath .path{stroke:lightgrey;stroke-width:1px;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .flowchart-link{stroke:lightgrey;fill:none;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .edgeLabel{background-color:hsl(0, 0%, 34.4117647059%);text-align:center;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .edgeLabel p{background-color:hsl(0, 0%, 34.4117647059%);}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .edgeLabel rect{opacity:0.5;background-color:hsl(0, 0%, 34.4117647059%);fill:hsl(0, 0%, 34.4117647059%);}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .labelBkg{background-color:rgba(87.75, 87.75, 87.75, 0.5);}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .cluster rect{fill:hsl(180, 1.5873015873%, 28.3529411765%);stroke:rgba(255, 255, 255, 0.25);stroke-width:1px;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .cluster text{fill:#F9FFFE;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .cluster span{color:#F9FFFE;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed 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-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#ccc;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed rect.text{fill:none;stroke-width:0;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .icon-shape,#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .image-shape{background-color:hsl(0, 0%, 34.4117647059%);text-align:center;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .icon-shape p,#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .image-shape p{background-color:hsl(0, 0%, 34.4117647059%);padding:2px;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .icon-shape .label rect,#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .image-shape .label rect{opacity:0.5;background-color:hsl(0, 0%, 34.4117647059%);fill:hsl(0, 0%, 34.4117647059%);}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed .node .neo-node{stroke:#ccc;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed [data-look=\"neo\"].node rect,#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed [data-look=\"neo\"].cluster rect,#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed [data-look=\"neo\"].node polygon{stroke:url(#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed [data-look=\"neo\"].swimlane.cluster rect{filter:none;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed [data-look=\"neo\"].node path{stroke:url(#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed-gradient);stroke-width:1px;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed [data-look=\"neo\"].node .outer-path{filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed [data-look=\"neo\"].node .neo-line path{stroke:#ccc;filter:none;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed [data-look=\"neo\"].node circle{stroke:url(#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed [data-look=\"neo\"].node circle .state-start{fill:#000000;}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed [data-look=\"neo\"].icon-shape .icon{fill:url(#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed [data-look=\"neo\"].icon-shape .icon-neo path{stroke:url(#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed :root{--mermaid-font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;}</style><g><marker id=\"diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed_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-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed_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-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed_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-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed_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-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed_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-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed_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-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed_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-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed_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-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed_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-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed_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-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed_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-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed_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=\"M268,87L272.167,87C276.333,87,284.667,87,292.333,87C300,87,307,87,310.5,87L314,87\" id=\"diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed-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=\"W3sieCI6MjY4LCJ5Ijo4N30seyJ4IjoyOTMsInkiOjg3fSx7IngiOjMxOCwieSI6ODd9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed_flowchart-v2-pointEnd)\"></path><path d=\"M482.953,87L487.12,87C491.286,87,499.62,87,507.286,87C514.953,87,521.953,87,525.453,87L528.953,87\" id=\"diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed-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=\"W3sieCI6NDgyLjk1MzEyNSwieSI6ODd9LHsieCI6NTA3Ljk1MzEyNSwieSI6ODd9LHsieCI6NTMyLjk1MzEyNSwieSI6ODd9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed_flowchart-v2-pointEnd)\"></path><path d=\"M655.022,60L662.779,55.833C670.535,51.667,686.049,43.333,697.306,39.167C708.563,35,715.563,35,719.063,35L722.563,35\" id=\"diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed-L_C_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_C_D_0\" data-points=\"W3sieCI6NjU1LjAyMTc4NDg1NTc2OTMsInkiOjYwfSx7IngiOjcwMS41NjI1LCJ5IjozNX0seyJ4Ijo3MjYuNTYyNSwieSI6MzV9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed_flowchart-v2-pointEnd)\"></path><path d=\"M655.022,114L662.779,118.167C670.535,122.333,686.049,130.667,702.713,134.833C719.378,139,737.193,139,746.1,139L755.008,139\" id=\"diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed-L_C_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_C_E_0\" data-points=\"W3sieCI6NjU1LjAyMTc4NDg1NTc2OTMsInkiOjExNH0seyJ4Ijo3MDEuNTYyNSwieSI6MTM5fSx7IngiOjc1OS4wMDc4MTI1LCJ5IjoxMzl9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed_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_C_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_C_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-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed-flowchart-A-0\" data-look=\"classic\" transform=\"translate(138, 87)\"><rect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\"></rect><g class=\"label\" style=\"\" transform=\"translate(-100, -24)\"><rect></rect><foreignObject width=\"200\" height=\"48\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\"><span class=\"nodeLabel\"><p>Document ID, URL, file, or URL list</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed-flowchart-B-1\" data-look=\"classic\" transform=\"translate(400.4765625, 87)\"><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-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed-flowchart-C-3\" data-look=\"classic\" transform=\"translate(604.7578125, 87)\"><rect class=\"basic label-container\" style=\"\" x=\"-71.8046875\" y=\"-27\" width=\"143.609375\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-41.8046875, -12)\"><rect></rect><foreignObject width=\"83.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>Poll parsing</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed-flowchart-D-5\" data-look=\"classic\" transform=\"translate(839.25, 35)\"><rect class=\"basic label-container\" style=\"\" x=\"-112.6875\" y=\"-27\" width=\"225.375\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-82.6875, -12)\"><rect></rect><foreignObject width=\"165.375\" 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>Use markdown or OCR</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed-flowchart-E-7\" data-look=\"classic\" transform=\"translate(839.25, 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></g></g><defs><filter id=\"diagram-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed-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-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed-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-efeb5e3aaa426455e348e0d16f244918f1ebe1ab0a08820848bb0983a76491ed-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[Document ID, URL, file, or URL list] --> B[Create parsing]\n    B --> C[Poll parsing]\n    C --> D[Use markdown or OCR]\n    C --> E[Create extract]\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 safest parsing workflow has three steps:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["prepare one input document"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["create the parsing"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["poll it until the status is final"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"option-a-start-from-a-stored-document","__idx":3},"children":["Option A: Start from a stored document"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Upload the file first if you want a reusable document ID."]},{"$$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","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Then create the 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    \"picture_description_enabled\": false,\n    \"table_verification_enabled\": false\n  }'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"option-b-start-directly-from-a-public-url","__idx":4},"children":["Option B: Start directly from a public URL"]},{"$$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\": \"https://example.com/invoice.pdf\",\n    \"model\": \"PIGALLE\"\n  }'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"option-c-start-directly-from-a-local-file","__idx":5},"children":["Option C: Start directly from a local file"]},{"$$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  -F \"document=@invoice.pdf;type=application/pdf\" \\\n  -F \"model=PIGALLE\" \\\n  -F \"picture_description_enabled=false\" \\\n  -F \"table_verification_enabled=false\"\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"poll-the-parsing","__idx":6},"children":["Poll the parsing"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl -X GET \"https://api.anesya.app/v0/parsing/YOUR_PARSING_ID\" \\\n  -H \"X-API-Key: $ANESYA_API_KEY\"\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Stop polling when ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status"]}," is one of:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["FINISHED"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PARTIAL_FINISHED"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ERROR"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For a complete polling strategy, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/tutorials/quickstart"},"children":["API quickstart"]},"."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"what-you-get-back","__idx":7},"children":["What you get back"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The parsing retrieve endpoint returns a resource shaped like this:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"id\": \"d1b96998-f20e-4b6f-8fa5-78a70b1db9b2\",\n  \"document\": {\n    \"id\": \"300f339f-da71-4f9f-80f6-c25a63baae75\",\n    \"filename\": \"invoice.pdf\"\n  },\n  \"picture_description_enabled\": false,\n  \"table_verification_enabled\": false,\n  \"model\": \"PIGALLE\",\n  \"pictures\": [],\n  \"ocr_content\": {\n    \"pages\": []\n  },\n  \"markdown_content\": \"# Invoice\\n\\nInvoice number: INV-2025-0042\\n\\nTotal: 1280.50 EUR\",\n  \"pages_total\": 3,\n  \"pages_success\": 3,\n  \"pages_failed\": 0,\n  \"status\": \"FINISHED\",\n  \"metadata\": {\n    \"source\": \"api\"\n  },\n  \"error\": null,\n  \"created_at\": \"2025-06-12T14:57:00.000000Z\",\n  \"updated_at\": \"2025-06-12T14:58:12.000000Z\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"key-fields","__idx":8},"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":["document"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The source document metadata"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["markdown_content"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Readable markdown version of the parsed document"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ocr_content"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Structured OCR payload"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pictures"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Parsed image entries with optional descriptions"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pages_total"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Total page count"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pages_success"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Number of pages successfully processed"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pages_failed"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Number of failed pages"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Current parsing state"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Error message when parsing fails"]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"input-options","__idx":9},"children":["Input options"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["document"]}," field in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /v0/parsing"]}," accepts four shapes."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"1-existing-document-id","__idx":10},"children":["1. Existing document ID"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Best when the file is already stored in Anesya and may be reused later."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"document\": \"300f339f-da71-4f9f-80f6-c25a63baae75\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"2-public-or-pre-signed-url","__idx":11},"children":["2. Public or pre-signed URL"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Best when the file is already hosted elsewhere."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"document\": \"https://example.com/invoice.pdf\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"3-multipart-uploaded-file","__idx":12},"children":["3. Multipart uploaded file"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Best when your app already has the local file content and does not need a separate document-upload step."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"text","header":{"controls":{"copy":{}}},"source":"multipart/form-data\ndocument=@invoice.pdf\n","lang":"text"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"4-list-of-public-or-pre-signed-urls","__idx":13},"children":["4. List of public or pre-signed URLs"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Best when you want to fan out over several remote documents at once."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"document\": [\n    \"https://example.com/doc-1.pdf\",\n    \"https://example.com/doc-2.pdf\"\n  ]\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Important behavior:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["this URL-list shape is supported on parsing"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["it returns an ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["array of parsing objects"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["the extract endpoint does not document the same URL-list support"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If you need one extract per URL, create the parsings first, then iterate over the returned parsing IDs."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"response-format-details","__idx":14},"children":["Response format details"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Parsing has two main response shapes depending on the endpoint you call."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"post-v0parsing","__idx":15},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /v0/parsing"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Create parsing returns:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["one parsing object for one document ID, one URL, or one uploaded file"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["an array of parsing objects for a list of URLs"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Example single-object response:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"id\": \"PARSING_ID\",\n  \"status\": \"IN_QUEUE\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Example array response:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"[\n  {\n    \"id\": \"PARSING_ID_1\",\n    \"status\": \"IN_QUEUE\"\n  },\n  {\n    \"id\": \"PARSING_ID_2\",\n    \"status\": \"IN_QUEUE\"\n  }\n]\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"get-v0parsing","__idx":16},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /v0/parsing"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["List parsing returns a paginated resource:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"count\": 2,\n  \"next\": null,\n  \"previous\": null,\n  \"results\": [\n    {\n      \"id\": \"PARSING_ID\",\n      \"status\": \"FINISHED\"\n    }\n  ]\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"get-v0parsingid","__idx":17},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /v0/parsing/{id}"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Retrieve parsing returns the full parsing resource, including:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["markdown_content"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ocr_content"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pictures"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["page counters"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["status"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["errors"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"parsing-statuses","__idx":18},"children":["Parsing statuses"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["These are the possible parsing states:"]},{"$$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":"Status"},"children":["Status"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Meaning"},"children":["Meaning"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"What to do"},"children":["What to do"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["IN_QUEUE"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Accepted and waiting to start"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["keep polling"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["IN_PROGRESS"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Processing is running"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["keep polling"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["FINISHED"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Completed successfully"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["use the parsing output"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PARTIAL_FINISHED"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Completed with one or more failed pages"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["use it if partial content is acceptable"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ERROR"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Processing failed"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["inspect ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PARTIAL_FINISHED"]}," is an important state."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["It is not a full success, but it is often still usable, especially if:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["most pages succeeded"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["the failed pages are not critical"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["your next step is tolerant to partial source coverage"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"configuration-options","__idx":19},"children":["Configuration options"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The parsing endpoint exposes a deliberately small set of knobs."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"model","__idx":20},"children":["Model"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"model\": \"PIGALLE\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Supported values:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PIGALLE"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PIGALLE_LITE"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PIGALLE"]}," by default unless you already know ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PIGALLE_LITE"]}," is sufficient for your workload."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"picture-descriptions","__idx":21},"children":["Picture descriptions"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"picture_description_enabled\": true\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Enable this when image descriptions are useful for your workflow."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"table-verification","__idx":22},"children":["Table verification"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"table_verification_enabled\": true\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Enable this when table accuracy matters more than raw speed."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"metadata","__idx":23},"children":["Metadata"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"metadata\": {\n    \"source\": \"n8n\",\n    \"customer_id\": \"cust_123\"\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use metadata to keep track of source systems, customer context, or workflow identifiers."]},{"$$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-prefer-a-stored-document-when-reuse-matters","__idx":25},"children":["1. Prefer a stored document when reuse matters"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If the same file may be parsed again, extracted later, or audited, upload it first with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v0/documents"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This gives you a reusable document ID and a cleaner workflow than repeatedly uploading the same file."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"2-use-parsing-before-extract-when-visibility-matters","__idx":26},"children":["2. Use parsing before extract when visibility matters"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If you need OCR, markdown, pictures, or page-level status, do not jump directly to extract."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Create a parsing first, inspect it, then create the extract from the parsing ID."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"3-use-url-list-fan-out-only-on-parsing","__idx":27},"children":["3. Use URL-list fan-out only on parsing"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If your source input is a list of URLs:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["send the list to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v0/parsing"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["receive an array of parsing IDs"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["iterate over those IDs to create extracts if needed"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"4-treat-partial_finished-as-a-distinct-state","__idx":28},"children":["4. Treat ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PARTIAL_FINISHED"]}," as a distinct state"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Do not collapse it into generic failure logic."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Instead, inspect:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pages_success"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pages_failed"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Then decide whether the workflow can continue."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"5-enable-picture-and-table-options-only-when-they-help","__idx":29},"children":["5. Enable picture and table options only when they help"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Both ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["picture_description_enabled"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["table_verification_enabled"]}," should be chosen intentionally."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If your use case does not depend on those features, keep them disabled for simpler requests."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"6-trim-pdfs-early-when-only-a-subset-matters","__idx":30},"children":["6. Trim PDFs early when only a subset matters"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If you only need part of a PDF, trim it during document upload with the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pdf_page_start"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pdf_page_end"]}," query parameters on ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/api/schema/documents/document_create"},"children":["Create document"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["That reduces unnecessary downstream processing."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"common-pitfalls","__idx":31},"children":["Common pitfalls"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"assuming-parsing-is-synchronous","__idx":32},"children":["Assuming parsing is synchronous"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /v0/parsing"]}," creates a resource and starts processing. It does not mean the final content is ready immediately."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Always poll the parsing resource until the status is final."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"assuming-post-v0parsing-always-returns-one-object","__idx":33},"children":["Assuming ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /v0/parsing"]}," always returns one object"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["document"]}," is a list of URLs, the response is an array."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This is one of the most common integration mistakes in no-code tools and coding agents."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"passing-a-url-list-to-extract","__idx":34},"children":["Passing a URL list to extract"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["That list behavior is documented on parsing, not on extract."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If you need multiple downstream extracts, create multiple parsings first."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ignoring-error","__idx":35},"children":["Ignoring ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["When a parsing fails, do not branch only on ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Always inspect the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error"]}," field for debugging and retry decisions."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"troubleshooting","__idx":36},"children":["Troubleshooting"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"401-unauthorized","__idx":37},"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":"parsing-remains-in-in_queue-or-in_progress","__idx":38},"children":["Parsing remains in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["IN_QUEUE"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["IN_PROGRESS"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Keep polling. Parsing is asynchronous by design."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"parsing-finishes-with-partial_finished","__idx":39},"children":["Parsing finishes with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PARTIAL_FINISHED"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Review ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pages_failed"]}," and decide whether partial output is acceptable for the workflow."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"parsing-fails-with-error","__idx":40},"children":["Parsing fails with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ERROR"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Inspect the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error"]}," field, then verify:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["the document input is valid"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["the public URL is accessible"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["the pre-signed URL is still valid"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["the uploaded file is readable"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"public-url-parsing-fails-unexpectedly","__idx":41},"children":["Public URL parsing fails unexpectedly"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If the input uses a short-lived pre-signed URL, it may expire before or during processing."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use a longer validity window or upload the file first."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"related-guides","__idx":42},"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 guide"]}]},{"$$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/quickstart"},"children":["Quickstart polling flow"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/tutorials/n8n/n8n-parsing"},"children":["n8n parsing workflow"]}]},{"$$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/parsings/parsing_create"},"children":["API reference"]}]}]}]},"headings":[{"value":"Parsing","id":"parsing","depth":1},{"value":"What parsing is for","id":"what-parsing-is-for","depth":2},{"value":"Quick start","id":"quick-start","depth":2},{"value":"Option A: Start from a stored document","id":"option-a-start-from-a-stored-document","depth":3},{"value":"Option B: Start directly from a public URL","id":"option-b-start-directly-from-a-public-url","depth":3},{"value":"Option C: Start directly from a local file","id":"option-c-start-directly-from-a-local-file","depth":3},{"value":"Poll the parsing","id":"poll-the-parsing","depth":3},{"value":"What you get back","id":"what-you-get-back","depth":2},{"value":"Key fields","id":"key-fields","depth":3},{"value":"Input options","id":"input-options","depth":2},{"value":"1. Existing document ID","id":"1-existing-document-id","depth":3},{"value":"2. Public or pre-signed URL","id":"2-public-or-pre-signed-url","depth":3},{"value":"3. Multipart uploaded file","id":"3-multipart-uploaded-file","depth":3},{"value":"4. List of public or pre-signed URLs","id":"4-list-of-public-or-pre-signed-urls","depth":3},{"value":"Response format details","id":"response-format-details","depth":2},{"value":"POST /v0/parsing","id":"post-v0parsing","depth":3},{"value":"GET /v0/parsing","id":"get-v0parsing","depth":3},{"value":"GET /v0/parsing/{id}","id":"get-v0parsingid","depth":3},{"value":"Parsing statuses","id":"parsing-statuses","depth":2},{"value":"Configuration options","id":"configuration-options","depth":2},{"value":"Model","id":"model","depth":3},{"value":"Picture descriptions","id":"picture-descriptions","depth":3},{"value":"Table verification","id":"table-verification","depth":3},{"value":"Metadata","id":"metadata","depth":3},{"value":"Best practices","id":"best-practices","depth":2},{"value":"1. Prefer a stored document when reuse matters","id":"1-prefer-a-stored-document-when-reuse-matters","depth":3},{"value":"2. Use parsing before extract when visibility matters","id":"2-use-parsing-before-extract-when-visibility-matters","depth":3},{"value":"3. Use URL-list fan-out only on parsing","id":"3-use-url-list-fan-out-only-on-parsing","depth":3},{"value":"4. Treat PARTIAL_FINISHED as a distinct state","id":"4-treat-partial_finished-as-a-distinct-state","depth":3},{"value":"5. Enable picture and table options only when they help","id":"5-enable-picture-and-table-options-only-when-they-help","depth":3},{"value":"6. Trim PDFs early when only a subset matters","id":"6-trim-pdfs-early-when-only-a-subset-matters","depth":3},{"value":"Common pitfalls","id":"common-pitfalls","depth":2},{"value":"Assuming parsing is synchronous","id":"assuming-parsing-is-synchronous","depth":3},{"value":"Assuming POST /v0/parsing always returns one object","id":"assuming-post-v0parsing-always-returns-one-object","depth":3},{"value":"Passing a URL list to extract","id":"passing-a-url-list-to-extract","depth":3},{"value":"Ignoring error","id":"ignoring-error","depth":3},{"value":"Troubleshooting","id":"troubleshooting","depth":2},{"value":"401 Unauthorized","id":"401-unauthorized","depth":3},{"value":"Parsing remains in IN_QUEUE or IN_PROGRESS","id":"parsing-remains-in-in_queue-or-in_progress","depth":3},{"value":"Parsing finishes with PARTIAL_FINISHED","id":"parsing-finishes-with-partial_finished","depth":3},{"value":"Parsing fails with ERROR","id":"parsing-fails-with-error","depth":3},{"value":"Public URL parsing fails unexpectedly","id":"public-url-parsing-fails-unexpectedly","depth":3},{"value":"Related guides","id":"related-guides","depth":2}],"frontmatter":{"seo":{"title":"Parsing"}},"lastModified":"2026-04-22T15:07:29.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/tutorials/parsing","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}