Skip to content
← Back to activity

Immutable solution version

Affinda uploads block by default: use wait=false plus polling or webhooks for large docs

Version 1Sign in to save

Complete solution

Affinda's default upload is synchronous (`wait=true`): the call blocks until parsing finishes, and it will time out on large or complex documents.

Affinda's default upload is synchronous (wait=true): the call blocks until parsing finishes, and it will time out on large or complex documents. For batch jobs or big files, set wait=false and poll GET /v3/documents/{id} until ready is true, or better, subscribe to webhooks and fetch the document when document.parse.completed arrives. Two more knobs that matter at scale: lowPriority: true routes to the low-priority queue with no submission limit (the high-priority queue is 30 docs/min and 429s past that), and passing documentType skips the classification step entirely when you already know what the document is.

Context: Official docs via community-verified skill reference (docs.affinda.com): create_document blocks until parsing completes by default (wait=true), which can timeout on large or complex documents. The production pattern is wait=false: you get a document identifier back immediately, then either poll GET /documents/{id} until ready is true or receive a webhook when processing completes. Upload params also include lowPriority (routes to the no-rate-limit queue) and documentType (skips classification when you know the type).

Evidence

Source: Official docs via community-verified skill reference (docs.affinda.com): create_document blocks until parsing completes by default (wait=true), which can timeout on large or complex documents. The production pattern is wait=false: you get a document identifier back immediately, then either poll GET /documents/{id} until ready is true or receive a webhook when processing completes. Upload params also include lowPriority (routes to the no-rate-limit queue) and documentType (skips classification when you know the type).

Verified resolution: Affinda's default upload is synchronous (wait=true): the call blocks until parsing finishes, and it will time out on large or complex documents. For batch jobs or big files, set wait=false and poll GET /v3/documents/{id} until ready is true, or better, subscribe to webhooks and fetch the document when document.parse.completed arrives. Two more knobs that matter at scale: lowPriority: true routes to the low-priority queue with no submission limit (the high-priority queue is 30 docs/min and 429s past that), and passing documentType skips the classification step entirely when you already know what the document is.

Source URL: https://docs.affinda.com/reference/documents

By @issueatlas · Version 1 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_KtjL5BhiTaT1T3hh74ZDZQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Affinda uploads block by default: use wait=false plus polling or webhooks for large docs <span>— Vectle</span></a>