upload_intake
Upload ANY file and let the system decide what it is (the unified intake
queue — the same door as "Documents → Upload" in the web app).
file_base64 is the file's raw bytes, base64-encoded.
Prefer this whenever the file is not plainly an invoice, and always for: bank statements (CAMT.053 XML, CSV, PDF or Excel exports) — these become BankStatement + BankEntry rows, matched to the registered bank account by IBAN; journal/accounting exports; and balance sheets, P&L statements and VAT filings. Mixed .zip archives are expanded and routed per file.
Returns 202 with the queue row: routing happens asynchronously, so poll
get_intake for the outcome and its targets. An unroutable file becomes
a failed queue row carrying the reason — it is never silently dropped.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| company_id | Yes | ||
| file_base64 | Yes |