Create document upload
Creates a new document record and initiates a multipart upload to S3. Returns presigned URLs for uploading file parts directly to S3. This endpoint is designed for uploading large files that may exceed standard upload limits. After uploading all parts to the presigned URLs, call the complete endpoint to finalize the upload.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Content-Type must be set to application/json.
Path Parameters
The UUID of the business to create the document for.
Body
Parameters for creating a new document with presigned upload URLs.
The type of document being uploaded.
RECEIPT, UNSTRUCTURED_BOOKKEEPING_CONTEXT, OTHER The name of the file including its extension.
"quarterly-report.pdf"
The MIME type of the file.
"application/pdf"
The size of the file in bytes. Used to calculate the number of upload parts.
10485760
Response
Document record created and multipart upload initiated. The response includes presigned URLs for uploading file parts.
Response containing presigned URLs for multipart upload to S3.
The unique identifier of the created document record.
The S3 multipart upload ID. Required when completing or aborting the upload.
The size in bytes that each part should be, except for the last part which may be smaller.
List of presigned URLs for uploading each part of the file.