Create file upload
Starts a direct upload of a PDF: returns a URL to PUT the PDF to, straight to Finta’s file
storage, and the file_id the PDF becomes. Use it where a multipart request isn’t
practical, such as an AI agent connected through the MCP that runs curl from its terminal.
Send purpose as in Create file: it decides the permission the upload needs (Taxes: Manage
for tax_document, the default; Reconciliation: Manage for bank_statement), the largest
size accepted (10 MB for a bank statement), and what may attach the file.
Send the file’s filename, its size in bytes, and its MD5 checksum in base64. Then PUT
the file’s bytes to url with every header in headers, before expires_at (10 minutes):
Storage accepts only bytes that match size and checksum, so a URL can’t be used to store a
different file, and each call returns a new URL and file. The PDF check happens when a tax
upload or a reconcile attaches the file: a file with no content yet, or one that is not a
PDF, is refused then with invalid_file. Like a file from Create file, it attaches once and
is deleted if nothing attaches it within 24 hours of this call.
Authorizations
Body
What may attach the file. tax_document is a filed tax return or Delaware franchise tax report, for Create income upload or Create franchise upload; it needs Taxes: Manage. bank_statement is a bank or card statement, for Reconcile reconciliation; it needs Reconciliation: Manage and can be at most 10 MB.
tax_document, bank_statement Response
The upload URL and the file it becomes.
What may attach the file. tax_document is a filed tax return or Delaware franchise tax report, for Create income upload or Create franchise upload; it needs Taxes: Manage. bank_statement is a bank or card statement, for Reconcile reconciliation; it needs Reconciliation: Manage and can be at most 10 MB.
tax_document, bank_statement