Pull embedded files out of a PDF: ZUGFeRD/Factur-X invoice XML, attached CSVs, images or sub-PDFs — as JSON (text inline, binary base64) or a ZIP. E-invoice attachments are flagged.
curl -X POST https://api.bigapi.dev/v1/pdf/attachments -H 'Authorization: Bearer $KEY' -F 'file=@invoice.pdf'
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 | PDF with embedded files. |
output | json lists the embedded files and marks e-invoices (ZUGFeRD, Factur-X); zip returns the files themselves. Allowed: json, zipDefault: "json" |
name | Return only the attachment with this file name. Default: all attachments |
Returns application/json | application/zip. Response headers carry the cost (X-BigAPI-Cost) and notes about your input (X-BigAPI-Warnings).
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_attachments on its own.