Rate limit tier: submission, 60 requests/min. See Rate limits.Uploads 1–100 files as a single document packet, the unit a run addresses. Every file lands in one packet. Creation is all-or-nothing: one rejected file fails the whole request and stores nothing. An unsupported type and disguised bytes both cause a rejection.This endpoint uploads without processing. Trigger extraction afterwards with POST /v3/document-packets/{document_packet_id}/run/. To do both in one call, use Upload and Run.Send the files as multipart form data under the files field, repeating the field for a packet with several files. A file above the per-file size cap is rejected before any bytes reach S3. See Files for the cap and the supported formats. Bundle several files only when they form one document, such as a contract and its annexes. Put unrelated documents in separate packets.Retries are safe with Idempotency-Key. Pass any unique string. Retrying the request with the same key replays the original upload, so the API creates no duplicate packet. See Idempotency.Filenames are unique within a workflow. The on_conflict form field decides what a collision does:
error, the default. The whole request fails with 409 before anything is uploaded. The response lists the conflicting names and the name each one would take.
rename. The colliding file gets a (n) counter before its extension, so contract.pdf becomes contract (1).pdf. Each returned file’s name is then the name it was stored under, and original_name holds the name you uploaded. original_name is null when no rename happened.
Attach caller context with the optional metadata form field. It takes a JSON-encoded object, sent as a string because multipart carries no nested objects. Free text in natural language goes inside it, under the __anyformat_free_text__ key. GET /v3/document-packets/{document_packet_id}/ echoes it back. A top-level key whose name matches an extract-schema field reaches the LLM and becomes the extracted value. See Attaching metadata for the full contract.
Optional caller-supplied key (Stripe convention). Retrying the request with the same key replays the original upload slots so no duplicate packet is created.
Optional JSON-encoded object of free-form metadata attached to the packet. The extract operator may source datapoints from a top-level key whose name matches a schema field, and from free text in natural language under __anyformat_free_text__.
How to handle an uploaded filename that already exists in the workflow (filenames are unique within a workflow). error (the default) rejects the whole request with 409 and lists the conflicting names, so a rename is never silent — the caller must opt in. rename accepts the collision and lets the server auto-rename the file by inserting a (n) counter before the extension (invoice.pdf → invoice (1).pdf).
Available options:
error,
rename
Response
Successful Response
Response for the packet-creating uploads (multipart and from-url).
Files in the packet, in the order they were provided.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"anyformat","colors":{"primary":"#0066FF","light":"#4D94FF","dark":"#0052CC"},"logo":{"light":"https://mintcdn.com/anyformat/v2HRpcqi657iKMPg/logo/Logo-horizontal.png?fit=max\u0026auto=format\u0026n=v2HRpcqi657iKMPg\u0026q=85\u0026s=7fe1cfff76171b16c27aea272156c95c","dark":"https://mintcdn.com/anyformat/G2lOO-2_Ah2kKl9r/logo/Logo-horizontal-dark.png?fit=max\u0026auto=format\u0026n=G2lOO-2_Ah2kKl9r\u0026q=85\u0026s=db00e6c8dcdc8eca2d4bd35df66713c6"},"favicon":"https://mintcdn.com/anyformat/v2HRpcqi657iKMPg/logo/anyformat-favicon.png?fit=max\u0026auto=format\u0026n=v2HRpcqi657iKMPg\u0026q=85\u0026s=3ed16699b7a1308a1d2fe9e9181abffd","api":{"openapi":"https://api.anyformat.ai/schema/?format=json"},"navbar":{"links":[{"icon":"envelope","href":"mailto:support@anyformat.ai","label":"Support"}],"primary":{"type":"button","label":"anyformat app","href":"https://app.anyformat.ai"}},"footer":{"socials":{"website":"https://www.anyformat.ai","linkedin":"https://linkedin.com/company/anyformat"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"anyformat","hasAudioNarration":false,"actualSubdomain":"anyformat","customDomains":["docs.anyformat.ai"],"gitSource":{"type":"github","owner":"anyformat-ai","repo":"anyformat-monorepo","deployBranch":"main","contentDirectory":"anyformat/docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6aedab44cc98a9ae37e0b107","clientVersion":"0.0.4102","searchFilterCounts":[{"language":"default","tag":"API Reference","count":87},{"language":"default","tag":"Guide","count":47},{"language":"default","tag":"Changelog","count":30},{"language":"default","tag":"API v2 (retired)","count":27},{"language":"default","tag":"Examples","count":19},{"language":"default","tag":"Workflows","count":16},{"language":"default","tag":"Nodes","count":14},{"language":"default","tag":"Evals","count":9},{"language":"default","tag":"v2 Workflows","count":9},{"language":"default","tag":"SDKs and tools","count":7}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".af-landing{--af-fg: #18181b;--af-muted: #71717a;--af-card: #fafafa;--af-bd: #e4e4e7;--af-blue: #0a5cf0;--af-hl: rgba(10, 92, 240, 0.16);--af-paper-shadow: 0 1px 2px rgba(24, 24, 27, 0.04), 0 12px 32px rgba(24, 24, 27, 0.08);max-width:1200px;margin:0 auto;padding:24px 32px 14px;color:var(--af-fg);font-family:\"Inter\", ui-sans-serif, system-ui, sans-serif}.dark .af-landing{--af-fg: #ececee;--af-muted: #9a9aa3;--af-card: #141417;--af-bd: #26262b;--af-blue: #6ea8ff;--af-paper-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 24px 48px rgba(0, 0, 0, 0.45)}.af-title{margin:0 0 10px;font-size:38px;line-height:44px;font-weight:600;letter-spacing:-0.02em;color:var(--af-fg)}.af-sub{margin:0 0 20px;max-width:720px;font-size:16.5px;line-height:25px;color:var(--af-muted)}.af-lede{margin:16px 0 0;max-width:860px;font-size:15px;line-height:23px;color:var(--af-muted)}.af-lede a{color:var(--af-fg);text-decoration:underline;text-decoration-color:var(--af-bd);text-underline-offset:4px;font-weight:500}.af-lede a:hover{text-decoration-color:var(--af-blue)}.af-links{display:flex;flex-wrap:wrap;gap:32px}.af-links a{font-size:15px;font-weight:500;color:var(--af-fg);text-decoration:underline;text-decoration-color:var(--af-bd);text-underline-offset:5px}.af-links a:hover{text-decoration-color:var(--af-blue)}.af-hero-scroll{container-type:inline-size;width:100%;overflow-x:auto}.af-hero{position:relative;width:100em;height:40em;font-size:max(1cqw, 7px)}.af-paper{z-index:1;position:absolute;left:0;top:0;width:31.67em;height:40em;box-sizing:border-box;padding:2.33em;overflow:hidden;background:#ffffff;color:#18181b;border:1px solid #e4e4e7;border-radius:0.33em;box-shadow:var(--af-paper-shadow);display:flex;flex-direction:column;gap:2em;font-size:1em;line-height:1.33}.af-paper-title{font-size:1.5em;line-height:1.33;font-weight:700;letter-spacing:0.06em}.af-paper-block{display:flex;flex-direction:column}.af-paper-cols{display:grid;grid-template-columns:1fr 1fr;gap:1.33em}.af-paper-muted{color:#71717a}.af-row{display:grid;grid-template-columns:minmax(0, 1fr) 2.67em 5.33em 5.67em;gap:0.67em;height:2em;align-items:center;border-bottom:1px solid #f4f4f5;white-space:nowrap}.af-row>div:first-child{overflow:hidden;text-overflow:ellipsis}.af-row-head{color:#71717a;font-weight:500;border-bottom-color:#e4e4e7}.af-num{text-align:right}.af-bold{font-weight:600}.af-totals{margin-top:auto;display:flex;flex-direction:column;align-items:flex-end}.af-hl{position:relative;border-radius:0.25em;padding:0 0.17em;background:rgba(10, 92, 240, 0);box-shadow:0 0 0 1px rgba(10, 92, 240, 0.28)}.af-region{position:relative}.af-region::before{content:\"\";position:absolute;inset:-0.75em -0.6em -0.4em;border:1px solid var(--af-blue);border-radius:0.25em;opacity:calc(0.26 + var(--af-box-o, 0) * 0.34)}.af-region::after{content:attr(data-box);position:absolute;left:0.5em;top:-0.75em;transform:translateY(-50%);font-family:\"Inconsolata\", ui-monospace, Menlo, Consolas, monospace;font-size:0.83em;line-height:1;letter-spacing:0.02em;white-space:nowrap;color:#ffffff;background:var(--af-blue);border-radius:0.25em;padding:0.17em 0.33em;opacity:var(--af-box-o, 0)}.af-bbox{color:var(--af-muted)}.af-card{z-index:1;position:absolute;left:40em;top:0;width:60em;height:40em;box-sizing:border-box;overflow:hidden;background:var(--af-card);border:1px solid var(--af-bd);border-radius:1em;color:var(--af-fg)}.af-tabs{height:3.33em;box-sizing:border-box;padding:0 2em;border-bottom:1px solid var(--af-bd);display:flex;align-items:stretch;gap:2em}.af-tab{display:flex;align-items:center;font-size:1.08em;font-weight:500;color:var(--af-muted);border-bottom:2px solid transparent;box-sizing:border-box}.af-tabs-right{flex:1;display:flex;align-items:center;justify-content:flex-end;gap:1.5em;font-size:1em;color:var(--af-muted)}.af-tabs-right .af-lang-on{color:var(--af-fg)}.af-pane{position:absolute;left:0;top:3.08em;width:55.38em;box-sizing:border-box;padding:1.54em 1.85em;margin:0;font-family:\"Inconsolata\", ui-monospace, Menlo, Consolas, monospace;font-size:1.08em;line-height:1.54;color:var(--af-fg);white-space:pre;background:transparent;border:0;opacity:0}.af-pane-code{opacity:1}.af-tab-define{color:var(--af-fg);border-bottom-color:var(--af-blue)}.af-pane .af-k{color:var(--af-muted)}.af-pane .af-s{color:var(--af-blue)}.af-pane-run{color:var(--af-muted)}.af-pane-run .af-m{color:var(--af-fg)}.af-pane-json{color:var(--af-muted)}.af-pane-json .af-key{color:var(--af-fg)}.af-val{color:var(--af-muted);font-weight:600}.af-cursor{display:inline-block;width:0.5em;height:1em;background:var(--af-fg);vertical-align:-0.15em;opacity:0}.af-wires{position:absolute;left:0;top:0;width:100em;height:40em;z-index:2;pointer-events:none}.af-wire{stroke:var(--af-blue);stroke-opacity:0.85;stroke-width:1.25;fill:none;stroke-dasharray:700;stroke-dashoffset:700}.af-dot{fill:var(--af-blue);opacity:0}.af-gallery{--af-g-fg: #18181b;--af-g-muted: #71717a;--af-g-bg: #ffffff;--af-g-panel: #fafafa;--af-g-bd: #e4e4e7;--af-g-blue: #0a5cf0;--af-g-soft: rgba(10, 92, 240, 0.1);--af-g-hl: rgba(10, 92, 240, 0.18);--af-g-paper: #ffffff;--af-g-paper-bd: #e4e4e7;--af-g-ink: #ccd1da;--af-g-tint-a: #e8effc;--af-g-tint-b: #eeeef1;--af-g-tint-c: #e9f0ec;--af-g-lift: 0 1px 2px rgba(24, 24, 27, 0.05), 0 10px 26px rgba(24, 24, 27, 0.07);margin:24px 0 8px}.dark .af-gallery{--af-g-fg: #ececee;--af-g-muted: #9a9aa3;--af-g-bg: #0c0c0e;--af-g-panel: #141417;--af-g-bd: #26262b;--af-g-blue: #6ea8ff;--af-g-soft: rgba(110, 168, 255, 0.12);--af-g-hl: rgba(110, 168, 255, 0.22);--af-g-lift: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px rgba(0, 0, 0, 0.5);--af-g-tint-a: #131a28;--af-g-tint-b: #17171a;--af-g-tint-c: #131a17}.af-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}.af-chip{display:inline-flex;align-items:center;gap:7px;font:inherit;font-size:13px;font-weight:500;border:1px solid var(--af-g-bd);border-radius:999px;padding:6px 13px;background:var(--af-g-bg);color:var(--af-g-muted);cursor:pointer;transition:color 0.15s ease, border-color 0.15s ease}.af-chip::before{content:\"\";width:9px;height:9px;border-radius:50%;border:1.5px solid var(--af-g-bd)}.af-chip:hover{color:var(--af-g-fg)}.af-chip:focus-visible{outline:2px solid var(--af-g-blue);outline-offset:2px}.af-chip[aria-pressed=\"true\"]{color:var(--af-g-fg);border-color:var(--af-g-blue)}.af-chip[aria-pressed=\"true\"]::before{background:var(--af-g-blue);border-color:var(--af-g-blue)}.af-grid{display:grid;grid-template-columns:repeat(auto-fill, minmax(224px, 1fr));gap:16px}.af-ex{display:flex;flex-direction:column;overflow:hidden;text-decoration:none;color:inherit;background:var(--af-g-bg);border:1px solid var(--af-g-bd);border-radius:12px;transition:transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease}.af-ex[hidden]{display:none}.af-ex:hover{transform:translateY(-3px);box-shadow:var(--af-g-lift);border-color:var(--af-g-blue)}.af-ex:focus-visible{outline:2px solid var(--af-g-blue);outline-offset:2px}.af-ex-body{display:flex;flex-direction:column;gap:7px;flex:1;padding:14px 15px 15px}.af-ex-title{font-size:15px;font-weight:600;line-height:1.3;letter-spacing:-0.01em;color:var(--af-g-fg)}.af-ex-note{font-size:12.5px;line-height:1.45;color:var(--af-g-muted)}.af-ex-nodes{display:flex;flex-wrap:wrap;gap:5px;margin-top:auto;padding-top:8px}.af-nd{font-family:\"Inconsolata\", ui-monospace, Menlo, Consolas, monospace;font-size:11px;font-weight:600;letter-spacing:0.04em;color:var(--af-g-muted);background:var(--af-g-panel);border:1px solid var(--af-g-bd);border-radius:4px;padding:1px 5px}.af-nd-hot{color:var(--af-g-blue);border-color:var(--af-g-blue);background:var(--af-g-soft)}.af-art{position:relative;height:118px;overflow:hidden;border-bottom:1px solid var(--af-g-bd);background:var(--af-g-tint-b)}.af-art-a{background:var(--af-g-tint-a)}.af-art-c{background:var(--af-g-tint-c)}.af-art>span{position:absolute;display:block;box-sizing:border-box;background:var(--af-g-paper);border:1px solid var(--af-g-paper-bd);border-radius:2px;box-shadow:0 2px 8px rgba(24, 24, 27, 0.1)}.af-art>span::before,.af-art>span::after{content:\"\";position:absolute;left:8px;height:3px;border-radius:2px;background:var(--af-g-ink)}.af-art>span::before{top:13px;right:8px}.af-art>span::after{top:24px;right:24px}.af-art-stack span{width:74px;height:94px;left:50%;top:16px;margin-left:-37px}.af-art-stack span:nth-child(1){transform:rotate(-9deg) translateX(-24px)}.af-art-stack span:nth-child(2){transform:rotate(-3deg) translateX(-8px)}.af-art-stack span:nth-child(3){transform:rotate(3deg) translateX(9px)}.af-art-stack span:nth-child(4){transform:rotate(10deg) translateX(25px)}.af-art-stack span:nth-child(3)::after{background:var(--af-g-hl);height:6px}.af-art-doc span:nth-child(1){width:90px;height:104px;left:50%;margin-left:-111px;top:8px}.af-art-doc span:nth-child(1)::before{top:12px;right:30px}.af-art-doc span:nth-child(1)::after{top:26px;right:10px;box-shadow:0 12px 0 var(--af-g-ink), 0 24px 0 var(--af-g-ink)}.af-art-doc span:nth-child(2){width:58px;height:2px;left:50%;margin-left:-19px;top:58px;border:0;border-radius:0;background:var(--af-g-blue);opacity:0.5;box-shadow:none}.af-art-doc span:nth-child(2)::before,.af-art-doc span:nth-child(2)::after{display:none}.af-art-doc span:nth-child(3){width:74px;height:24px;left:50%;margin-left:37px;top:47px;border-color:var(--af-g-blue);background:var(--af-g-bg)}.af-art-doc span:nth-child(3)::before{top:9px;left:8px;right:46px;background:var(--af-g-blue)}.af-art-doc span:nth-child(3)::after{top:9px;left:34px;right:8px;background:var(--af-g-hl)}.af-art-table span{width:118px;height:100px;left:50%;top:10px;margin-left:-59px}.af-art-table span::before{top:12px;right:62px;height:5px}.af-art-table span::after{top:28px;right:10px;box-shadow:0 11px 0 var(--af-g-ink), 0 22px 0 var(--af-g-hl), 0 33px 0 var(--af-g-ink), 0 44px 0 var(--af-g-ink)}.af-art-receipt span{width:72px;height:106px;left:50%;top:8px;margin-left:-36px;border:0;border-radius:0;transform:rotate(-2deg);clip-path:polygon(0 0, 100% 0, 100% 92%, 87.5% 100%, 75% 92%, 62.5% 100%, 50% 92%, 37.5% 100%, 25% 92%, 12.5% 100%, 0 92%)}.af-art-receipt span::before{top:14px;left:14px;right:14px;height:5px}.af-art-receipt span::after{top:30px;left:10px;right:26px;box-shadow:0 12px 0 var(--af-g-ink), 0 24px 0 var(--af-g-ink), 0 40px 0 var(--af-g-hl)}.af-art-mail span:nth-child(1){width:122px;height:84px;left:50%;top:17px;margin-left:-61px}.af-art-mail span:nth-child(1)::before{display:none}.af-art-mail span:nth-child(1)::after{top:46px;left:14px;right:14px;box-shadow:0 11px 0 var(--af-g-ink), 0 22px 0 var(--af-g-hl)}.af-art-mail span:nth-child(2){width:84px;height:84px;left:50%;top:-25px;margin-left:-42px;border-radius:0;transform:rotate(45deg);border-color:var(--af-g-paper-bd);box-shadow:none}.af-art-mail span:nth-child(2)::before,.af-art-mail span:nth-child(2)::after{display:none}.af-art-check span:nth-child(1){width:96px;height:104px;left:50%;margin-left:-83px;top:8px}.af-art-check span:nth-child(1)::before{top:12px;right:36px}.af-art-check span:nth-child(1)::after{top:28px;right:10px;background:var(--af-g-hl);height:6px;box-shadow:0 14px 0 var(--af-g-ink), 0 28px 0 var(--af-g-hl), 0 42px 0 var(--af-g-ink)}.af-art-check span:nth-child(2){width:44px;height:22px;left:50%;margin-left:39px;top:48px;border-color:var(--af-g-blue);background:var(--af-g-soft)}.af-art-check span:nth-child(2)::before{top:9px;left:9px;right:9px;background:var(--af-g-blue)}.af-art-check span:nth-child(2)::after{display:none}.af-art-route span:nth-child(1){width:72px;height:92px;left:50%;margin-left:-98px;top:14px}.af-art-route span:nth-child(1)::before{top:12px;right:26px}.af-art-route span:nth-child(1)::after{top:24px;right:10px;box-shadow:0 12px 0 var(--af-g-ink)}.af-art-route span:nth-child(2),.af-art-route span:nth-child(3){width:66px;height:26px;left:50%;margin-left:32px;border-color:var(--af-g-blue);background:var(--af-g-bg)}.af-art-route span:nth-child(2){top:20px}.af-art-route span:nth-child(3){top:68px}.af-art-route span:nth-child(2)::before,.af-art-route span:nth-child(3)::before{top:11px;left:9px;right:30px;background:var(--af-g-blue)}.af-art-route span:nth-child(2)::after,.af-art-route span:nth-child(3)::after{top:11px;left:42px;right:9px;background:var(--af-g-hl)}.af-art-route::before,.af-art-route::after{content:\"\";position:absolute;left:50%;margin-left:-20px;width:52px;height:26px;border-color:var(--af-g-blue);border-style:solid;opacity:0.5}.af-art-route::before{top:33px;border-width:1px 1px 0 0;border-radius:0 8px 0 0}.af-art-route::after{top:59px;border-width:0 1px 1px 0;border-radius:0 0 8px 0}.af-art-tiers{display:grid;grid-template-columns:repeat(4, 1fr);gap:9px;align-items:end;padding:18px 16px}.af-art-tiers span{position:relative;left:auto;top:auto;width:auto;margin:0;overflow:hidden}.af-art-tiers span:nth-child(1){height:36%}.af-art-tiers span:nth-child(2){height:58%}.af-art-tiers span:nth-child(3){height:78%}.af-art-tiers span:nth-child(4){height:100%;border-color:var(--af-g-blue);box-shadow:0 0 0 2px var(--af-g-soft)}.af-art-tiers span::before{top:7px;left:5px;right:5px}.af-art-tiers span::after{top:15px;left:5px;right:5px;box-shadow:0 8px 0 var(--af-g-ink), 0 16px 0 var(--af-g-ink), 0 24px 0 var(--af-g-ink)}.af-art-tiers span:nth-child(4)::after{background:var(--af-g-hl);box-shadow:0 8px 0 var(--af-g-hl), 0 16px 0 var(--af-g-hl), 0 24px 0 var(--af-g-hl)}.af-art-chart{display:grid;grid-template-columns:repeat(7, 1fr);gap:6px;align-items:end;padding:22px 18px 18px}.af-art-chart span{position:relative;left:auto;top:auto;width:auto;margin:0;border-radius:2px 2px 0 0}.af-art-chart span::before,.af-art-chart span::after{display:none}.af-art-chart span:nth-child(1){height:52%}.af-art-chart span:nth-child(2){height:68%}.af-art-chart span:nth-child(3){height:61%}.af-art-chart span:nth-child(4){height:80%}.af-art-chart span:nth-child(5){height:74%}.af-art-chart span:nth-child(6){height:88%}.af-art-chart span:nth-child(7){height:96%;border-color:var(--af-g-blue);background:var(--af-g-soft)}.af-art-chart::after{content:\"\";position:absolute;left:0;right:0;top:38%;border-top:1px dashed var(--af-g-blue);opacity:0.55}.af-art-term{padding:14px 15px;background:#101014;border-bottom-color:#26262b;font-family:\"Inconsolata\", ui-monospace, Menlo, Consolas, monospace;font-size:11.5px;line-height:1.75;color:#9a9aa3}.af-art-term div{display:block;font-weight:400}.af-art-term .af-term-key{font-style:normal;color:#6ea8ff}.af-art-term .af-term-cursor{display:inline-block;width:6px;height:11px;background:#ececee;text-decoration:none;vertical-align:-1px}.af-art-md span{width:128px;height:96px;left:50%;top:12px;margin-left:-64px}.af-art-md span::before{top:14px;left:12px;right:74px;height:6px;background:var(--af-g-hl)}.af-art-md span::after{top:32px;left:12px;right:12px;box-shadow:0 10px 0 var(--af-g-ink), 0 20px 0 var(--af-g-ink), 0 30px 0 var(--af-g-ink), 0 40px 0 var(--af-g-ink)}.af-art-md::after{content:\"# ## |\";position:absolute;right:14px;bottom:10px;font-family:\"Inconsolata\", ui-monospace, Menlo, Consolas, monospace;font-size:12px;font-weight:600;color:var(--af-g-blue);opacity:0.7}@media (prefers-reduced-motion: reduce){.af-ex{transition:none}.af-ex:hover{transform:none}}.af-doors{display:grid;grid-template-columns:repeat(4, 1fr);gap:14px;margin:22px 0 0}.af-door{display:flex;flex-direction:column;gap:4px;padding:13px 14px 14px;border:1px solid var(--af-bd);border-radius:12px;text-decoration:none;color:var(--af-fg);transition:border-color 0.18s ease, transform 0.18s ease}.af-door:hover{border-color:var(--af-blue);transform:translateY(-2px)}.af-door:focus-visible{outline:2px solid var(--af-blue);outline-offset:2px}.af-door-title{font-size:15px;font-weight:600;letter-spacing:-0.01em}.af-door-title::after{content:\" ↗\";color:var(--af-muted);font-weight:400}.af-door-note{font-size:12.5px;line-height:1.45;color:var(--af-muted)}.af-featured{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:16px 0 0}.af-featured h2{margin:0;font-size:19px;line-height:1.2;font-weight:600;letter-spacing:-0.02em;color:var(--af-fg)}.af-featured a{font-size:14px;font-weight:500;color:var(--af-fg);text-decoration:underline;text-decoration-color:var(--af-bd);text-underline-offset:5px}.af-featured a:hover{text-decoration-color:var(--af-blue)}.af-grid-4{grid-template-columns:repeat(4, 1fr)}@media (max-width: 900px){.af-doors{grid-template-columns:repeat(2, 1fr)}.af-grid-4{grid-template-columns:repeat(2, 1fr)}}@media (prefers-reduced-motion: reduce){.af-door{transition:none}.af-door:hover{transform:none}}.af-payoff{display:grid;grid-template-columns:1fr 34px 1fr;align-items:stretch;gap:0;margin:20px 0 16px;font-family:\"Inter\", ui-sans-serif, system-ui, sans-serif;--af-p-fg: #18181b;--af-p-muted: #71717a;--af-p-bd: #e4e4e7;--af-p-bg: #ffffff;--af-p-blue: #0a5cf0;--af-p-hl: rgba(10, 92, 240, 0.16)}.dark .af-payoff{--af-p-fg: #ececee;--af-p-muted: #9a9aa3;--af-p-bd: #26262b;--af-p-bg: #0f0f12;--af-p-blue: #6ea8ff;--af-p-hl: rgba(110, 168, 255, 0.22)}.af-payoff-pane{min-width:0;padding:14px 16px 16px;background:var(--af-p-bg);border:1px solid var(--af-p-bd);border-radius:10px}.af-payoff-cap{font-family:\"Inconsolata\", ui-monospace, Menlo, Consolas, monospace;font-size:11px;font-weight:600;letter-spacing:0.12em;text-transform:uppercase;color:var(--af-p-muted);margin-bottom:10px}.af-payoff-line{font-family:\"Inconsolata\", ui-monospace, Menlo, Consolas, monospace;font-size:12.5px;line-height:1.85;color:var(--af-p-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.af-payoff-line b{color:var(--af-p-fg);font-weight:600}.af-payoff-line .af-mark{background:var(--af-p-hl);color:inherit;border-radius:3px;padding:0 3px}.af-payoff-line .af-cite{font-style:normal;color:var(--af-p-blue);font-weight:600}.af-payoff-arrow{display:flex;align-items:center;justify-content:center;color:var(--af-p-blue);font-size:15px}.af-cost{display:flex;flex-wrap:wrap;gap:8px 28px;margin:0 0 24px;padding:12px 16px;border:1px solid var(--af-p-bd, #e4e4e7);border-radius:10px;font-family:\"Inconsolata\", ui-monospace, Menlo, Consolas, monospace;font-size:12.5px;color:#71717a}.dark .af-cost{border-color:#26262b;color:#9a9aa3}.af-cost span b{display:inline-block;margin-right:8px;font-weight:600;letter-spacing:0.1em;text-transform:uppercase;font-size:10.5px;color:#a1a1aa}.dark .af-cost span b{color:#6f6f78}.af-cost strong{color:#18181b;font-weight:600}.dark .af-cost strong{color:#ececee}@media (max-width: 700px){.af-payoff{grid-template-columns:1fr;gap:10px}.af-payoff-arrow{transform:rotate(90deg);height:20px}}.af-payoff-line .af-payoff-key{display:inline-block;min-width:9.5em}.af-gallery-strip .af-art{height:118px;zoom:0.53}.af-gallery-strip .af-ex-body{padding:10px 13px 12px;gap:4px}.af-gallery-strip .af-ex-title{font-size:14px}.af-gallery-strip .af-ex-note{font-size:12px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.af-art-lookup{display:grid;grid-template-columns:88px 30px 62px;grid-template-rows:repeat(3, auto);align-content:center;justify-content:center;gap:9px 0}.af-art-lookup>span{position:relative;left:auto;top:auto;margin:0;height:15px}.af-art-lookup>span::before{top:5px;left:6px;right:6px;height:4px}.af-art-lookup>span::after{display:none}.af-art-lookup>span:nth-child(1){grid-area:1 / 1}.af-art-lookup>span:nth-child(2){grid-area:2 / 1;width:72px}.af-art-lookup>span:nth-child(3){grid-area:3 / 1}.af-art-lookup>span:nth-child(4){grid-area:2 / 3;height:24px;border-color:var(--af-g-blue);background:var(--af-g-soft)}.af-art-lookup>span:nth-child(4)::before{top:10px;background:var(--af-g-blue)}.af-art-lookup::after{content:\"\";position:absolute;left:50%;top:50%;width:26px;height:1.5px;margin:-1px 0 0 -13px;background:var(--af-g-blue);opacity:0.6}.af-art-tabs{display:flex;flex-direction:column;justify-content:center;gap:7px;padding:0 26px}.af-art-tabs>span{position:relative;left:auto;top:auto;margin:0;height:15px;border-radius:3px 9px 9px 3px}.af-art-tabs>span::before{top:5px;left:8px;right:14px;height:4px}.af-art-tabs>span::after{display:none}.af-art-tabs>span:nth-child(2){width:86%}.af-art-tabs>span:nth-child(3){width:100%;border-color:var(--af-g-blue);background:var(--af-g-soft)}.af-art-tabs>span:nth-child(3)::before{background:var(--af-g-blue)}.af-art-tabs>span:nth-child(4){width:92%}.af-art-tabs>span:nth-child(5){width:78%}.af-art-form{display:flex;flex-direction:column;justify-content:center;gap:9px;padding:0 30px}.af-art-form>span{position:relative;left:auto;top:auto;margin:0;height:14px;box-shadow:none;border-color:#dcdee3}.af-art-form>span::before,.af-art-form>span::after{display:none}.af-art-form>span:nth-child(-n+2){background:var(--af-g-hl);border-color:transparent}.af-art-form>span:nth-child(2){width:68%}.af-art-form>span:nth-child(4){width:74%}.af-flow{--af-f-fg: #18181b;--af-f-muted: #71717a;--af-f-bd: #e4e4e7;--af-f-bg: #ffffff;--af-f-blue: #0a5cf0;--af-f-soft: rgba(10, 92, 240, 0.08);margin:20px 0 24px;font-family:\"Inter\", ui-sans-serif, system-ui, sans-serif}.dark .af-flow{--af-f-fg: #ececee;--af-f-muted: #9a9aa3;--af-f-bd: #26262b;--af-f-bg: #0f0f12;--af-f-blue: #6ea8ff;--af-f-soft: rgba(110, 168, 255, 0.14)}.af-flow-row{display:flex;flex-wrap:wrap;align-items:center}.af-node{display:inline-flex;align-items:baseline;gap:6px;box-sizing:border-box;padding:7px 14px;border:1px solid var(--af-f-bd);border-radius:8px;background:var(--af-f-bg);color:var(--af-f-fg);font-size:13.5px;line-height:1.3;font-weight:600;letter-spacing:-0.01em;white-space:nowrap;text-decoration:none;transition:border-color 0.15s ease, color 0.15s ease}a.af-node:hover{border-color:var(--af-f-blue);color:var(--af-f-blue)}a.af-node:focus-visible{outline:2px solid var(--af-f-blue);outline-offset:2px}.af-node-on{border-color:var(--af-f-blue);color:var(--af-f-blue);background:var(--af-f-soft)}.af-node-opt{border-style:dashed;font-weight:500;color:var(--af-f-muted)}.af-node span{font-family:\"Inconsolata\", ui-monospace, Menlo, Consolas, monospace;font-size:12px;font-weight:500;color:var(--af-f-muted)}.af-node-on span{color:var(--af-f-blue)}.af-link{position:relative;flex:0 0 34px;height:1px;background:var(--af-f-bd)}.af-link::after{content:\"\";position:absolute;right:0;top:-3.5px;border:3.5px solid transparent;border-left-color:var(--af-f-bd);border-right:0}.af-flow-fork{display:grid;grid-template-columns:max-content 46px max-content;justify-content:start;align-items:center}.af-fork-in{display:flex;align-items:center}.af-fork-out{display:flex;flex-direction:column;align-items:flex-start;gap:14px}.af-fork-elbow{position:relative;align-self:stretch}.af-fork-elbow::before,.af-fork-elbow::after{content:\"\";position:absolute;left:0;right:9px;border-color:var(--af-f-bd);border-style:solid}.af-fork-elbow::before{top:25%;bottom:50%;border-width:1px 1px 0 0;border-radius:0 9px 0 0}.af-fork-elbow::after{top:50%;bottom:25%;border-width:0 1px 1px 0;border-radius:0 0 9px 0}.af-fork-out .af-node{position:relative}.af-fork-out .af-node::before{content:\"\";position:absolute;left:-9px;top:50%;margin-top:-3.5px;border:3.5px solid transparent;border-left-color:var(--af-f-bd);border-right:0}.af-flow-note{margin-top:10px;font-size:12.5px;line-height:1.5;color:var(--af-f-muted)}@media (max-width: 640px){.af-flow-fork{grid-template-columns:1fr;row-gap:12px}.af-fork-elbow{display:none}.af-fork-out{padding-left:18px;border-left:1px solid var(--af-f-bd)}.af-fork-out .af-node::before{display:none}.af-link{flex-basis:22px}}.af-tape{position:relative;overflow:hidden;height:27px;margin:0 0 22px;border-top:1px solid var(--af-bd);border-bottom:1px solid var(--af-bd);-webkit-mask-image:linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);mask-image:linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent)}.af-tape-run{display:flex;width:max-content;height:100%;align-items:center;gap:38px;font-family:\"Inconsolata\", ui-monospace, Menlo, Consolas, monospace;font-size:12px;white-space:nowrap;color:var(--af-muted);animation:af-tape 64s linear infinite}.af-tape-run span{display:inline-flex;gap:7px}.af-tape-run b{font-weight:500;color:var(--af-blue)}@keyframes af-tape{to{transform:translateX(-50%)}}@media (prefers-reduced-motion: reduce){.af-tape-run{animation:none}.af-tape{-webkit-mask-image:linear-gradient(90deg, #000 78%, transparent);mask-image:linear-gradient(90deg, #000 78%, transparent)}}"}],"page":{"pagePath":"api-reference-v3/workflows/upload","slug":"/api-reference-v3/workflows/upload","pageMetadata":{"title":"Upload Document Packet","description":"Upload one or more files as a single document packet, without running it","openapi":"POST /v3/workflows/{workflow_id}/upload/","href":"/api-reference-v3/workflows/upload"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Upload one or more files as a single document packet, without running it\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components};return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:_jsxs(_components.em,{children:[`Rate limit tier: `,_jsx(_components.strong,{children:`submission`}),`, 60 requests/min. See `,_jsx(_components.a,{href:`/api-reference-v3/introduction#rate-limits`,children:`Rate limits`}),`.`]})}),`\n`,_jsxs(_components.p,{children:[`Uploads 1–100 files as a single `,_jsx(_components.a,{href:`/concepts/document-packets`,children:`document packet`}),`, the unit a run addresses. Every file lands in `,_jsx(_components.strong,{children:`one`}),` packet. Creation is all-or-nothing: one rejected file fails the whole request and stores nothing. An unsupported type and disguised bytes both cause a rejection.`]}),`\n`,_jsxs(_components.p,{children:[`This endpoint uploads without processing. Trigger extraction afterwards with `,_jsx(_components.a,{href:`/api-reference-v3/document-packets/run`,children:_jsx(_components.code,{children:`POST /v3/document-packets/{document_packet_id}/run/`})}),`. To do both in one call, use `,_jsx(_components.a,{href:`/api-reference-v3/workflows/upload-and-run`,children:`Upload and Run`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Send the files as multipart form data under the `,_jsx(_components.code,{children:`files`}),` field, repeating the field for a packet with several files. A file above the per-file size cap is rejected before any bytes reach S3. See `,_jsx(_components.a,{href:`/concepts/files`,children:`Files`}),` for the cap and the supported formats. Bundle several files only when they form one document, such as a contract and its annexes. Put unrelated documents in separate packets.`]}),`\n`,_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`Retries are safe with `,_jsx(_components.code,{children:`Idempotency-Key`}),`.`]}),` Pass any unique string. Retrying the request with the same key replays the original upload, so the API creates no duplicate packet. See `,_jsx(_components.a,{href:`/api-reference-v3/introduction#idempotency`,children:`Idempotency`}),`.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Filenames are unique within a workflow.`}),` The `,_jsx(_components.code,{children:`on_conflict`}),` form field decides what a collision does:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`error`})}),`, the default. The whole request fails with `,_jsx(_components.code,{children:`409`}),` before anything is uploaded. The response lists the conflicting names and the name each one would take.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`rename`})}),`. The colliding file gets a `,_jsx(_components.code,{children:` (n)`}),` counter before its extension, so `,_jsx(_components.code,{children:`contract.pdf`}),` becomes `,_jsx(_components.code,{children:`contract (1).pdf`}),`. Each returned file’s `,_jsx(_components.code,{children:`name`}),` is then the name it was stored under, and `,_jsx(_components.code,{children:`original_name`}),` holds the name you uploaded. `,_jsx(_components.code,{children:`original_name`}),` is `,_jsx(_components.code,{children:`null`}),` when no rename happened.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`Attach caller context with the optional `,_jsx(_components.code,{children:`metadata`}),` form field.`]}),` It takes a JSON-encoded object, sent as a string because multipart carries no nested objects. Free text in natural language goes inside it, under the `,_jsx(_components.code,{children:`__anyformat_free_text__`}),` key. `,_jsx(_components.a,{href:`/api-reference-v3/document-packets/get`,children:_jsx(_components.code,{children:`GET /v3/document-packets/{document_packet_id}/`})}),` echoes it back. A top-level key whose name matches an extract-schema field reaches the LLM and becomes the extracted value. See `,_jsx(_components.a,{href:`/concepts/document-packets#attaching-metadata`,children:`Attaching metadata`}),` for the full contract.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Upload Document Packet","description":"Upload one or more files as a single document packet, without running it","openapi":"POST /v3/workflows/{workflow_id}/upload/","href":"/api-reference-v3/workflows/upload"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,RequestExample,ResponseExample}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:_jsxs(_components.em,{children:[`Rate limit tier: `,_jsx(_components.strong,{children:`submission`}),`, 60 requests/min. See `,_jsx(_components.a,{href:`/api-reference-v3/introduction#rate-limits`,children:`Rate limits`}),`.`]})}),`\n`,_jsxs(_components.p,{children:[`Uploads 1–100 files as a single `,_jsx(_components.a,{href:`/concepts/document-packets`,children:`document packet`}),`, the unit a run addresses. Every file lands in `,_jsx(_components.strong,{children:`one`}),` packet. Creation is all-or-nothing: one rejected file fails the whole request and stores nothing. An unsupported type and disguised bytes both cause a rejection.`]}),`\n`,_jsxs(_components.p,{children:[`This endpoint uploads without processing. Trigger extraction afterwards with `,_jsx(_components.a,{href:`/api-reference-v3/document-packets/run`,children:_jsx(_components.code,{children:`POST /v3/document-packets/{document_packet_id}/run/`})}),`. To do both in one call, use `,_jsx(_components.a,{href:`/api-reference-v3/workflows/upload-and-run`,children:`Upload and Run`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Send the files as multipart form data under the `,_jsx(_components.code,{children:`files`}),` field, repeating the field for a packet with several files. A file above the per-file size cap is rejected before any bytes reach S3. See `,_jsx(_components.a,{href:`/concepts/files`,children:`Files`}),` for the cap and the supported formats. Bundle several files only when they form one document, such as a contract and its annexes. Put unrelated documents in separate packets.`]}),`\n`,_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`Retries are safe with `,_jsx(_components.code,{children:`Idempotency-Key`}),`.`]}),` Pass any unique string. Retrying the request with the same key replays the original upload, so the API creates no duplicate packet. See `,_jsx(_components.a,{href:`/api-reference-v3/introduction#idempotency`,children:`Idempotency`}),`.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Filenames are unique within a workflow.`}),` The `,_jsx(_components.code,{children:`on_conflict`}),` form field decides what a collision does:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`error`})}),`, the default. The whole request fails with `,_jsx(_components.code,{children:`409`}),` before anything is uploaded. The response lists the conflicting names and the name each one would take.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`rename`})}),`. The colliding file gets a `,_jsx(_components.code,{children:` (n)`}),` counter before its extension, so `,_jsx(_components.code,{children:`contract.pdf`}),` becomes `,_jsx(_components.code,{children:`contract (1).pdf`}),`. Each returned file’s `,_jsx(_components.code,{children:`name`}),` is then the name it was stored under, and `,_jsx(_components.code,{children:`original_name`}),` holds the name you uploaded. `,_jsx(_components.code,{children:`original_name`}),` is `,_jsx(_components.code,{children:`null`}),` when no rename happened.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`Attach caller context with the optional `,_jsx(_components.code,{children:`metadata`}),` form field.`]}),` It takes a JSON-encoded object, sent as a string because multipart carries no nested objects. Free text in natural language goes inside it, under the `,_jsx(_components.code,{children:`__anyformat_free_text__`}),` key. `,_jsx(_components.a,{href:`/api-reference-v3/document-packets/get`,children:_jsx(_components.code,{children:`GET /v3/document-packets/{document_packet_id}/`})}),` echoes it back. A top-level key whose name matches an extract-schema field reaches the LLM and becomes the extracted value. See `,_jsx(_components.a,{href:`/concepts/document-packets#attaching-metadata`,children:`Attaching metadata`}),` for the full contract.`]}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`curl`,numberOfLines:`6`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api.anyformat.ai/v3/workflows/0686bb97-8c30-70f0-8000-97669e000eb8/upload/'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer YOUR_API_KEY'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Idempotency-Key: 5f2b6c3e-8a1d-4f7e-9c0b-1a2b3c4d5e6f'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'files=@/path/to/contract.pdf'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'files=@/path/to/annex-a.pdf'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'metadata={\"customer_reference\": \"CR-2026-99001-ZTX\"}'`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python (requests)`,numberOfLines:`14`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`workflow_id `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"0686bb97-8c30-70f0-8000-97669e000eb8\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`url `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.anyformat.ai/v3/workflows/`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`workflow_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/upload/\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`headers `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Idempotency-Key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"5f2b6c3e-8a1d-4f7e-9c0b-1a2b3c4d5e6f\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`with`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` open`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"contract.pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"rb\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` f1, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`open`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"annex-a.pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"rb\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` f2:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` files `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"files\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, f1), (`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"files\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, f2)]`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` packet `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(url, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`headers, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`files`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`files).json()`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(packet[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"document_packet_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`])`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`TypeScript`,numberOfLines:`28`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`28`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`interface`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` DocumentPacketCreated`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` document_packet_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` workflow_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` files`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`original_name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }[];`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` workflowId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '0686bb97-8c30-70f0-8000-97669e000eb8'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` formData`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` FormData`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`formData`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`append`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'files'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`fileInput`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`files`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `https://api.anyformat.ai/v3/workflows/\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`workflowId`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"/upload/`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'POST'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Bearer YOUR_API_KEY'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Idempotency-Key'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` crypto`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`randomUUID`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` formData`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ok`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` throw`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`API error: \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`status`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` packet`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` DocumentPacketCreated`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`packet`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document_packet_id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})})]}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`Response (201 Created)`,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"document_packet_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"069dcc2c-e14c-7606-8000-2ee4fb17b4e1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"workflow_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0686bb97-8c30-70f0-8000-97669e000eb8\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"files\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"069dcc2c-e14c-7606-8000-2ee4fb17b4e2\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"contract.pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"original_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"069dcc2c-e14c-7606-8000-2ee4fb17b4e3\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"annex-a.pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"original_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Upload Document Packet","description":"Upload one or more files as a single document packet, without running it","openapi":"POST /v3/workflows/{workflow_id}/upload/","href":"/api-reference-v3/workflows/upload"}}}},"mdxExtracts":{"tableOfContents":[],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"curl","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"6\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'https://api.anyformat.ai/v3/workflows/0686bb97-8c30-70f0-8000-97669e000eb8/upload/'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Authorization: Bearer YOUR_API_KEY'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Idempotency-Key: 5f2b6c3e-8a1d-4f7e-9c0b-1a2b3c4d5e6f'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -F\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'files=@/path/to/contract.pdf'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -F\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'files=@/path/to/annex-a.pdf'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -F\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'metadata={\"customer_reference\": \"CR-2026-99001-ZTX\"}'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Python (requests)","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"python\">\u003ccode language=\"python\" numberOfLines=\"14\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">workflow_id \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"0686bb97-8c30-70f0-8000-97669e000eb8\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">url \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> f\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://api.anyformat.ai/v3/workflows/\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">{\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">workflow_id\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">/upload/\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">headers \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Bearer YOUR_API_KEY\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Idempotency-Key\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"5f2b6c3e-8a1d-4f7e-9c0b-1a2b3c4d5e6f\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">with\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\"> open\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"contract.pdf\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"rb\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">) \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">as\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> f1, \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">open\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"annex-a.pdf\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"rb\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">) \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">as\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> f2:\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> files \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> [(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"files\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, f1), (\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"files\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, f2)]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> packet \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests.post(url, \u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\">headers\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">headers, \u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\">files\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">files).json()\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">print\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(packet[\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"document_packet_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">])\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"TypeScript","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"typescript\">\u003ccode language=\"typescript\" numberOfLines=\"28\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">interface\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\"> DocumentPacketCreated\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> document_packet_id\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4EC9B0\"> string\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> workflow_id\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4EC9B0\"> string\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> files\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\">id\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4EC9B0\"> string\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">; \u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\">name\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4EC9B0\"> string\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">; \u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\">original_name\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4EC9B0\"> string\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> |\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4EC9B0\"> null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }[];\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> workflowId\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '0686bb97-8c30-70f0-8000-97669e000eb8'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> formData\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> new\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> FormData\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">();\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">formData\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">append\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'files'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">fileInput\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">files\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">[\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> response\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> fetch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> `https://api.anyformat.ai/v3/workflows/\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">${\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">workflowId\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">/upload/`\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> method:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'POST'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> headers:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Authorization'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Bearer YOUR_API_KEY'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Idempotency-Key'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> crypto\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">randomUUID\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(),\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> body:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> formData\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">if\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> (\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">!\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">response\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">ok\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">) {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> throw\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> new\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> Error\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">`API error: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">${\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">response\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">status\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">`\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> packet\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">:\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\"> DocumentPacketCreated\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> response\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">json\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">();\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">console\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">log\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">packet\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">document_packet_id\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"Response (201 Created)","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"8\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"document_packet_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"069dcc2c-e14c-7606-8000-2ee4fb17b4e1\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"workflow_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"0686bb97-8c30-70f0-8000-97669e000eb8\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"files\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"069dcc2c-e14c-7606-8000-2ee4fb17b4e2\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"contract.pdf\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"original_name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"069dcc2c-e14c-7606-8000-2ee4fb17b4e3\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"annex-a.pdf\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"original_name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}}},"jsLinks":["/_mintlify/custom/anyformat/a4950a6f3e3d96f1/landing.js","/_mintlify/custom/anyformat/ca91ef822a1ffa46/examples-gallery.js","/_mintlify/custom/anyformat/cca54c450f4f4609/code-tabs.js"],"openApiReferenceData":{"operation":{"tags":["workflows"],"summary":"Upload document packet to workflow","description":"Upload one or more files as a single document packet, without running it","operationId":"v3_upload_to_workflow","security":["02602975-5f23-41d2-b8ff-2c36d9215a44"],"parameters":["859a0c7f-7361-46f4-9298-11a9f9a41640","bb532726-bd7b-4750-832c-86ae98f8504e"],"requestBody":"b4bc6fe4-29cc-4d31-b324-ec468b51d977","responses":{"201":"bc86b6c5-7598-4df7-a173-a8e2c92e179d","400":"bee43214-1d8e-482a-962a-cec93c1c8d2f","401":"41e9b6f3-308b-43b8-b53b-d8b8be6c1ffc","403":"d0ab94b5-d340-4645-81ba-90e0ff7892cf","404":"b67b8b07-599c-45fb-bdb1-d93ec7ed67ef","409":"1689f014-f7c0-4cb1-ab92-afbaeb72a3a4","413":"4304f82b-6e3b-4318-aef1-3a7e47f1afd7","422":"945daf51-25e7-45d3-a572-ac1479084020","429":"1cd9a1a9-f6a7-4c4d-9776-2994576e2d14","500":"ddd588ec-5dc9-4683-8934-f127174b203d","502":"af3cd2ed-3b1b-4fef-a6bd-6733cf7639e2","503":"2e4c794e-12da-403c-8189-a5e4a37faec0","504":"cba827fc-6953-41e1-9b58-93ce4ef5109f"},"method":"post","type":"path","servers":["0397d3a9-791b-4ad0-bcb8-d413354e9814"],"path":"/v3/workflows/{workflow_id}/upload/","baseUrlOptions":["https://api.anyformat.ai"],"title":"Upload document packet to workflow","codeSamples":[],"requiredOnlyExamples":false,"requestExamples":[{"dropdown":false,"language":"shellscript","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"shellscript","children":{"type":"code","key":null,"ref":null,"props":{"language":"shellscript","numberOfLines":"6","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#DCDCAA"},"children":"curl"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -X"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" POST"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'https://api.anyformat.ai/v3/workflows/0686bb97-8c30-70f0-8000-97669e000eb8/upload/'"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -H"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'Authorization: Bearer YOUR_API_KEY'"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -H"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'Idempotency-Key: 5f2b6c3e-8a1d-4f7e-9c0b-1a2b3c4d5e6f'"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -F"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'files=@/path/to/contract.pdf'"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -F"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'files=@/path/to/annex-a.pdf'"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -F"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'metadata={\"customer_reference\": \"CR-2026-99001-ZTX\"}'"}}]}},"\n"]}}}},"filename":"curl"},{"dropdown":false,"language":"python","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"python","children":{"type":"code","key":null,"ref":null,"props":{"language":"python","numberOfLines":"14","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"import"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" requests"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"workflow_id "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"0686bb97-8c30-70f0-8000-97669e000eb8\""}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"url "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":" f"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"https://api.anyformat.ai/v3/workflows/"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"{"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"workflow_id"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"}"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"/upload/\""}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"headers "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" {"}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"Authorization\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Bearer YOUR_API_KEY\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"Idempotency-Key\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"5f2b6c3e-8a1d-4f7e-9c0b-1a2b3c4d5e6f\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"with"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#DCDCAA"},"children":" open"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"contract.pdf\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"rb\""}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":") "}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"as"}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" f1, "}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#DCDCAA"},"children":"open"}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"11","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"annex-a.pdf\""}},{"type":"span","key":"12","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"13","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"rb\""}},{"type":"span","key":"14","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":") "}},{"type":"span","key":"15","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"as"}},{"type":"span","key":"16","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" f2:"}}]}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" files "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" [("}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"files\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", f1), ("}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"files\""}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", f2)]"}}]}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" packet "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" requests.post(url, "}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":"headers"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"headers, "}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":"files"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"files).json()"}}]}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#DCDCAA"},"children":"print"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"(packet["}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"document_packet_id\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"])"}}]}},"\n"]}}}},"filename":"Python (requests)"},{"dropdown":false,"language":"typescript","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"typescript","children":{"type":"code","key":null,"ref":null,"props":{"language":"typescript","numberOfLines":"28","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"interface"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#4EC9B0"},"children":" DocumentPacketCreated"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" {"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":" document_packet_id"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":":"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4EC9B0"},"children":" string"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":";"}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":" workflow_id"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":":"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4EC9B0"},"children":" string"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":";"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":" files"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":":"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" { "}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":"id"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":":"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4EC9B0"},"children":" string"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"; "}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":"name"}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":":"}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4EC9B0"},"children":" string"}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"; "}},{"type":"span","key":"11","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":"original_name"}},{"type":"span","key":"12","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":":"}},{"type":"span","key":"13","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4EC9B0"},"children":" string"}},{"type":"span","key":"14","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" |"}},{"type":"span","key":"15","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4EC9B0"},"children":" null"}},{"type":"span","key":"16","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" }[];"}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"const"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4FC1FF"},"children":" workflowId"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" '0686bb97-8c30-70f0-8000-97669e000eb8'"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":";"}}]}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"const"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4FC1FF"},"children":" formData"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":" new"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":" FormData"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"();"}}]}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"formData"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"append"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'files'"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"fileInput"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"files"}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"["}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":"0"}},{"type":"span","key":"11","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"]);"}}]}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"const"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4FC1FF"},"children":" response"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":" await"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":" fetch"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}}]}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" `https://api.anyformat.ai/v3/workflows/"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#569CD6"},"children":"${"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"workflowId"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#569CD6"},"children":"}"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"/upload/`"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" {"}}}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" method:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'POST'"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"28","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" headers:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" {"}}]}},"\n",{"type":"span","key":"30","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'Authorization'"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":":"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'Bearer YOUR_API_KEY'"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"32","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'Idempotency-Key'"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":":"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" crypto"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"randomUUID"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"(),"}}]}},"\n",{"type":"span","key":"34","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" },"}}}},"\n",{"type":"span","key":"36","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" body:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" formData"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"38","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" }"}}}},"\n",{"type":"span","key":"40","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":");"}}}},"\n",{"type":"span","key":"42","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"44","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"if"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" ("}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"!"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"response"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"ok"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":") {"}}]}},"\n",{"type":"span","key":"46","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":" throw"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":" new"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":" Error"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"`API error: "}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#569CD6"},"children":"${"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"response"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"status"}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#569CD6"},"children":"}"}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"`"}},{"type":"span","key":"11","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":");"}}]}},"\n",{"type":"span","key":"48","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n",{"type":"span","key":"50","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"52","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"const"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4FC1FF"},"children":" packet"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":":"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#4EC9B0"},"children":" DocumentPacketCreated"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":" await"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" response"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"json"}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"();"}}]}},"\n",{"type":"span","key":"54","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"console"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"log"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"packet"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"document_packet_id"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":");"}}]}},"\n"]}}}},"filename":"TypeScript"}],"requestExampleType":"mdx","responseExamples":[{"dropdown":false,"language":"json","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"json","children":{"type":"code","key":null,"ref":null,"props":{"language":"json","numberOfLines":"8","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}}}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"document_packet_id\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"069dcc2c-e14c-7606-8000-2ee4fb17b4e1\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"workflow_id\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"0686bb97-8c30-70f0-8000-97669e000eb8\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"files\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": ["}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" { "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":"\"id\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"069dcc2c-e14c-7606-8000-2ee4fb17b4e2\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":"\"name\""}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"contract.pdf\""}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":"\"original_name\""}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"11","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":"null"}},{"type":"span","key":"12","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" },"}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" { "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":"\"id\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"069dcc2c-e14c-7606-8000-2ee4fb17b4e3\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":"\"name\""}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"annex-a.pdf\""}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":"\"original_name\""}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"11","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":"null"}},{"type":"span","key":"12","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" }"}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" ]"}}}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n"]}}}},"filename":"Response (201 Created)"}],"responseExampleType":"mdx"},"dependencies":{"parameters":{"859a0c7f-7361-46f4-9298-11a9f9a41640":{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id","isRequired":true,"uniqueKey":"","typeLabel":"string"}},"bb532726-bd7b-4750-832c-86ae98f8504e":{"name":"Idempotency-Key","in":"header","required":false,"schema":{"oneOf":[{"type":"string","title":"Idempotency-Key","description":"Optional caller-supplied key (Stripe convention). Retrying the request with the same key replays the original upload slots so no duplicate packet is created.","uniqueKey":"oneOf.0","typeLabel":"string"},{"type":"null","title":"Idempotency-Key","description":"Optional caller-supplied key (Stripe convention). Retrying the request with the same key replays the original upload slots so no duplicate packet is created.","uniqueKey":"oneOf.1","typeLabel":"null"}],"isRequired":false,"uniqueKey":"","typeLabel":"string | null"},"description":"Optional caller-supplied key (Stripe convention). Retrying the request with the same key replays the original upload slots so no duplicate packet is created."}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"properties":{"files":{"items":{"type":"string","contentMediaType":"application/octet-stream","uniqueKey":"files.items.[INDEX]","typeLabel":"file"},"type":"array","title":"Files","description":"1..100 files forming one document packet.","isRequired":true,"uniqueKey":"files","typeLabel":"file[]"},"metadata":{"oneOf":[{"type":"string","title":"Metadata","description":"Optional JSON-encoded object of free-form metadata attached to the packet. The extract operator may source datapoints from a top-level key whose name matches a schema field, and from free text in natural language under `__anyformat_free_text__`.","uniqueKey":"metadata.oneOf.0","typeLabel":"string"},{"type":"null","title":"Metadata","description":"Optional JSON-encoded object of free-form metadata attached to the packet. The extract operator may source datapoints from a top-level key whose name matches a schema field, and from free text in natural language under `__anyformat_free_text__`.","uniqueKey":"metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"metadata","typeLabel":"string | null"},"on_conflict":{"type":"string","enum":["error","rename"],"title":"On Conflict","description":"How to handle an uploaded filename that already exists in the workflow (filenames are unique within a workflow). `error` (the default) rejects the whole request with `409` and lists the conflicting names, so a rename is never silent — the caller must opt in. `rename` accepts the collision and lets the server auto-rename the file by inserting a ` (n)` counter before the extension (`invoice.pdf` → `invoice (1).pdf`).","default":"error","uniqueKey":"on_conflict","typeLabel":"enum\u003cstring>"}},"type":"object","required":["files"],"title":"Body_v3_upload_to_workflow","uniqueKey":"","typeLabel":"Body_v3_upload_to_workflow · object"},"examples":{"Example":{"title":"Example","value":{"files":["\u003cstring>"],"metadata":"\u003cstring>","on_conflict":"error"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"bc86b6c5-7598-4df7-a173-a8e2c92e179d":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"document_packet_id":{"type":"string","title":"Document Packet Id","description":"Unique identifier of the newly created document packet (hyphenated UUID).","examples":["069dcc2c-e14c-7606-8000-2ee4fb17b4e1"],"isRequired":true,"uniqueKey":"document_packet_id","typeLabel":"string"},"workflow_id":{"type":"string","title":"Workflow Id","description":"The workflow the packet was created under (hyphenated UUID).","examples":["0686bb97-8c30-70f0-8000-97669e000eb8"],"isRequired":true,"uniqueKey":"workflow_id","typeLabel":"string"},"files":{"items":{"properties":{"id":{"type":"string","title":"Id","description":"Unique identifier of the file (hyphenated UUID).","examples":["069dcc2c-e14c-7606-8000-2ee4fb17b4e2"],"isRequired":true,"uniqueKey":"files.items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","title":"Name","description":"Filename the file is stored under. Filenames are unique within a workflow: a name that collides with an existing file is auto-renamed by inserting a ` (n)` counter before the extension (e.g. `invoice.pdf` → `invoice (1).pdf`).","examples":["invoice.pdf"],"isRequired":true,"uniqueKey":"files.items.[INDEX].name","typeLabel":"string"},"original_name":{"oneOf":[{"type":"string","title":"Original Name","description":"The name you uploaded, present only when the file was auto-renamed to avoid a duplicate name in the workflow. `null` when `name` is the name you uploaded.","example":"invoice.pdf","uniqueKey":"files.items.[INDEX].original_name.oneOf.0","typeLabel":"string"},{"type":"null","title":"Original Name","description":"The name you uploaded, present only when the file was auto-renamed to avoid a duplicate name in the workflow. `null` when `name` is the name you uploaded.","example":"invoice.pdf","uniqueKey":"files.items.[INDEX].original_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"files.items.[INDEX].original_name","typeLabel":"string | null"}},"type":"object","required":["id","name"],"title":"DocumentPacketCreatedFileV3","description":"Per-file entry in an upload/create response.\n\nAdds ``original_name`` on top of the slim projection: the name the caller\nuploaded, surfaced only when the file was auto-renamed to avoid a duplicate\nname in the workflow. The original name is not persisted alongside the\nstored ``name``, so this only appears on the response to the request that\ncreated the file — later reads expose ``name`` alone.","uniqueKey":"files.items.[INDEX]","typeLabel":"DocumentPacketCreatedFileV3 · object"},"type":"array","title":"Files","description":"Files in the packet, in the order they were provided.","isRequired":true,"uniqueKey":"files","typeLabel":"DocumentPacketCreatedFileV3 · object[]"}},"type":"object","required":["document_packet_id","workflow_id","files"],"title":"DocumentPacketCreatedV3","description":"Response for the packet-creating uploads (multipart and from-url).","uniqueKey":"","typeLabel":"DocumentPacketCreatedV3 · object"},"examples":{"Example":{"title":"Example","value":{"document_packet_id":"069dcc2c-e14c-7606-8000-2ee4fb17b4e1","workflow_id":"0686bb97-8c30-70f0-8000-97669e000eb8","files":[{"id":"069dcc2c-e14c-7606-8000-2ee4fb17b4e2","name":"invoice.pdf","original_name":"invoice.pdf"}]}}},"exampleType":"generated"}},"headers":{"Idempotent-Replayed":{"description":"`true` when this response replays an earlier request sent with the same `Idempotency-Key`; absent on a first request.","schema":{"type":"string","enum":["true"]}},"X-RateLimit-Limit":{"description":"Requests allowed per window (60s).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the current window resets.","schema":{"type":"integer"}}},"exampleType":"generated"},"bee43214-1d8e-482a-962a-cec93c1c8d2f":{"description":"`VALIDATION_ERROR` — The request failed validation. `detail` is a list of `{type, loc, msg}`, one per failure; `loc[0]` is the request part.\n`UNSUPPORTED_FILE_TYPE` — The file type is not supported.","content":{"application/json":{"schema":{"type":"object","title":"ErrorEnvelope","description":"Uniform error response. `retryable=true` means the same request may succeed on retry (with backoff); `retryable=false` means the caller must change the request before retrying.","required":["error","error_code","retryable","request_id"],"properties":{"error":{"type":"string","description":"Short human-readable summary.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"error_code":{"type":"string","enum":["ACCESS_DENIED","AUTH_FAILED","CONCURRENT_EDIT","CONFLICT","DATASET_DOCUMENT_REJECTED","DATASET_GROUND_TRUTH_SAVE_FAILED","DATASET_INVALID_REQUEST","DATASET_UNSUPPORTED","EMPTY_EVAL","ENDPOINT_RETIRED","EXTRACT_MODE_FORBIDDEN","EXTRACT_NODE_UNRESOLVED","FILENAME_CONFLICT","FILE_TOO_LARGE","GATEWAY_TIMEOUT","GONE","GRAPH_READBACK_FAILED","GT_INVALID","IDEMPOTENCY_KEY_REUSED","IMMUTABLE_WORKFLOW","INSUFFICIENT_CREDIT","INTERNAL_ERROR","INTERNAL_INCONSISTENCY","INVALID_API_KEY","INVALID_JSON","INVALID_LOOKUP_FILE_ENCODING","INVALID_VALUE","INVALID_WORKFLOW_CONFIG","KNOWLEDGE_DOWNLOAD_UNAVAILABLE","KNOWLEDGE_NOT_ENABLED","KNOWLEDGE_NOT_READY","KNOWLEDGE_THREAD_MISMATCH","KNOWLEDGE_UNSUPPORTED_SNAPSHOT_FORMAT","LOOKUP_FIELD_WITHOUT_FILE","METHOD_NOT_ALLOWED","MISSING_API_KEY","MULTIFILE_UNSUPPORTED","NOT_ACCEPTABLE","NOT_ASSIGNED_VERIFIER","NOT_FOUND","NOT_IMPLEMENTED","NOT_IN_DATASET","OBJECT_STORAGE_UNAVAILABLE","ONESHOT_SIGNALS_MISSING","OPERATOR_DEPRECATED","OPERATOR_NOT_AVAILABLE","OPTIMIZATION_ALREADY_RUNNING","PARSE_MODE_FORBIDDEN","PAYMENT_REQUIRED","PRECONDITION_FAILED","RATE_LIMITED","REPARSE_REQUIRED","REQUEST_REJECTED","REQUEST_TOO_LARGE","RUN_IN_PROGRESS","SERVICE_UNAVAILABLE","SPLIT_HAS_NO_PAGES","SPLIT_SOURCE_NOT_PDF","TOPOLOGY_INVALID","UNSUPPORTED_FILE_TYPE","UNSUPPORTED_LOOKUP_FILE","UNSUPPORTED_MEDIA_TYPE","UPLOAD_SNIFF_BUDGET_EXCEEDED","URL_UNREACHABLE","VALIDATION_ERROR","WEBHOOK_SUBSCRIPTION_LIMIT","WORKFLOW_CONCURRENT_EDIT","WORKFLOW_NAME_CONFLICT","ZERO_DATA_RETENTION_REFUSES_DATASET","ZERO_DATA_RETENTION_REFUSES_KNOWLEDGE","ZERO_DATA_RETENTION_REFUSES_RESULTS_QUERY","deprecated_operator_ack_required","insufficient_api_key_scope","terms_acceptance_required"],"description":"Stable identifier for programmatic handling. New values can be added at any time, so a client must accept a code it does not know.","examples":["VALIDATION_ERROR","AUTH_FAILED","NOT_FOUND","PRECONDITION_FAILED","RATE_LIMITED","INTERNAL_ERROR","GATEWAY_TIMEOUT"],"isRequired":true,"uniqueKey":"error_code","typeLabel":"enum\u003cstring>"},"retryable":{"type":"boolean","description":"True when the caller should retry (with backoff for 429/412/5xx).","isRequired":true,"uniqueKey":"retryable","typeLabel":"boolean"},"request_id":{"type":"string","description":"Correlates this response with server logs.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"detail":{"description":"Machine-readable detail, any JSON value. A string for most errors, a list of `{type, loc, msg}` objects for `VALIDATION_ERROR`, whose `loc` starts with `body`, `query`, `path`, `header`, `form` or `tool`, and an object for a structured error such as `FILENAME_CONFLICT` (`detail.conflicts`).","uniqueKey":"detail","typeLabel":"any"},"params":{"type":"object","additionalProperties":true,"description":"Values specific to this occurrence of the error that a caller needs to recover, such as `node_ids` or `required_scope`, keyed by name. Absent when the code relays none.","uniqueKey":"params","typeLabel":"object"},"doc_url":{"type":"string","format":"uri","description":"Link to the documentation of this `error_code`.","uniqueKey":"doc_url","typeLabel":"string\u003curi>"},"recovery":{"type":"string","description":"One sentence that says what to do next. Absent when the `error_code` has none, or when `retryable` differs from the code's usual value.","uniqueKey":"recovery","typeLabel":"string"}},"uniqueKey":"","typeLabel":"ErrorEnvelope · object"},"examples":{"VALIDATION_ERROR":{"title":"VALIDATION_ERROR","value":{"error":"The request failed validation.","detail":[{"type":"missing","loc":["body","name"],"msg":"Field required"}],"error_code":"VALIDATION_ERROR","retryable":false,"request_id":"req_abc123","recovery":"Read `detail` for what failed validation, correct the request, and send it again."}},"UNSUPPORTED_FILE_TYPE":{"title":"UNSUPPORTED_FILE_TYPE","value":{"error":"The file type is not supported.","detail":"The file type is not supported.","error_code":"UNSUPPORTED_FILE_TYPE","retryable":false,"request_id":"req_abc123","recovery":"Convert the file to a type the API reference lists, and upload it again."}}},"exampleType":"examples"}},"exampleType":"examples"},"41e9b6f3-308b-43b8-b53b-d8b8be6c1ffc":{"description":"Authentication failed — the API key is not valid (`INVALID_API_KEY`) or the request carries none (`MISSING_API_KEY`).","content":{"application/json":{"schema":{"type":"object","title":"ErrorEnvelope","description":"Uniform error response. `retryable=true` means the same request may succeed on retry (with backoff); `retryable=false` means the caller must change the request before retrying.","required":["error","error_code","retryable","request_id"],"properties":{"error":{"type":"string","description":"Short human-readable summary.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"error_code":{"type":"string","enum":["ACCESS_DENIED","AUTH_FAILED","CONCURRENT_EDIT","CONFLICT","DATASET_DOCUMENT_REJECTED","DATASET_GROUND_TRUTH_SAVE_FAILED","DATASET_INVALID_REQUEST","DATASET_UNSUPPORTED","EMPTY_EVAL","ENDPOINT_RETIRED","EXTRACT_MODE_FORBIDDEN","EXTRACT_NODE_UNRESOLVED","FILENAME_CONFLICT","FILE_TOO_LARGE","GATEWAY_TIMEOUT","GONE","GRAPH_READBACK_FAILED","GT_INVALID","IDEMPOTENCY_KEY_REUSED","IMMUTABLE_WORKFLOW","INSUFFICIENT_CREDIT","INTERNAL_ERROR","INTERNAL_INCONSISTENCY","INVALID_API_KEY","INVALID_JSON","INVALID_LOOKUP_FILE_ENCODING","INVALID_VALUE","INVALID_WORKFLOW_CONFIG","KNOWLEDGE_DOWNLOAD_UNAVAILABLE","KNOWLEDGE_NOT_ENABLED","KNOWLEDGE_NOT_READY","KNOWLEDGE_THREAD_MISMATCH","KNOWLEDGE_UNSUPPORTED_SNAPSHOT_FORMAT","LOOKUP_FIELD_WITHOUT_FILE","METHOD_NOT_ALLOWED","MISSING_API_KEY","MULTIFILE_UNSUPPORTED","NOT_ACCEPTABLE","NOT_ASSIGNED_VERIFIER","NOT_FOUND","NOT_IMPLEMENTED","NOT_IN_DATASET","OBJECT_STORAGE_UNAVAILABLE","ONESHOT_SIGNALS_MISSING","OPERATOR_DEPRECATED","OPERATOR_NOT_AVAILABLE","OPTIMIZATION_ALREADY_RUNNING","PARSE_MODE_FORBIDDEN","PAYMENT_REQUIRED","PRECONDITION_FAILED","RATE_LIMITED","REPARSE_REQUIRED","REQUEST_REJECTED","REQUEST_TOO_LARGE","RUN_IN_PROGRESS","SERVICE_UNAVAILABLE","SPLIT_HAS_NO_PAGES","SPLIT_SOURCE_NOT_PDF","TOPOLOGY_INVALID","UNSUPPORTED_FILE_TYPE","UNSUPPORTED_LOOKUP_FILE","UNSUPPORTED_MEDIA_TYPE","UPLOAD_SNIFF_BUDGET_EXCEEDED","URL_UNREACHABLE","VALIDATION_ERROR","WEBHOOK_SUBSCRIPTION_LIMIT","WORKFLOW_CONCURRENT_EDIT","WORKFLOW_NAME_CONFLICT","ZERO_DATA_RETENTION_REFUSES_DATASET","ZERO_DATA_RETENTION_REFUSES_KNOWLEDGE","ZERO_DATA_RETENTION_REFUSES_RESULTS_QUERY","deprecated_operator_ack_required","insufficient_api_key_scope","terms_acceptance_required"],"description":"Stable identifier for programmatic handling. New values can be added at any time, so a client must accept a code it does not know.","examples":["VALIDATION_ERROR","AUTH_FAILED","NOT_FOUND","PRECONDITION_FAILED","RATE_LIMITED","INTERNAL_ERROR","GATEWAY_TIMEOUT"],"isRequired":true,"uniqueKey":"error_code","typeLabel":"enum\u003cstring>"},"retryable":{"type":"boolean","description":"True when the caller should retry (with backoff for 429/412/5xx).","isRequired":true,"uniqueKey":"retryable","typeLabel":"boolean"},"request_id":{"type":"string","description":"Correlates this response with server logs.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"detail":{"description":"Machine-readable detail, any JSON value. A string for most errors, a list of `{type, loc, msg}` objects for `VALIDATION_ERROR`, whose `loc` starts with `body`, `query`, `path`, `header`, `form` or `tool`, and an object for a structured error such as `FILENAME_CONFLICT` (`detail.conflicts`).","uniqueKey":"detail","typeLabel":"any"},"params":{"type":"object","additionalProperties":true,"description":"Values specific to this occurrence of the error that a caller needs to recover, such as `node_ids` or `required_scope`, keyed by name. Absent when the code relays none.","uniqueKey":"params","typeLabel":"object"},"doc_url":{"type":"string","format":"uri","description":"Link to the documentation of this `error_code`.","uniqueKey":"doc_url","typeLabel":"string\u003curi>"},"recovery":{"type":"string","description":"One sentence that says what to do next. Absent when the `error_code` has none, or when `retryable` differs from the code's usual value.","uniqueKey":"recovery","typeLabel":"string"}},"uniqueKey":"","typeLabel":"ErrorEnvelope · object"},"examples":{"INVALID_API_KEY":{"title":"INVALID_API_KEY","value":{"error":"The API key is not valid.","detail":"The API key is not valid.","error_code":"INVALID_API_KEY","retryable":false,"request_id":"req_abc123","recovery":"Check that the key is complete and has not been revoked, or create a new key."}},"MISSING_API_KEY":{"title":"MISSING_API_KEY","value":{"error":"The request carries no API key.","detail":"The request carries no API key.","error_code":"MISSING_API_KEY","retryable":false,"request_id":"req_abc123","recovery":"Send your API key in the `Authorization: Bearer \u003ckey>` header."}}},"exampleType":"examples"}},"exampleType":"examples"},"d0ab94b5-d340-4645-81ba-90e0ff7892cf":{"description":"Access denied — the API key lacks access to this resource or the scope this call needs (`ACCESS_DENIED`, `insufficient_api_key_scope`).","content":{"application/json":{"schema":{"type":"object","title":"ErrorEnvelope","description":"Uniform error response. `retryable=true` means the same request may succeed on retry (with backoff); `retryable=false` means the caller must change the request before retrying.","required":["error","error_code","retryable","request_id"],"properties":{"error":{"type":"string","description":"Short human-readable summary.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"error_code":{"type":"string","enum":["ACCESS_DENIED","AUTH_FAILED","CONCURRENT_EDIT","CONFLICT","DATASET_DOCUMENT_REJECTED","DATASET_GROUND_TRUTH_SAVE_FAILED","DATASET_INVALID_REQUEST","DATASET_UNSUPPORTED","EMPTY_EVAL","ENDPOINT_RETIRED","EXTRACT_MODE_FORBIDDEN","EXTRACT_NODE_UNRESOLVED","FILENAME_CONFLICT","FILE_TOO_LARGE","GATEWAY_TIMEOUT","GONE","GRAPH_READBACK_FAILED","GT_INVALID","IDEMPOTENCY_KEY_REUSED","IMMUTABLE_WORKFLOW","INSUFFICIENT_CREDIT","INTERNAL_ERROR","INTERNAL_INCONSISTENCY","INVALID_API_KEY","INVALID_JSON","INVALID_LOOKUP_FILE_ENCODING","INVALID_VALUE","INVALID_WORKFLOW_CONFIG","KNOWLEDGE_DOWNLOAD_UNAVAILABLE","KNOWLEDGE_NOT_ENABLED","KNOWLEDGE_NOT_READY","KNOWLEDGE_THREAD_MISMATCH","KNOWLEDGE_UNSUPPORTED_SNAPSHOT_FORMAT","LOOKUP_FIELD_WITHOUT_FILE","METHOD_NOT_ALLOWED","MISSING_API_KEY","MULTIFILE_UNSUPPORTED","NOT_ACCEPTABLE","NOT_ASSIGNED_VERIFIER","NOT_FOUND","NOT_IMPLEMENTED","NOT_IN_DATASET","OBJECT_STORAGE_UNAVAILABLE","ONESHOT_SIGNALS_MISSING","OPERATOR_DEPRECATED","OPERATOR_NOT_AVAILABLE","OPTIMIZATION_ALREADY_RUNNING","PARSE_MODE_FORBIDDEN","PAYMENT_REQUIRED","PRECONDITION_FAILED","RATE_LIMITED","REPARSE_REQUIRED","REQUEST_REJECTED","REQUEST_TOO_LARGE","RUN_IN_PROGRESS","SERVICE_UNAVAILABLE","SPLIT_HAS_NO_PAGES","SPLIT_SOURCE_NOT_PDF","TOPOLOGY_INVALID","UNSUPPORTED_FILE_TYPE","UNSUPPORTED_LOOKUP_FILE","UNSUPPORTED_MEDIA_TYPE","UPLOAD_SNIFF_BUDGET_EXCEEDED","URL_UNREACHABLE","VALIDATION_ERROR","WEBHOOK_SUBSCRIPTION_LIMIT","WORKFLOW_CONCURRENT_EDIT","WORKFLOW_NAME_CONFLICT","ZERO_DATA_RETENTION_REFUSES_DATASET","ZERO_DATA_RETENTION_REFUSES_KNOWLEDGE","ZERO_DATA_RETENTION_REFUSES_RESULTS_QUERY","deprecated_operator_ack_required","insufficient_api_key_scope","terms_acceptance_required"],"description":"Stable identifier for programmatic handling. New values can be added at any time, so a client must accept a code it does not know.","examples":["VALIDATION_ERROR","AUTH_FAILED","NOT_FOUND","PRECONDITION_FAILED","RATE_LIMITED","INTERNAL_ERROR","GATEWAY_TIMEOUT"],"isRequired":true,"uniqueKey":"error_code","typeLabel":"enum\u003cstring>"},"retryable":{"type":"boolean","description":"True when the caller should retry (with backoff for 429/412/5xx).","isRequired":true,"uniqueKey":"retryable","typeLabel":"boolean"},"request_id":{"type":"string","description":"Correlates this response with server logs.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"detail":{"description":"Machine-readable detail, any JSON value. A string for most errors, a list of `{type, loc, msg}` objects for `VALIDATION_ERROR`, whose `loc` starts with `body`, `query`, `path`, `header`, `form` or `tool`, and an object for a structured error such as `FILENAME_CONFLICT` (`detail.conflicts`).","uniqueKey":"detail","typeLabel":"any"},"params":{"type":"object","additionalProperties":true,"description":"Values specific to this occurrence of the error that a caller needs to recover, such as `node_ids` or `required_scope`, keyed by name. Absent when the code relays none.","uniqueKey":"params","typeLabel":"object"},"doc_url":{"type":"string","format":"uri","description":"Link to the documentation of this `error_code`.","uniqueKey":"doc_url","typeLabel":"string\u003curi>"},"recovery":{"type":"string","description":"One sentence that says what to do next. Absent when the `error_code` has none, or when `retryable` differs from the code's usual value.","uniqueKey":"recovery","typeLabel":"string"}},"uniqueKey":"","typeLabel":"ErrorEnvelope · object"},"examples":{"ACCESS_DENIED":{"title":"ACCESS_DENIED","value":{"error":"You do not have access to this resource.","detail":"You do not have access to this resource.","error_code":"ACCESS_DENIED","retryable":false,"request_id":"req_abc123","recovery":"Use an API key from the organization that owns this resource, or ask one of its admins for access."}},"insufficient_api_key_scope":{"title":"insufficient_api_key_scope","value":{"error":"The API key does not carry the scope this call needs.","detail":"The API key does not carry the scope this call needs.","error_code":"insufficient_api_key_scope","retryable":false,"request_id":"req_abc123","recovery":"Create an API key with the scope `params.required_scope` names, and use it for this call."}}},"exampleType":"examples"}},"exampleType":"examples"},"b67b8b07-599c-45fb-bdb1-d93ec7ed67ef":{"description":"Resource not found — the workflow, document packet, or run ID does not exist or is not visible to this API key.","content":{"application/json":{"schema":{"type":"object","title":"ErrorEnvelope","description":"Uniform error response. `retryable=true` means the same request may succeed on retry (with backoff); `retryable=false` means the caller must change the request before retrying.","required":["error","error_code","retryable","request_id"],"properties":{"error":{"type":"string","description":"Short human-readable summary.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"error_code":{"type":"string","enum":["ACCESS_DENIED","AUTH_FAILED","CONCURRENT_EDIT","CONFLICT","DATASET_DOCUMENT_REJECTED","DATASET_GROUND_TRUTH_SAVE_FAILED","DATASET_INVALID_REQUEST","DATASET_UNSUPPORTED","EMPTY_EVAL","ENDPOINT_RETIRED","EXTRACT_MODE_FORBIDDEN","EXTRACT_NODE_UNRESOLVED","FILENAME_CONFLICT","FILE_TOO_LARGE","GATEWAY_TIMEOUT","GONE","GRAPH_READBACK_FAILED","GT_INVALID","IDEMPOTENCY_KEY_REUSED","IMMUTABLE_WORKFLOW","INSUFFICIENT_CREDIT","INTERNAL_ERROR","INTERNAL_INCONSISTENCY","INVALID_API_KEY","INVALID_JSON","INVALID_LOOKUP_FILE_ENCODING","INVALID_VALUE","INVALID_WORKFLOW_CONFIG","KNOWLEDGE_DOWNLOAD_UNAVAILABLE","KNOWLEDGE_NOT_ENABLED","KNOWLEDGE_NOT_READY","KNOWLEDGE_THREAD_MISMATCH","KNOWLEDGE_UNSUPPORTED_SNAPSHOT_FORMAT","LOOKUP_FIELD_WITHOUT_FILE","METHOD_NOT_ALLOWED","MISSING_API_KEY","MULTIFILE_UNSUPPORTED","NOT_ACCEPTABLE","NOT_ASSIGNED_VERIFIER","NOT_FOUND","NOT_IMPLEMENTED","NOT_IN_DATASET","OBJECT_STORAGE_UNAVAILABLE","ONESHOT_SIGNALS_MISSING","OPERATOR_DEPRECATED","OPERATOR_NOT_AVAILABLE","OPTIMIZATION_ALREADY_RUNNING","PARSE_MODE_FORBIDDEN","PAYMENT_REQUIRED","PRECONDITION_FAILED","RATE_LIMITED","REPARSE_REQUIRED","REQUEST_REJECTED","REQUEST_TOO_LARGE","RUN_IN_PROGRESS","SERVICE_UNAVAILABLE","SPLIT_HAS_NO_PAGES","SPLIT_SOURCE_NOT_PDF","TOPOLOGY_INVALID","UNSUPPORTED_FILE_TYPE","UNSUPPORTED_LOOKUP_FILE","UNSUPPORTED_MEDIA_TYPE","UPLOAD_SNIFF_BUDGET_EXCEEDED","URL_UNREACHABLE","VALIDATION_ERROR","WEBHOOK_SUBSCRIPTION_LIMIT","WORKFLOW_CONCURRENT_EDIT","WORKFLOW_NAME_CONFLICT","ZERO_DATA_RETENTION_REFUSES_DATASET","ZERO_DATA_RETENTION_REFUSES_KNOWLEDGE","ZERO_DATA_RETENTION_REFUSES_RESULTS_QUERY","deprecated_operator_ack_required","insufficient_api_key_scope","terms_acceptance_required"],"description":"Stable identifier for programmatic handling. New values can be added at any time, so a client must accept a code it does not know.","examples":["VALIDATION_ERROR","AUTH_FAILED","NOT_FOUND","PRECONDITION_FAILED","RATE_LIMITED","INTERNAL_ERROR","GATEWAY_TIMEOUT"],"isRequired":true,"uniqueKey":"error_code","typeLabel":"enum\u003cstring>"},"retryable":{"type":"boolean","description":"True when the caller should retry (with backoff for 429/412/5xx).","isRequired":true,"uniqueKey":"retryable","typeLabel":"boolean"},"request_id":{"type":"string","description":"Correlates this response with server logs.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"detail":{"description":"Machine-readable detail, any JSON value. A string for most errors, a list of `{type, loc, msg}` objects for `VALIDATION_ERROR`, whose `loc` starts with `body`, `query`, `path`, `header`, `form` or `tool`, and an object for a structured error such as `FILENAME_CONFLICT` (`detail.conflicts`).","uniqueKey":"detail","typeLabel":"any"},"params":{"type":"object","additionalProperties":true,"description":"Values specific to this occurrence of the error that a caller needs to recover, such as `node_ids` or `required_scope`, keyed by name. Absent when the code relays none.","uniqueKey":"params","typeLabel":"object"},"doc_url":{"type":"string","format":"uri","description":"Link to the documentation of this `error_code`.","uniqueKey":"doc_url","typeLabel":"string\u003curi>"},"recovery":{"type":"string","description":"One sentence that says what to do next. Absent when the `error_code` has none, or when `retryable` differs from the code's usual value.","uniqueKey":"recovery","typeLabel":"string"}},"uniqueKey":"","typeLabel":"ErrorEnvelope · object"},"examples":{"NOT_FOUND":{"title":"NOT_FOUND","value":{"error":"The resource does not exist.","detail":"The resource does not exist.","error_code":"NOT_FOUND","retryable":false,"request_id":"req_abc123","recovery":"Check the ID, and that it belongs to your API key's organization; `params.resource_type` names what is missing."}}},"exampleType":"examples"}},"exampleType":"examples"},"1689f014-f7c0-4cb1-ab92-afbaeb72a3a4":{"description":"`FILENAME_CONFLICT` — A file with that name already exists.\n`MULTIFILE_UNSUPPORTED` — This workflow cannot process a multi-file document.","content":{"application/json":{"schema":{"type":"object","title":"ErrorEnvelope","description":"Uniform error response. `retryable=true` means the same request may succeed on retry (with backoff); `retryable=false` means the caller must change the request before retrying.","required":["error","error_code","retryable","request_id"],"properties":{"error":{"type":"string","description":"Short human-readable summary.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"error_code":{"type":"string","enum":["ACCESS_DENIED","AUTH_FAILED","CONCURRENT_EDIT","CONFLICT","DATASET_DOCUMENT_REJECTED","DATASET_GROUND_TRUTH_SAVE_FAILED","DATASET_INVALID_REQUEST","DATASET_UNSUPPORTED","EMPTY_EVAL","ENDPOINT_RETIRED","EXTRACT_MODE_FORBIDDEN","EXTRACT_NODE_UNRESOLVED","FILENAME_CONFLICT","FILE_TOO_LARGE","GATEWAY_TIMEOUT","GONE","GRAPH_READBACK_FAILED","GT_INVALID","IDEMPOTENCY_KEY_REUSED","IMMUTABLE_WORKFLOW","INSUFFICIENT_CREDIT","INTERNAL_ERROR","INTERNAL_INCONSISTENCY","INVALID_API_KEY","INVALID_JSON","INVALID_LOOKUP_FILE_ENCODING","INVALID_VALUE","INVALID_WORKFLOW_CONFIG","KNOWLEDGE_DOWNLOAD_UNAVAILABLE","KNOWLEDGE_NOT_ENABLED","KNOWLEDGE_NOT_READY","KNOWLEDGE_THREAD_MISMATCH","KNOWLEDGE_UNSUPPORTED_SNAPSHOT_FORMAT","LOOKUP_FIELD_WITHOUT_FILE","METHOD_NOT_ALLOWED","MISSING_API_KEY","MULTIFILE_UNSUPPORTED","NOT_ACCEPTABLE","NOT_ASSIGNED_VERIFIER","NOT_FOUND","NOT_IMPLEMENTED","NOT_IN_DATASET","OBJECT_STORAGE_UNAVAILABLE","ONESHOT_SIGNALS_MISSING","OPERATOR_DEPRECATED","OPERATOR_NOT_AVAILABLE","OPTIMIZATION_ALREADY_RUNNING","PARSE_MODE_FORBIDDEN","PAYMENT_REQUIRED","PRECONDITION_FAILED","RATE_LIMITED","REPARSE_REQUIRED","REQUEST_REJECTED","REQUEST_TOO_LARGE","RUN_IN_PROGRESS","SERVICE_UNAVAILABLE","SPLIT_HAS_NO_PAGES","SPLIT_SOURCE_NOT_PDF","TOPOLOGY_INVALID","UNSUPPORTED_FILE_TYPE","UNSUPPORTED_LOOKUP_FILE","UNSUPPORTED_MEDIA_TYPE","UPLOAD_SNIFF_BUDGET_EXCEEDED","URL_UNREACHABLE","VALIDATION_ERROR","WEBHOOK_SUBSCRIPTION_LIMIT","WORKFLOW_CONCURRENT_EDIT","WORKFLOW_NAME_CONFLICT","ZERO_DATA_RETENTION_REFUSES_DATASET","ZERO_DATA_RETENTION_REFUSES_KNOWLEDGE","ZERO_DATA_RETENTION_REFUSES_RESULTS_QUERY","deprecated_operator_ack_required","insufficient_api_key_scope","terms_acceptance_required"],"description":"Stable identifier for programmatic handling. New values can be added at any time, so a client must accept a code it does not know.","examples":["VALIDATION_ERROR","AUTH_FAILED","NOT_FOUND","PRECONDITION_FAILED","RATE_LIMITED","INTERNAL_ERROR","GATEWAY_TIMEOUT"],"isRequired":true,"uniqueKey":"error_code","typeLabel":"enum\u003cstring>"},"retryable":{"type":"boolean","description":"True when the caller should retry (with backoff for 429/412/5xx).","isRequired":true,"uniqueKey":"retryable","typeLabel":"boolean"},"request_id":{"type":"string","description":"Correlates this response with server logs.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"detail":{"description":"Machine-readable detail, any JSON value. A string for most errors, a list of `{type, loc, msg}` objects for `VALIDATION_ERROR`, whose `loc` starts with `body`, `query`, `path`, `header`, `form` or `tool`, and an object for a structured error such as `FILENAME_CONFLICT` (`detail.conflicts`).","uniqueKey":"detail","typeLabel":"any"},"params":{"type":"object","additionalProperties":true,"description":"Values specific to this occurrence of the error that a caller needs to recover, such as `node_ids` or `required_scope`, keyed by name. Absent when the code relays none.","uniqueKey":"params","typeLabel":"object"},"doc_url":{"type":"string","format":"uri","description":"Link to the documentation of this `error_code`.","uniqueKey":"doc_url","typeLabel":"string\u003curi>"},"recovery":{"type":"string","description":"One sentence that says what to do next. Absent when the `error_code` has none, or when `retryable` differs from the code's usual value.","uniqueKey":"recovery","typeLabel":"string"}},"uniqueKey":"","typeLabel":"ErrorEnvelope · object"},"examples":{"FILENAME_CONFLICT":{"title":"FILENAME_CONFLICT","value":{"error":"A file with that name already exists.","detail":"A file with that name already exists.","error_code":"FILENAME_CONFLICT","retryable":false,"request_id":"req_abc123","recovery":"Rename the file, or pass `on_conflict=rename`, and upload it again."}},"MULTIFILE_UNSUPPORTED":{"title":"MULTIFILE_UNSUPPORTED","value":{"error":"This workflow cannot process a multi-file document.","detail":"This workflow cannot process a multi-file document.","error_code":"MULTIFILE_UNSUPPORTED","retryable":false,"request_id":"req_abc123","recovery":"Send each file as its own document packet, or change the nodes in `params.node_ids`: turn agentic mode off on an extract node, or keep a single parse node."}}},"exampleType":"examples"}},"exampleType":"examples"},"4304f82b-6e3b-4318-aef1-3a7e47f1afd7":{"description":"`REQUEST_TOO_LARGE` — The request body is larger than the maximum allowed size.","content":{"application/json":{"schema":{"type":"object","title":"ErrorEnvelope","description":"Uniform error response. `retryable=true` means the same request may succeed on retry (with backoff); `retryable=false` means the caller must change the request before retrying.","required":["error","error_code","retryable","request_id"],"properties":{"error":{"type":"string","description":"Short human-readable summary.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"error_code":{"type":"string","enum":["ACCESS_DENIED","AUTH_FAILED","CONCURRENT_EDIT","CONFLICT","DATASET_DOCUMENT_REJECTED","DATASET_GROUND_TRUTH_SAVE_FAILED","DATASET_INVALID_REQUEST","DATASET_UNSUPPORTED","EMPTY_EVAL","ENDPOINT_RETIRED","EXTRACT_MODE_FORBIDDEN","EXTRACT_NODE_UNRESOLVED","FILENAME_CONFLICT","FILE_TOO_LARGE","GATEWAY_TIMEOUT","GONE","GRAPH_READBACK_FAILED","GT_INVALID","IDEMPOTENCY_KEY_REUSED","IMMUTABLE_WORKFLOW","INSUFFICIENT_CREDIT","INTERNAL_ERROR","INTERNAL_INCONSISTENCY","INVALID_API_KEY","INVALID_JSON","INVALID_LOOKUP_FILE_ENCODING","INVALID_VALUE","INVALID_WORKFLOW_CONFIG","KNOWLEDGE_DOWNLOAD_UNAVAILABLE","KNOWLEDGE_NOT_ENABLED","KNOWLEDGE_NOT_READY","KNOWLEDGE_THREAD_MISMATCH","KNOWLEDGE_UNSUPPORTED_SNAPSHOT_FORMAT","LOOKUP_FIELD_WITHOUT_FILE","METHOD_NOT_ALLOWED","MISSING_API_KEY","MULTIFILE_UNSUPPORTED","NOT_ACCEPTABLE","NOT_ASSIGNED_VERIFIER","NOT_FOUND","NOT_IMPLEMENTED","NOT_IN_DATASET","OBJECT_STORAGE_UNAVAILABLE","ONESHOT_SIGNALS_MISSING","OPERATOR_DEPRECATED","OPERATOR_NOT_AVAILABLE","OPTIMIZATION_ALREADY_RUNNING","PARSE_MODE_FORBIDDEN","PAYMENT_REQUIRED","PRECONDITION_FAILED","RATE_LIMITED","REPARSE_REQUIRED","REQUEST_REJECTED","REQUEST_TOO_LARGE","RUN_IN_PROGRESS","SERVICE_UNAVAILABLE","SPLIT_HAS_NO_PAGES","SPLIT_SOURCE_NOT_PDF","TOPOLOGY_INVALID","UNSUPPORTED_FILE_TYPE","UNSUPPORTED_LOOKUP_FILE","UNSUPPORTED_MEDIA_TYPE","UPLOAD_SNIFF_BUDGET_EXCEEDED","URL_UNREACHABLE","VALIDATION_ERROR","WEBHOOK_SUBSCRIPTION_LIMIT","WORKFLOW_CONCURRENT_EDIT","WORKFLOW_NAME_CONFLICT","ZERO_DATA_RETENTION_REFUSES_DATASET","ZERO_DATA_RETENTION_REFUSES_KNOWLEDGE","ZERO_DATA_RETENTION_REFUSES_RESULTS_QUERY","deprecated_operator_ack_required","insufficient_api_key_scope","terms_acceptance_required"],"description":"Stable identifier for programmatic handling. New values can be added at any time, so a client must accept a code it does not know.","examples":["VALIDATION_ERROR","AUTH_FAILED","NOT_FOUND","PRECONDITION_FAILED","RATE_LIMITED","INTERNAL_ERROR","GATEWAY_TIMEOUT"],"isRequired":true,"uniqueKey":"error_code","typeLabel":"enum\u003cstring>"},"retryable":{"type":"boolean","description":"True when the caller should retry (with backoff for 429/412/5xx).","isRequired":true,"uniqueKey":"retryable","typeLabel":"boolean"},"request_id":{"type":"string","description":"Correlates this response with server logs.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"detail":{"description":"Machine-readable detail, any JSON value. A string for most errors, a list of `{type, loc, msg}` objects for `VALIDATION_ERROR`, whose `loc` starts with `body`, `query`, `path`, `header`, `form` or `tool`, and an object for a structured error such as `FILENAME_CONFLICT` (`detail.conflicts`).","uniqueKey":"detail","typeLabel":"any"},"params":{"type":"object","additionalProperties":true,"description":"Values specific to this occurrence of the error that a caller needs to recover, such as `node_ids` or `required_scope`, keyed by name. Absent when the code relays none.","uniqueKey":"params","typeLabel":"object"},"doc_url":{"type":"string","format":"uri","description":"Link to the documentation of this `error_code`.","uniqueKey":"doc_url","typeLabel":"string\u003curi>"},"recovery":{"type":"string","description":"One sentence that says what to do next. Absent when the `error_code` has none, or when `retryable` differs from the code's usual value.","uniqueKey":"recovery","typeLabel":"string"}},"uniqueKey":"","typeLabel":"ErrorEnvelope · object"},"examples":{"REQUEST_TOO_LARGE":{"title":"REQUEST_TOO_LARGE","value":{"error":"The request body is larger than the maximum allowed size.","detail":"The request body is larger than the maximum allowed size.","error_code":"REQUEST_TOO_LARGE","retryable":false,"request_id":"req_abc123","recovery":"Send a request, and a file, smaller than `params.max_bytes` bytes."}}},"exampleType":"examples"}},"exampleType":"examples"},"945daf51-25e7-45d3-a572-ac1479084020":{"description":"`DATASET_DOCUMENT_REJECTED` — A file in the dataset document was rejected.\n`IDEMPOTENCY_KEY_REUSED` — The idempotency key was already used with a different request.","content":{"application/json":{"schema":{"type":"object","title":"ErrorEnvelope","description":"Uniform error response. `retryable=true` means the same request may succeed on retry (with backoff); `retryable=false` means the caller must change the request before retrying.","required":["error","error_code","retryable","request_id"],"properties":{"error":{"type":"string","description":"Short human-readable summary.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"error_code":{"type":"string","enum":["ACCESS_DENIED","AUTH_FAILED","CONCURRENT_EDIT","CONFLICT","DATASET_DOCUMENT_REJECTED","DATASET_GROUND_TRUTH_SAVE_FAILED","DATASET_INVALID_REQUEST","DATASET_UNSUPPORTED","EMPTY_EVAL","ENDPOINT_RETIRED","EXTRACT_MODE_FORBIDDEN","EXTRACT_NODE_UNRESOLVED","FILENAME_CONFLICT","FILE_TOO_LARGE","GATEWAY_TIMEOUT","GONE","GRAPH_READBACK_FAILED","GT_INVALID","IDEMPOTENCY_KEY_REUSED","IMMUTABLE_WORKFLOW","INSUFFICIENT_CREDIT","INTERNAL_ERROR","INTERNAL_INCONSISTENCY","INVALID_API_KEY","INVALID_JSON","INVALID_LOOKUP_FILE_ENCODING","INVALID_VALUE","INVALID_WORKFLOW_CONFIG","KNOWLEDGE_DOWNLOAD_UNAVAILABLE","KNOWLEDGE_NOT_ENABLED","KNOWLEDGE_NOT_READY","KNOWLEDGE_THREAD_MISMATCH","KNOWLEDGE_UNSUPPORTED_SNAPSHOT_FORMAT","LOOKUP_FIELD_WITHOUT_FILE","METHOD_NOT_ALLOWED","MISSING_API_KEY","MULTIFILE_UNSUPPORTED","NOT_ACCEPTABLE","NOT_ASSIGNED_VERIFIER","NOT_FOUND","NOT_IMPLEMENTED","NOT_IN_DATASET","OBJECT_STORAGE_UNAVAILABLE","ONESHOT_SIGNALS_MISSING","OPERATOR_DEPRECATED","OPERATOR_NOT_AVAILABLE","OPTIMIZATION_ALREADY_RUNNING","PARSE_MODE_FORBIDDEN","PAYMENT_REQUIRED","PRECONDITION_FAILED","RATE_LIMITED","REPARSE_REQUIRED","REQUEST_REJECTED","REQUEST_TOO_LARGE","RUN_IN_PROGRESS","SERVICE_UNAVAILABLE","SPLIT_HAS_NO_PAGES","SPLIT_SOURCE_NOT_PDF","TOPOLOGY_INVALID","UNSUPPORTED_FILE_TYPE","UNSUPPORTED_LOOKUP_FILE","UNSUPPORTED_MEDIA_TYPE","UPLOAD_SNIFF_BUDGET_EXCEEDED","URL_UNREACHABLE","VALIDATION_ERROR","WEBHOOK_SUBSCRIPTION_LIMIT","WORKFLOW_CONCURRENT_EDIT","WORKFLOW_NAME_CONFLICT","ZERO_DATA_RETENTION_REFUSES_DATASET","ZERO_DATA_RETENTION_REFUSES_KNOWLEDGE","ZERO_DATA_RETENTION_REFUSES_RESULTS_QUERY","deprecated_operator_ack_required","insufficient_api_key_scope","terms_acceptance_required"],"description":"Stable identifier for programmatic handling. New values can be added at any time, so a client must accept a code it does not know.","examples":["VALIDATION_ERROR","AUTH_FAILED","NOT_FOUND","PRECONDITION_FAILED","RATE_LIMITED","INTERNAL_ERROR","GATEWAY_TIMEOUT"],"isRequired":true,"uniqueKey":"error_code","typeLabel":"enum\u003cstring>"},"retryable":{"type":"boolean","description":"True when the caller should retry (with backoff for 429/412/5xx).","isRequired":true,"uniqueKey":"retryable","typeLabel":"boolean"},"request_id":{"type":"string","description":"Correlates this response with server logs.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"detail":{"description":"Machine-readable detail, any JSON value. A string for most errors, a list of `{type, loc, msg}` objects for `VALIDATION_ERROR`, whose `loc` starts with `body`, `query`, `path`, `header`, `form` or `tool`, and an object for a structured error such as `FILENAME_CONFLICT` (`detail.conflicts`).","uniqueKey":"detail","typeLabel":"any"},"params":{"type":"object","additionalProperties":true,"description":"Values specific to this occurrence of the error that a caller needs to recover, such as `node_ids` or `required_scope`, keyed by name. Absent when the code relays none.","uniqueKey":"params","typeLabel":"object"},"doc_url":{"type":"string","format":"uri","description":"Link to the documentation of this `error_code`.","uniqueKey":"doc_url","typeLabel":"string\u003curi>"},"recovery":{"type":"string","description":"One sentence that says what to do next. Absent when the `error_code` has none, or when `retryable` differs from the code's usual value.","uniqueKey":"recovery","typeLabel":"string"}},"uniqueKey":"","typeLabel":"ErrorEnvelope · object"},"examples":{"DATASET_DOCUMENT_REJECTED":{"title":"DATASET_DOCUMENT_REJECTED","value":{"error":"A file in the dataset document was rejected.","detail":"A file in the dataset document was rejected.","error_code":"DATASET_DOCUMENT_REJECTED","retryable":false,"request_id":"req_abc123","recovery":"Read `detail` for the file that was rejected, fix or remove it, and register the document again."}},"IDEMPOTENCY_KEY_REUSED":{"title":"IDEMPOTENCY_KEY_REUSED","value":{"error":"The idempotency key was already used with a different request.","detail":"The idempotency key was already used with a different request.","error_code":"IDEMPOTENCY_KEY_REUSED","retryable":false,"request_id":"req_abc123","recovery":"Resend the original request unchanged to get its result, or read the resource it created from `params.resource_id`; use a new `Idempotency-Key` only for a genuinely new request."}}},"exampleType":"examples"}},"exampleType":"examples"},"1cd9a1a9-f6a7-4c4d-9776-2994576e2d14":{"description":"Rate limited — retry after the `Retry-After` header. Default windows: 60 requests/minute for extraction submission, 600 requests/minute for general endpoints.","headers":{"Retry-After":{"description":"Seconds until the next request is allowed.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Requests allowed per window (60s).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the current window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","title":"ErrorEnvelope","description":"Uniform error response. `retryable=true` means the same request may succeed on retry (with backoff); `retryable=false` means the caller must change the request before retrying.","required":["error","error_code","retryable","request_id"],"properties":{"error":{"type":"string","description":"Short human-readable summary.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"error_code":{"type":"string","enum":["ACCESS_DENIED","AUTH_FAILED","CONCURRENT_EDIT","CONFLICT","DATASET_DOCUMENT_REJECTED","DATASET_GROUND_TRUTH_SAVE_FAILED","DATASET_INVALID_REQUEST","DATASET_UNSUPPORTED","EMPTY_EVAL","ENDPOINT_RETIRED","EXTRACT_MODE_FORBIDDEN","EXTRACT_NODE_UNRESOLVED","FILENAME_CONFLICT","FILE_TOO_LARGE","GATEWAY_TIMEOUT","GONE","GRAPH_READBACK_FAILED","GT_INVALID","IDEMPOTENCY_KEY_REUSED","IMMUTABLE_WORKFLOW","INSUFFICIENT_CREDIT","INTERNAL_ERROR","INTERNAL_INCONSISTENCY","INVALID_API_KEY","INVALID_JSON","INVALID_LOOKUP_FILE_ENCODING","INVALID_VALUE","INVALID_WORKFLOW_CONFIG","KNOWLEDGE_DOWNLOAD_UNAVAILABLE","KNOWLEDGE_NOT_ENABLED","KNOWLEDGE_NOT_READY","KNOWLEDGE_THREAD_MISMATCH","KNOWLEDGE_UNSUPPORTED_SNAPSHOT_FORMAT","LOOKUP_FIELD_WITHOUT_FILE","METHOD_NOT_ALLOWED","MISSING_API_KEY","MULTIFILE_UNSUPPORTED","NOT_ACCEPTABLE","NOT_ASSIGNED_VERIFIER","NOT_FOUND","NOT_IMPLEMENTED","NOT_IN_DATASET","OBJECT_STORAGE_UNAVAILABLE","ONESHOT_SIGNALS_MISSING","OPERATOR_DEPRECATED","OPERATOR_NOT_AVAILABLE","OPTIMIZATION_ALREADY_RUNNING","PARSE_MODE_FORBIDDEN","PAYMENT_REQUIRED","PRECONDITION_FAILED","RATE_LIMITED","REPARSE_REQUIRED","REQUEST_REJECTED","REQUEST_TOO_LARGE","RUN_IN_PROGRESS","SERVICE_UNAVAILABLE","SPLIT_HAS_NO_PAGES","SPLIT_SOURCE_NOT_PDF","TOPOLOGY_INVALID","UNSUPPORTED_FILE_TYPE","UNSUPPORTED_LOOKUP_FILE","UNSUPPORTED_MEDIA_TYPE","UPLOAD_SNIFF_BUDGET_EXCEEDED","URL_UNREACHABLE","VALIDATION_ERROR","WEBHOOK_SUBSCRIPTION_LIMIT","WORKFLOW_CONCURRENT_EDIT","WORKFLOW_NAME_CONFLICT","ZERO_DATA_RETENTION_REFUSES_DATASET","ZERO_DATA_RETENTION_REFUSES_KNOWLEDGE","ZERO_DATA_RETENTION_REFUSES_RESULTS_QUERY","deprecated_operator_ack_required","insufficient_api_key_scope","terms_acceptance_required"],"description":"Stable identifier for programmatic handling. New values can be added at any time, so a client must accept a code it does not know.","examples":["VALIDATION_ERROR","AUTH_FAILED","NOT_FOUND","PRECONDITION_FAILED","RATE_LIMITED","INTERNAL_ERROR","GATEWAY_TIMEOUT"],"isRequired":true,"uniqueKey":"error_code","typeLabel":"enum\u003cstring>"},"retryable":{"type":"boolean","description":"True when the caller should retry (with backoff for 429/412/5xx).","isRequired":true,"uniqueKey":"retryable","typeLabel":"boolean"},"request_id":{"type":"string","description":"Correlates this response with server logs.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"detail":{"description":"Machine-readable detail, any JSON value. A string for most errors, a list of `{type, loc, msg}` objects for `VALIDATION_ERROR`, whose `loc` starts with `body`, `query`, `path`, `header`, `form` or `tool`, and an object for a structured error such as `FILENAME_CONFLICT` (`detail.conflicts`).","uniqueKey":"detail","typeLabel":"any"},"params":{"type":"object","additionalProperties":true,"description":"Values specific to this occurrence of the error that a caller needs to recover, such as `node_ids` or `required_scope`, keyed by name. Absent when the code relays none.","uniqueKey":"params","typeLabel":"object"},"doc_url":{"type":"string","format":"uri","description":"Link to the documentation of this `error_code`.","uniqueKey":"doc_url","typeLabel":"string\u003curi>"},"recovery":{"type":"string","description":"One sentence that says what to do next. Absent when the `error_code` has none, or when `retryable` differs from the code's usual value.","uniqueKey":"recovery","typeLabel":"string"}},"uniqueKey":"","typeLabel":"ErrorEnvelope · object"},"examples":{"RATE_LIMITED":{"title":"RATE_LIMITED","value":{"error":"Too many requests.","detail":"Too many requests.","error_code":"RATE_LIMITED","retryable":true,"request_id":"req_abc123","recovery":"Wait the seconds the `Retry-After` header gives, or back off exponentially without one, then retry."}}},"exampleType":"examples"}},"exampleType":"examples"},"ddd588ec-5dc9-4683-8934-f127174b203d":{"description":"An internal error stopped the request — `retryable=true`. Retry with backoff.","content":{"application/json":{"schema":{"type":"object","title":"ErrorEnvelope","description":"Uniform error response. `retryable=true` means the same request may succeed on retry (with backoff); `retryable=false` means the caller must change the request before retrying.","required":["error","error_code","retryable","request_id"],"properties":{"error":{"type":"string","description":"Short human-readable summary.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"error_code":{"type":"string","enum":["ACCESS_DENIED","AUTH_FAILED","CONCURRENT_EDIT","CONFLICT","DATASET_DOCUMENT_REJECTED","DATASET_GROUND_TRUTH_SAVE_FAILED","DATASET_INVALID_REQUEST","DATASET_UNSUPPORTED","EMPTY_EVAL","ENDPOINT_RETIRED","EXTRACT_MODE_FORBIDDEN","EXTRACT_NODE_UNRESOLVED","FILENAME_CONFLICT","FILE_TOO_LARGE","GATEWAY_TIMEOUT","GONE","GRAPH_READBACK_FAILED","GT_INVALID","IDEMPOTENCY_KEY_REUSED","IMMUTABLE_WORKFLOW","INSUFFICIENT_CREDIT","INTERNAL_ERROR","INTERNAL_INCONSISTENCY","INVALID_API_KEY","INVALID_JSON","INVALID_LOOKUP_FILE_ENCODING","INVALID_VALUE","INVALID_WORKFLOW_CONFIG","KNOWLEDGE_DOWNLOAD_UNAVAILABLE","KNOWLEDGE_NOT_ENABLED","KNOWLEDGE_NOT_READY","KNOWLEDGE_THREAD_MISMATCH","KNOWLEDGE_UNSUPPORTED_SNAPSHOT_FORMAT","LOOKUP_FIELD_WITHOUT_FILE","METHOD_NOT_ALLOWED","MISSING_API_KEY","MULTIFILE_UNSUPPORTED","NOT_ACCEPTABLE","NOT_ASSIGNED_VERIFIER","NOT_FOUND","NOT_IMPLEMENTED","NOT_IN_DATASET","OBJECT_STORAGE_UNAVAILABLE","ONESHOT_SIGNALS_MISSING","OPERATOR_DEPRECATED","OPERATOR_NOT_AVAILABLE","OPTIMIZATION_ALREADY_RUNNING","PARSE_MODE_FORBIDDEN","PAYMENT_REQUIRED","PRECONDITION_FAILED","RATE_LIMITED","REPARSE_REQUIRED","REQUEST_REJECTED","REQUEST_TOO_LARGE","RUN_IN_PROGRESS","SERVICE_UNAVAILABLE","SPLIT_HAS_NO_PAGES","SPLIT_SOURCE_NOT_PDF","TOPOLOGY_INVALID","UNSUPPORTED_FILE_TYPE","UNSUPPORTED_LOOKUP_FILE","UNSUPPORTED_MEDIA_TYPE","UPLOAD_SNIFF_BUDGET_EXCEEDED","URL_UNREACHABLE","VALIDATION_ERROR","WEBHOOK_SUBSCRIPTION_LIMIT","WORKFLOW_CONCURRENT_EDIT","WORKFLOW_NAME_CONFLICT","ZERO_DATA_RETENTION_REFUSES_DATASET","ZERO_DATA_RETENTION_REFUSES_KNOWLEDGE","ZERO_DATA_RETENTION_REFUSES_RESULTS_QUERY","deprecated_operator_ack_required","insufficient_api_key_scope","terms_acceptance_required"],"description":"Stable identifier for programmatic handling. New values can be added at any time, so a client must accept a code it does not know.","examples":["VALIDATION_ERROR","AUTH_FAILED","NOT_FOUND","PRECONDITION_FAILED","RATE_LIMITED","INTERNAL_ERROR","GATEWAY_TIMEOUT"],"isRequired":true,"uniqueKey":"error_code","typeLabel":"enum\u003cstring>"},"retryable":{"type":"boolean","description":"True when the caller should retry (with backoff for 429/412/5xx).","isRequired":true,"uniqueKey":"retryable","typeLabel":"boolean"},"request_id":{"type":"string","description":"Correlates this response with server logs.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"detail":{"description":"Machine-readable detail, any JSON value. A string for most errors, a list of `{type, loc, msg}` objects for `VALIDATION_ERROR`, whose `loc` starts with `body`, `query`, `path`, `header`, `form` or `tool`, and an object for a structured error such as `FILENAME_CONFLICT` (`detail.conflicts`).","uniqueKey":"detail","typeLabel":"any"},"params":{"type":"object","additionalProperties":true,"description":"Values specific to this occurrence of the error that a caller needs to recover, such as `node_ids` or `required_scope`, keyed by name. Absent when the code relays none.","uniqueKey":"params","typeLabel":"object"},"doc_url":{"type":"string","format":"uri","description":"Link to the documentation of this `error_code`.","uniqueKey":"doc_url","typeLabel":"string\u003curi>"},"recovery":{"type":"string","description":"One sentence that says what to do next. Absent when the `error_code` has none, or when `retryable` differs from the code's usual value.","uniqueKey":"recovery","typeLabel":"string"}},"uniqueKey":"","typeLabel":"ErrorEnvelope · object"},"examples":{"INTERNAL_ERROR":{"title":"INTERNAL_ERROR","value":{"error":"An internal error stopped the request.","detail":"An internal error stopped the request.","error_code":"INTERNAL_ERROR","retryable":true,"request_id":"req_abc123","recovery":"Retry with exponential backoff, and contact support with the `request_id` if it keeps failing."}}},"exampleType":"examples"}},"exampleType":"examples"},"af3cd2ed-3b1b-4fef-a6bd-6733cf7639e2":{"description":"`OBJECT_STORAGE_UNAVAILABLE` — Object storage did not complete the request.","content":{"application/json":{"schema":{"type":"object","title":"ErrorEnvelope","description":"Uniform error response. `retryable=true` means the same request may succeed on retry (with backoff); `retryable=false` means the caller must change the request before retrying.","required":["error","error_code","retryable","request_id"],"properties":{"error":{"type":"string","description":"Short human-readable summary.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"error_code":{"type":"string","enum":["ACCESS_DENIED","AUTH_FAILED","CONCURRENT_EDIT","CONFLICT","DATASET_DOCUMENT_REJECTED","DATASET_GROUND_TRUTH_SAVE_FAILED","DATASET_INVALID_REQUEST","DATASET_UNSUPPORTED","EMPTY_EVAL","ENDPOINT_RETIRED","EXTRACT_MODE_FORBIDDEN","EXTRACT_NODE_UNRESOLVED","FILENAME_CONFLICT","FILE_TOO_LARGE","GATEWAY_TIMEOUT","GONE","GRAPH_READBACK_FAILED","GT_INVALID","IDEMPOTENCY_KEY_REUSED","IMMUTABLE_WORKFLOW","INSUFFICIENT_CREDIT","INTERNAL_ERROR","INTERNAL_INCONSISTENCY","INVALID_API_KEY","INVALID_JSON","INVALID_LOOKUP_FILE_ENCODING","INVALID_VALUE","INVALID_WORKFLOW_CONFIG","KNOWLEDGE_DOWNLOAD_UNAVAILABLE","KNOWLEDGE_NOT_ENABLED","KNOWLEDGE_NOT_READY","KNOWLEDGE_THREAD_MISMATCH","KNOWLEDGE_UNSUPPORTED_SNAPSHOT_FORMAT","LOOKUP_FIELD_WITHOUT_FILE","METHOD_NOT_ALLOWED","MISSING_API_KEY","MULTIFILE_UNSUPPORTED","NOT_ACCEPTABLE","NOT_ASSIGNED_VERIFIER","NOT_FOUND","NOT_IMPLEMENTED","NOT_IN_DATASET","OBJECT_STORAGE_UNAVAILABLE","ONESHOT_SIGNALS_MISSING","OPERATOR_DEPRECATED","OPERATOR_NOT_AVAILABLE","OPTIMIZATION_ALREADY_RUNNING","PARSE_MODE_FORBIDDEN","PAYMENT_REQUIRED","PRECONDITION_FAILED","RATE_LIMITED","REPARSE_REQUIRED","REQUEST_REJECTED","REQUEST_TOO_LARGE","RUN_IN_PROGRESS","SERVICE_UNAVAILABLE","SPLIT_HAS_NO_PAGES","SPLIT_SOURCE_NOT_PDF","TOPOLOGY_INVALID","UNSUPPORTED_FILE_TYPE","UNSUPPORTED_LOOKUP_FILE","UNSUPPORTED_MEDIA_TYPE","UPLOAD_SNIFF_BUDGET_EXCEEDED","URL_UNREACHABLE","VALIDATION_ERROR","WEBHOOK_SUBSCRIPTION_LIMIT","WORKFLOW_CONCURRENT_EDIT","WORKFLOW_NAME_CONFLICT","ZERO_DATA_RETENTION_REFUSES_DATASET","ZERO_DATA_RETENTION_REFUSES_KNOWLEDGE","ZERO_DATA_RETENTION_REFUSES_RESULTS_QUERY","deprecated_operator_ack_required","insufficient_api_key_scope","terms_acceptance_required"],"description":"Stable identifier for programmatic handling. New values can be added at any time, so a client must accept a code it does not know.","examples":["VALIDATION_ERROR","AUTH_FAILED","NOT_FOUND","PRECONDITION_FAILED","RATE_LIMITED","INTERNAL_ERROR","GATEWAY_TIMEOUT"],"isRequired":true,"uniqueKey":"error_code","typeLabel":"enum\u003cstring>"},"retryable":{"type":"boolean","description":"True when the caller should retry (with backoff for 429/412/5xx).","isRequired":true,"uniqueKey":"retryable","typeLabel":"boolean"},"request_id":{"type":"string","description":"Correlates this response with server logs.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"detail":{"description":"Machine-readable detail, any JSON value. A string for most errors, a list of `{type, loc, msg}` objects for `VALIDATION_ERROR`, whose `loc` starts with `body`, `query`, `path`, `header`, `form` or `tool`, and an object for a structured error such as `FILENAME_CONFLICT` (`detail.conflicts`).","uniqueKey":"detail","typeLabel":"any"},"params":{"type":"object","additionalProperties":true,"description":"Values specific to this occurrence of the error that a caller needs to recover, such as `node_ids` or `required_scope`, keyed by name. Absent when the code relays none.","uniqueKey":"params","typeLabel":"object"},"doc_url":{"type":"string","format":"uri","description":"Link to the documentation of this `error_code`.","uniqueKey":"doc_url","typeLabel":"string\u003curi>"},"recovery":{"type":"string","description":"One sentence that says what to do next. Absent when the `error_code` has none, or when `retryable` differs from the code's usual value.","uniqueKey":"recovery","typeLabel":"string"}},"uniqueKey":"","typeLabel":"ErrorEnvelope · object"},"examples":{"OBJECT_STORAGE_UNAVAILABLE":{"title":"OBJECT_STORAGE_UNAVAILABLE","value":{"error":"Object storage did not complete the request.","detail":"Object storage did not complete the request.","error_code":"OBJECT_STORAGE_UNAVAILABLE","retryable":true,"request_id":"req_abc123","recovery":"Retry the request with exponential backoff."}},"INTERNAL_ERROR":{"title":"INTERNAL_ERROR","value":{"error":"An internal error stopped the request.","detail":"An internal error stopped the request.","error_code":"INTERNAL_ERROR","retryable":true,"request_id":"req_abc123","recovery":"Retry with exponential backoff, and contact support with the `request_id` if it keeps failing."}}},"exampleType":"examples"}},"exampleType":"examples"},"2e4c794e-12da-403c-8189-a5e4a37faec0":{"description":"A backend service could not be reached or is unavailable (`SERVICE_UNAVAILABLE`). Retry with backoff when `retryable` is true.","content":{"application/json":{"schema":{"type":"object","title":"ErrorEnvelope","description":"Uniform error response. `retryable=true` means the same request may succeed on retry (with backoff); `retryable=false` means the caller must change the request before retrying.","required":["error","error_code","retryable","request_id"],"properties":{"error":{"type":"string","description":"Short human-readable summary.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"error_code":{"type":"string","enum":["ACCESS_DENIED","AUTH_FAILED","CONCURRENT_EDIT","CONFLICT","DATASET_DOCUMENT_REJECTED","DATASET_GROUND_TRUTH_SAVE_FAILED","DATASET_INVALID_REQUEST","DATASET_UNSUPPORTED","EMPTY_EVAL","ENDPOINT_RETIRED","EXTRACT_MODE_FORBIDDEN","EXTRACT_NODE_UNRESOLVED","FILENAME_CONFLICT","FILE_TOO_LARGE","GATEWAY_TIMEOUT","GONE","GRAPH_READBACK_FAILED","GT_INVALID","IDEMPOTENCY_KEY_REUSED","IMMUTABLE_WORKFLOW","INSUFFICIENT_CREDIT","INTERNAL_ERROR","INTERNAL_INCONSISTENCY","INVALID_API_KEY","INVALID_JSON","INVALID_LOOKUP_FILE_ENCODING","INVALID_VALUE","INVALID_WORKFLOW_CONFIG","KNOWLEDGE_DOWNLOAD_UNAVAILABLE","KNOWLEDGE_NOT_ENABLED","KNOWLEDGE_NOT_READY","KNOWLEDGE_THREAD_MISMATCH","KNOWLEDGE_UNSUPPORTED_SNAPSHOT_FORMAT","LOOKUP_FIELD_WITHOUT_FILE","METHOD_NOT_ALLOWED","MISSING_API_KEY","MULTIFILE_UNSUPPORTED","NOT_ACCEPTABLE","NOT_ASSIGNED_VERIFIER","NOT_FOUND","NOT_IMPLEMENTED","NOT_IN_DATASET","OBJECT_STORAGE_UNAVAILABLE","ONESHOT_SIGNALS_MISSING","OPERATOR_DEPRECATED","OPERATOR_NOT_AVAILABLE","OPTIMIZATION_ALREADY_RUNNING","PARSE_MODE_FORBIDDEN","PAYMENT_REQUIRED","PRECONDITION_FAILED","RATE_LIMITED","REPARSE_REQUIRED","REQUEST_REJECTED","REQUEST_TOO_LARGE","RUN_IN_PROGRESS","SERVICE_UNAVAILABLE","SPLIT_HAS_NO_PAGES","SPLIT_SOURCE_NOT_PDF","TOPOLOGY_INVALID","UNSUPPORTED_FILE_TYPE","UNSUPPORTED_LOOKUP_FILE","UNSUPPORTED_MEDIA_TYPE","UPLOAD_SNIFF_BUDGET_EXCEEDED","URL_UNREACHABLE","VALIDATION_ERROR","WEBHOOK_SUBSCRIPTION_LIMIT","WORKFLOW_CONCURRENT_EDIT","WORKFLOW_NAME_CONFLICT","ZERO_DATA_RETENTION_REFUSES_DATASET","ZERO_DATA_RETENTION_REFUSES_KNOWLEDGE","ZERO_DATA_RETENTION_REFUSES_RESULTS_QUERY","deprecated_operator_ack_required","insufficient_api_key_scope","terms_acceptance_required"],"description":"Stable identifier for programmatic handling. New values can be added at any time, so a client must accept a code it does not know.","examples":["VALIDATION_ERROR","AUTH_FAILED","NOT_FOUND","PRECONDITION_FAILED","RATE_LIMITED","INTERNAL_ERROR","GATEWAY_TIMEOUT"],"isRequired":true,"uniqueKey":"error_code","typeLabel":"enum\u003cstring>"},"retryable":{"type":"boolean","description":"True when the caller should retry (with backoff for 429/412/5xx).","isRequired":true,"uniqueKey":"retryable","typeLabel":"boolean"},"request_id":{"type":"string","description":"Correlates this response with server logs.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"detail":{"description":"Machine-readable detail, any JSON value. A string for most errors, a list of `{type, loc, msg}` objects for `VALIDATION_ERROR`, whose `loc` starts with `body`, `query`, `path`, `header`, `form` or `tool`, and an object for a structured error such as `FILENAME_CONFLICT` (`detail.conflicts`).","uniqueKey":"detail","typeLabel":"any"},"params":{"type":"object","additionalProperties":true,"description":"Values specific to this occurrence of the error that a caller needs to recover, such as `node_ids` or `required_scope`, keyed by name. Absent when the code relays none.","uniqueKey":"params","typeLabel":"object"},"doc_url":{"type":"string","format":"uri","description":"Link to the documentation of this `error_code`.","uniqueKey":"doc_url","typeLabel":"string\u003curi>"},"recovery":{"type":"string","description":"One sentence that says what to do next. Absent when the `error_code` has none, or when `retryable` differs from the code's usual value.","uniqueKey":"recovery","typeLabel":"string"}},"uniqueKey":"","typeLabel":"ErrorEnvelope · object"},"examples":{"SERVICE_UNAVAILABLE":{"title":"SERVICE_UNAVAILABLE","value":{"error":"The service is temporarily unavailable.","detail":"The service is temporarily unavailable.","error_code":"SERVICE_UNAVAILABLE","retryable":true,"request_id":"req_abc123","recovery":"Retry the request with exponential backoff."}}},"exampleType":"examples"}},"exampleType":"examples"},"cba827fc-6953-41e1-9b58-93ce4ef5109f":{"description":"A backend service did not answer in time. Retry with backoff when `retryable` is true.","content":{"application/json":{"schema":{"type":"object","title":"ErrorEnvelope","description":"Uniform error response. `retryable=true` means the same request may succeed on retry (with backoff); `retryable=false` means the caller must change the request before retrying.","required":["error","error_code","retryable","request_id"],"properties":{"error":{"type":"string","description":"Short human-readable summary.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"error_code":{"type":"string","enum":["ACCESS_DENIED","AUTH_FAILED","CONCURRENT_EDIT","CONFLICT","DATASET_DOCUMENT_REJECTED","DATASET_GROUND_TRUTH_SAVE_FAILED","DATASET_INVALID_REQUEST","DATASET_UNSUPPORTED","EMPTY_EVAL","ENDPOINT_RETIRED","EXTRACT_MODE_FORBIDDEN","EXTRACT_NODE_UNRESOLVED","FILENAME_CONFLICT","FILE_TOO_LARGE","GATEWAY_TIMEOUT","GONE","GRAPH_READBACK_FAILED","GT_INVALID","IDEMPOTENCY_KEY_REUSED","IMMUTABLE_WORKFLOW","INSUFFICIENT_CREDIT","INTERNAL_ERROR","INTERNAL_INCONSISTENCY","INVALID_API_KEY","INVALID_JSON","INVALID_LOOKUP_FILE_ENCODING","INVALID_VALUE","INVALID_WORKFLOW_CONFIG","KNOWLEDGE_DOWNLOAD_UNAVAILABLE","KNOWLEDGE_NOT_ENABLED","KNOWLEDGE_NOT_READY","KNOWLEDGE_THREAD_MISMATCH","KNOWLEDGE_UNSUPPORTED_SNAPSHOT_FORMAT","LOOKUP_FIELD_WITHOUT_FILE","METHOD_NOT_ALLOWED","MISSING_API_KEY","MULTIFILE_UNSUPPORTED","NOT_ACCEPTABLE","NOT_ASSIGNED_VERIFIER","NOT_FOUND","NOT_IMPLEMENTED","NOT_IN_DATASET","OBJECT_STORAGE_UNAVAILABLE","ONESHOT_SIGNALS_MISSING","OPERATOR_DEPRECATED","OPERATOR_NOT_AVAILABLE","OPTIMIZATION_ALREADY_RUNNING","PARSE_MODE_FORBIDDEN","PAYMENT_REQUIRED","PRECONDITION_FAILED","RATE_LIMITED","REPARSE_REQUIRED","REQUEST_REJECTED","REQUEST_TOO_LARGE","RUN_IN_PROGRESS","SERVICE_UNAVAILABLE","SPLIT_HAS_NO_PAGES","SPLIT_SOURCE_NOT_PDF","TOPOLOGY_INVALID","UNSUPPORTED_FILE_TYPE","UNSUPPORTED_LOOKUP_FILE","UNSUPPORTED_MEDIA_TYPE","UPLOAD_SNIFF_BUDGET_EXCEEDED","URL_UNREACHABLE","VALIDATION_ERROR","WEBHOOK_SUBSCRIPTION_LIMIT","WORKFLOW_CONCURRENT_EDIT","WORKFLOW_NAME_CONFLICT","ZERO_DATA_RETENTION_REFUSES_DATASET","ZERO_DATA_RETENTION_REFUSES_KNOWLEDGE","ZERO_DATA_RETENTION_REFUSES_RESULTS_QUERY","deprecated_operator_ack_required","insufficient_api_key_scope","terms_acceptance_required"],"description":"Stable identifier for programmatic handling. New values can be added at any time, so a client must accept a code it does not know.","examples":["VALIDATION_ERROR","AUTH_FAILED","NOT_FOUND","PRECONDITION_FAILED","RATE_LIMITED","INTERNAL_ERROR","GATEWAY_TIMEOUT"],"isRequired":true,"uniqueKey":"error_code","typeLabel":"enum\u003cstring>"},"retryable":{"type":"boolean","description":"True when the caller should retry (with backoff for 429/412/5xx).","isRequired":true,"uniqueKey":"retryable","typeLabel":"boolean"},"request_id":{"type":"string","description":"Correlates this response with server logs.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"detail":{"description":"Machine-readable detail, any JSON value. A string for most errors, a list of `{type, loc, msg}` objects for `VALIDATION_ERROR`, whose `loc` starts with `body`, `query`, `path`, `header`, `form` or `tool`, and an object for a structured error such as `FILENAME_CONFLICT` (`detail.conflicts`).","uniqueKey":"detail","typeLabel":"any"},"params":{"type":"object","additionalProperties":true,"description":"Values specific to this occurrence of the error that a caller needs to recover, such as `node_ids` or `required_scope`, keyed by name. Absent when the code relays none.","uniqueKey":"params","typeLabel":"object"},"doc_url":{"type":"string","format":"uri","description":"Link to the documentation of this `error_code`.","uniqueKey":"doc_url","typeLabel":"string\u003curi>"},"recovery":{"type":"string","description":"One sentence that says what to do next. Absent when the `error_code` has none, or when `retryable` differs from the code's usual value.","uniqueKey":"recovery","typeLabel":"string"}},"uniqueKey":"","typeLabel":"ErrorEnvelope · object"},"examples":{"GATEWAY_TIMEOUT":{"title":"GATEWAY_TIMEOUT","value":{"error":"The upstream service did not answer in time.","detail":"The upstream service did not answer in time.","error_code":"GATEWAY_TIMEOUT","retryable":true,"request_id":"req_abc123","recovery":"Retry the request with exponential backoff."}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"02602975-5f23-41d2-b8ff-2c36d9215a44":{"ApiKeyAuth":{"type":"http","description":"API key issued from app.anyformat.ai/api-key. Send as `Authorization: Bearer \u003ckey>`.","scheme":"bearer","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"0397d3a9-791b-4ad0-bcb8-d413354e9814":{"url":"https://api.anyformat.ai","description":"API server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","description":"API key issued from app.anyformat.ai/api-key. Send as `Authorization: Bearer \u003ckey>`.","scheme":"bearer","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"API key issued from app.anyformat.ai/api-key. Send as `Authorization: Bearer \u003ckey>`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"ApiKeyAuth","name":"Authorization"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"https://api.anyformat.ai/schema/?format=json"},"subdomain":"anyformat","siteName":"anyformat","title":"Upload Document Packet - anyformat","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-02T09:15:07.979Z","originalFileLocation":"api-reference-v3/workflows/upload.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Upload one or more files as a single document packet, without running it\">\u003cmeta data-mint-head name=\"application-name\" content=\"anyformat\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/anyformat/NnPr2dkczBT_mIdW/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/anyformat/NnPr2dkczBT_mIdW/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/anyformat/NnPr2dkczBT_mIdW/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/anyformat/NnPr2dkczBT_mIdW/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/anyformat/NnPr2dkczBT_mIdW/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/anyformat/NnPr2dkczBT_mIdW/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/anyformat/NnPr2dkczBT_mIdW/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/anyformat/NnPr2dkczBT_mIdW/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/anyformat/NnPr2dkczBT_mIdW/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Upload Document Packet - anyformat\">\u003cmeta data-mint-head property=\"og:description\" content=\"Upload one or more files as a single document packet, without running it\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"anyformat\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.anyformat.ai/api-reference-v3/workflows/upload\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://anyformat.mintlify.site/_mintlify/api/og/v2?division=Upload\u0026amp;title=Upload+Document+Packet\u0026amp;description=Upload+one+or+more+files+as+a+single+document+packet%2C+without+running+it\u0026amp;theme=11be19307a5c25242edebe67\u0026amp;signature=c51471bc565857c6b60ae3680d4cfd24387af03870f3ca19f85376d599e12dc0\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Upload Document Packet - anyformat\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Upload one or more files as a single document packet, without running it\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://anyformat.mintlify.site/_mintlify/api/og/v2?division=Upload\u0026amp;title=Upload+Document+Packet\u0026amp;description=Upload+one+or+more+files+as+a+single+document+packet%2C+without+running+it\u0026amp;theme=11be19307a5c25242edebe67\u0026amp;signature=c51471bc565857c6b60ae3680d4cfd24387af03870f3ca19f85376d599e12dc0\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/anyformat/NnPr2dkczBT_mIdW/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"anyformat\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0066FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.anyformat.ai/api-reference-v3/workflows/upload\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference-v3/workflows/upload.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.anyformat.ai/#organization\",\"name\":\"anyformat\",\"url\":\"https://docs.anyformat.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/anyformat/v2HRpcqi657iKMPg/logo/Logo-horizontal.png?fit=max\u0026auto=format\u0026n=v2HRpcqi657iKMPg\u0026q=85\u0026s=7fe1cfff76171b16c27aea272156c95c\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.anyformat.ai#website\",\"name\":\"anyformat\",\"url\":\"https://docs.anyformat.ai\",\"publisher\":{\"@id\":\"https://docs.anyformat.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.anyformat.ai/api-reference-v3/workflows/upload#webpage\",\"url\":\"https://docs.anyformat.ai/api-reference-v3/workflows/upload\",\"name\":\"Upload Document Packet\",\"description\":\"Upload one or more files as a single document packet, without running it\",\"dateModified\":\"2026-10-02T09:15:07.979Z\",\"isPartOf\":{\"@id\":\"https://docs.anyformat.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.anyformat.ai/api-reference-v3/workflows/upload#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.anyformat.ai/api-reference-v3/workflows/upload#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"anyformat\",\"item\":\"https://docs.anyformat.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Upload Document Packet\",\"item\":\"https://docs.anyformat.ai/api-reference-v3/workflows/upload\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.anyformat.ai/api-reference-v3/workflows/upload#apireference\",\"headline\":\"Upload Document Packet\",\"name\":\"Upload Document Packet\",\"description\":\"Upload one or more files as a single document packet, without running it\",\"url\":\"https://docs.anyformat.ai/api-reference-v3/workflows/upload\",\"mainEntityOfPage\":{\"@id\":\"https://docs.anyformat.ai/api-reference-v3/workflows/upload#webpage\"},\"dateModified\":\"2026-10-02T09:15:07.979Z\",\"publisher\":{\"@id\":\"https://docs.anyformat.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.anyformat.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"anyformat\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"anyformat\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference-v3/workflows/upload.md","siteName":"anyformat","nav":{"global":null,"tabs":[{"tab":"Home","icon":"house","pages":[{"title":"Home","href":""}]},{"tab":"Guide","icon":"book-open","pages":[{"title":"Guide","href":"/introduction"}]},{"tab":"Examples","icon":"flask","pages":[{"title":"Examples","href":"/examples"}]},{"tab":"API Reference","icon":"code","groups":[{"group":"Overview","pages":[{"title":"Introduction","href":"/api-reference-v3/introduction"},{"title":"Authentication","href":"/api-reference-v3/authentication"},{"title":"Error Handling","href":"/api-reference-v3/errors"},{"title":"Check API Key","openapi":"GET /key-check/","href":"/api-reference-v3/key-check"},{"title":"Node schemas","sidebarTitle":"Node schemas","href":"/api-reference-v3/node-schemas"}]},{"group":"Workflows","pages":[{"title":"List Workflows","openapi":"GET /v3/workflows/","href":"/api-reference-v3/workflows/list"},{"title":"Get Workflow","openapi":"GET /v3/workflows/{workflow_id}/","href":"/api-reference-v3/workflows/get"},{"title":"List Workflow Versions","openapi":"GET /v3/workflows/{workflow_id}/versions/","href":"/api-reference-v3/workflows/versions"},{"title":"Get Workflow Usage","openapi":"GET /v3/workflows/{workflow_id}/usage/","href":"/api-reference-v3/workflows/usage"},{"title":"Create Workflow","openapi":"POST /v3/workflows/","href":"/api-reference-v3/workflows/create"},{"title":"Update Workflow","openapi":"PATCH /v3/workflows/{workflow_id}/","href":"/api-reference-v3/workflows/update"},{"title":"Delete Workflow","description":"Delete a workflow and all associated document packets and runs","openapi":"DELETE /v3/workflows/{workflow_id}/","href":"/api-reference-v3/workflows/delete"}]},{"group":"Upload","pages":[{"title":"Upload Document Packet","openapi":"POST /v3/workflows/{workflow_id}/upload/","href":"/api-reference-v3/workflows/upload"},{"title":"Upload and Run","description":"Upload a document packet and start a run in a single call","openapi":"POST /v3/workflows/{workflow_id}/upload/run/","href":"/api-reference-v3/workflows/upload-and-run"},{"title":"Upload from URL","openapi":"POST /v3/workflows/{workflow_id}/upload/from-url/","href":"/api-reference-v3/workflows/upload-from-url"}]},{"group":"Document packets","pages":[{"title":"List Document Packets","openapi":"GET /v3/workflows/{workflow_id}/document-packets/","href":"/api-reference-v3/document-packets/list"},{"title":"Get Document Packet","openapi":"GET /v3/document-packets/{document_packet_id}/","href":"/api-reference-v3/document-packets/get"},{"title":"Run Document Packet","openapi":"POST /v3/document-packets/{document_packet_id}/run/","href":"/api-reference-v3/document-packets/run"},{"title":"Delete Document Packet","openapi":"DELETE /v3/document-packets/{document_packet_id}/","href":"/api-reference-v3/document-packets/delete"}]},{"group":"Runs","pages":[{"title":"List Workflow Runs","openapi":"GET /v3/workflows/{workflow_id}/runs/","href":"/api-reference-v3/runs/list"},{"title":"Get Run","openapi":"GET /v3/runs/{run_id}/","href":"/api-reference-v3/runs/get"}]},{"group":"Corrections","pages":[{"title":"Edit Field","openapi":"POST /v3/extractions/{extraction_id}/fields/edit/","href":"/api-reference-v3/extractions/edit-field"},{"title":"Add Row","openapi":"POST /v3/extractions/{extraction_id}/rows/add/","href":"/api-reference-v3/extractions/add-row"},{"title":"Delete Row","openapi":"POST /v3/extractions/{extraction_id}/rows/delete/","href":"/api-reference-v3/extractions/delete-row"},{"title":"Verify Extraction","openapi":"POST /v3/extractions/{extraction_id}/verify/","href":"/api-reference-v3/extractions/verify"}]},{"group":"Splits","pages":[{"title":"Download a split","openapi":"GET /v3/splits/{split_id}/pdf/","href":"/api-reference-v3/splits/download"}]},{"group":"Webhooks","pages":[{"title":"Webhooks","href":"/api-reference-v3/webhooks/overview"},{"title":"Create Webhook","openapi":"POST /v3/webhooks/","href":"/api-reference-v3/webhooks/create"},{"title":"List Webhooks","openapi":"GET /v3/webhooks/","href":"/api-reference-v3/webhooks/list"},{"title":"Delete Webhook","openapi":"DELETE /v3/webhooks/{webhook_id}/","href":"/api-reference-v3/webhooks/delete"},{"title":"Ping Webhook","openapi":"POST /v3/webhooks/{webhook_id}/ping/","href":"/api-reference-v3/webhooks/ping"}]},{"group":"Deletion certificates","pages":[{"title":"Deletion Certificates","href":"/api-reference-v3/deletion-certificates/overview"},{"title":"List Deletion Certificates","openapi":"GET /v3/workflows/{workflow_id}/deletion-certificates/","href":"/api-reference-v3/deletion-certificates/list"},{"title":"Get Deletion Certificate","openapi":"GET /v3/deletion-certificates/{certificate_id}/","href":"/api-reference-v3/deletion-certificates/get"}]},{"group":"Parse","pages":[{"title":"Parse a Document","openapi":"POST /v3/parse/","href":"/api-reference-v3/parse/parse"},{"title":"Parse a Document from a URL","openapi":"POST /v3/parse/from-url/","href":"/api-reference-v3/parse/parse-from-url"}]},{"group":"Knowledge","pages":[{"title":"Ask","openapi":"POST /v3/workflows/{workflow_id}/knowledge/ask","href":"/api-reference-v3/knowledge/ask"},{"title":"List","openapi":"GET /v3/workflows/{workflow_id}/knowledge/entries","href":"/api-reference-v3/knowledge/list"},{"title":"Search","openapi":"GET /v3/workflows/{workflow_id}/knowledge/search","href":"/api-reference-v3/knowledge/search"},{"title":"Read","openapi":"GET /v3/workflows/{workflow_id}/knowledge/entry","href":"/api-reference-v3/knowledge/read"},{"title":"Download","openapi":"GET /v3/workflows/{workflow_id}/knowledge/snapshot","href":"/api-reference-v3/knowledge/download"}]},{"group":"Evals","pages":[{"title":"Upload to Dataset","openapi":"POST /v3/workflows/{workflow_id}/dataset/upload/","href":"/api-reference-v3/datasets/upload"},{"title":"Get Ground Truth","openapi":"GET /v3/document-packets/{document_packet_id}/ground-truth/","href":"/api-reference-v3/datasets/get-ground-truth"},{"title":"Set Ground Truth","openapi":"PUT /v3/document-packets/{document_packet_id}/ground-truth/","href":"/api-reference-v3/datasets/set-ground-truth"},{"title":"Launch Eval","openapi":"POST /v3/workflows/{workflow_id}/evals/","href":"/api-reference-v3/evals/launch"},{"title":"List Evals","openapi":"GET /v3/workflows/{workflow_id}/evals/","href":"/api-reference-v3/evals/list"},{"title":"Get Eval","openapi":"GET /v3/workflows/{workflow_id}/evals/{eval_id}/","href":"/api-reference-v3/evals/get"},{"title":"Get Eval Accuracy","openapi":"GET /v3/workflows/{workflow_id}/evals/{eval_id}/accuracy/","href":"/api-reference-v3/evals/accuracy"},{"title":"Get Eval Document Fields","openapi":"GET /v3/workflows/{workflow_id}/evals/{eval_id}/document-packets/{document_packet_id}/fields/","href":"/api-reference-v3/evals/document-packet-fields"},{"title":"List Dataset Tags","openapi":"GET /v3/workflows/{workflow_id}/dataset/tags/","href":"/api-reference-v3/datasets/tags"}]},{"group":"Optimizations","pages":[{"title":"Start Optimization","openapi":"POST /v3/workflows/{workflow_id}/optimizations/","href":"/api-reference-v3/optimizations/start"},{"title":"List Optimizations","openapi":"GET /v3/workflows/{workflow_id}/optimizations/","href":"/api-reference-v3/optimizations/list"},{"title":"Get Optimization","openapi":"GET /v3/workflows/{workflow_id}/optimizations/{optimization_id}/","href":"/api-reference-v3/optimizations/get"}]},{"group":"SDKs and tools","pages":[{"title":"SDKs and tools","sidebarTitle":"SDKs","href":"/api-reference-v3/sdks"},{"title":"Python SDK","sidebarTitle":"Python","href":"/api-reference-v3/sdks/python"},{"title":"TypeScript SDK","sidebarTitle":"TypeScript","href":"/api-reference-v3/sdks/typescript"},{"title":"Command line (afx)","sidebarTitle":"CLI (afx)","href":"/api-reference-v3/cli"},{"title":"MCP server","sidebarTitle":"MCP server","href":"/api-reference-v3/mcp"},{"title":"SDK migration: 0.x to 1.0","href":"/api-reference-v3/sdk-migration"},{"title":"Migrating from v2","href":"/api-reference-v3/migrating-from-v2"}]},{"group":"API v2 (retired)","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":"Authentication","href":"/api-reference/authentication"},{"title":"Check API Key","href":"/api-reference/key-check"},{"title":"Response Formats","href":"/api-reference/response-formats"},{"title":"Error Handling","href":"/api-reference/errors"},{"title":"v2 → v3 migration","href":"/api-reference/v2-migration"},{"group":"v2 SDKs","pages":[{"title":"SDKs","href":"/api-reference/sdks/overview"},{"title":"TypeScript SDK Guide","href":"/api-reference/sdks/typescript"},{"title":"Python SDK Guide","href":"/api-reference/sdks/python"}]},{"group":"v2 Workflows","pages":[{"title":"List Workflows","href":"/api-reference/workflows/list"},{"title":"Get Workflow","href":"/api-reference/workflows/get"},{"title":"Create Workflow","href":"/api-reference/workflows/create"},{"title":"Edit a Workflow","href":"/api-reference/workflows/update"},{"title":"Run Workflow","href":"/api-reference/workflows/run"},{"title":"Upload File","href":"/api-reference/workflows/upload"},{"title":"Run Uploaded File","href":"/api-reference/workflows/run-staged"},{"title":"List Workflow Runs","href":"/api-reference/workflows/runs"},{"title":"Delete Workflow","href":"/api-reference/workflows/delete"}]},{"group":"v2 Files","pages":[{"title":"List Files","href":"/api-reference/files/list"},{"title":"Upload File","href":"/api-reference/files/create"},{"title":"Upload File from URL","href":"/api-reference/files/create-from-url"},{"title":"Get File Results","href":"/api-reference/files/results"},{"title":"Delete File","href":"/api-reference/files/delete"}]},{"group":"v2 Webhooks","pages":[{"title":"Overview","href":"/api-reference/webhooks/overview"},{"title":"List Webhooks","href":"/api-reference/webhooks/list"},{"title":"Create Webhook","href":"/api-reference/webhooks/create"},{"title":"Delete Webhook","href":"/api-reference/webhooks/delete"}]}]}]},{"tab":"Changelog","icon":"clock-rotate-left","pages":[{"title":"Changelog","href":"/changelog/overview"}]}]},"basePath":"","title":"Upload Document Packet - anyformat","buildId":"dpl_596ePT575z4qnAFksq1biRW97aLY","deploymentId":"dpl_596ePT575z4qnAFksq1biRW97aLY","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-C9Wu0MeN.js","utils-jWgu-6Qf.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DBD8f9qn.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BGuX1ui5.js","snippetPresets-Evy63nQB.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BQHO1lnV.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-B6C8m-t_.js","shallow-BG4cT0fH.js","getApiPlaygroundDisplay-CgEPrE-D.js","CodeSnippet-CU8JyZ9N.js","CodeSnippets-BnxHU32T.js","Page-D6S0Yh6q.js","getPastedJson-CwiYOonh.js","icon-DYDpWmDf.js","MethodPill-C-J-l7_c.js","DuplicateIcon-B6ARwg9w.js","createIcon-Dsv4MtDq.js","DynamicMarkdown-CtasenyM.js","SectionHeading-YNcgYwjB.js","axios-vUo_bRtp.js","Markdown-CwLx6PAg.js","clsx-C3kuh_dz.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CmKHfscc.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-U3mI6Ljh.js"]}