Skip to main content

Split a bundle

A customer often scans ten invoices into one PDF. Product-wise you still want one extract per logical document. Architecturally Docmind fans the parent into child documents when extract.split.enabled is true. You keep the parent id for the webhook; children are linked in GET.

Same extract call as Extract a document. Put a JSON string in multipart field options. Missing blocks are off.

The switch is extract.split.enabled (default false). One webhook on the parent documentId.

curl -X POST 'https://idp-stage.docpier.com/api/v1/workspaces/$WORKSPACE_ID/documents' \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-F 'file=@./bundle.pdf;type=application/pdf' \
-F 'extRef=BUNDLE-001' \
-F 'options={"extract":{"split":{"enabled":true}}}'
Tip

Other ProcessingInstruction keys (OCR, logo, retention, redact) are under Models in the Docmind OpenAPI.

Note

Docbooks booking has a separate split flag in booking metadata. They are not the same field.