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.
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.
| Name | Meaning |
|---|---|
file required | The collective PDF, e.g. a stack of receipts from the document scanner. Up to 300 pages. |
by | auto: 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, pagesDefault: "auto" |
every_pages | Only for by=pages: pages per document (1 to 100). Default: required with by=pages |
separator_text | Text in the QR code of the separator sheet. Default: "TRENNBLATT" |
output | zip: 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, jsonDefault: "zip" |
Returns application/zip | application/json. Response headers carry the cost (X-BigAPI-Cost) and notes about your input (X-BigAPI-Warnings).
400 expected_pdf | The file is not a PDF. |
400 invalid_param | by=pages needs every_pages from 1 to 100. |
413 too_many_pages | Up to 300 pages per file. |
422 no_content | All pages are blank or separator sheets. |
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.