BiGapiguides
POST /v1/pdf/split-documents · 1 cent per operation

Split a scanned stack into single receipts

One PDF with many scanned receipts in, one PDF per receipt out (ZIP). Splits at blank pages, at separator sheets with a QR code or every n pages; blank pages and separators are dropped, files named by invoice number.

Try it

export KEY=bigapi_…   # your key, once per terminal
curl -X POST https://api.bigapi.dev/v1/pdf/split-documents -H "Authorization: Bearer $KEY" -F 'file=@stapel.pdf' -o belege.zip

New keys come with 100 free operations, no signup: curl -X POST https://api.bigapi.dev/v1/keys. Failed calls cost nothing.

Parameters

NameMeaning
file requiredThe collective PDF, e.g. a stack of receipts from the document scanner. Up to 300 pages.
byauto: blank pages and separator sheets; blank: only blank pages; separator: only separator sheets with a QR code; pages: fixed every every_pages pages.
Allowed: auto, blank, separator, pages
Default: "auto"
every_pagesOnly for by=pages: pages per document (1 to 100).
Default: required with by=pages
separator_textText in the QR code of the separator sheet.
Default: "TRENNBLATT"
outputzip: the receipts as PDFs, the plan in the header X-BigAPI-Documents; json: only the plan (pages per document, invoice number, date, removed pages).
Allowed: zip, json
Default: "zip"

Result and price

1¢ · 1 cent per operation

Returns application/zip | application/json. Response headers carry the cost (X-BigAPI-Cost) and notes about your input (X-BigAPI-Warnings).

Good to know

Errors your agent should handle

400 expected_pdfThe file is not a PDF.
400 invalid_paramby=pages needs every_pages from 1 to 100.
413 too_many_pagesUp to 300 pages per file.
422 no_contentAll pages are blank or separator sheets.

From an agent (MCP)

Connect BiGapi as an MCP server: https://api.bigapi.dev/mcp (hosted) or npx -y @bigapi/mcp (local). Then ask in plain words; the agent finds pdf_split_documents on its own.

Split this scanned stack of receipts into one PDF per receipt.