Upload Documents Using the FlexOrch TypeScript SDK
Upload single files, batches, and connector-sourced documents via the FlexOrch TypeScript SDK, with duplicate detection and per-plan size limits.
Every FlexOrch pipeline starts with a document upload. The TypeScript SDK provides three upload methods — single file, batch, and connector-based — giving you the flexibility to integrate with your existing storage and workflow without restructuring your code.
Use client.documents.uploadMany() to upload a list of files concurrently. Each file gets its own job; the method returns a Promise<Job[]> in the same order as the input array.
If your documents live in a connected storage source (S3, Google Drive, SharePoint, and others), use uploadFromConnector() to pull them directly — no local download required.
Every upload is fingerprinted against previously processed documents in your workspace. When a duplicate is detected, the returned Job object includes isDuplicate: true and an originalJobId pointing to the original job.
Duplicate jobs are still billed at the standard rate unless you have duplicate
suppression enabled on your plan. Check your plan settings before uploading
large batches.