Concurrent Processing
Process multiple documents simultaneously withPromise.all:
Parse Multiple Documents
Extract from Multiple Documents
Split Multiple Documents
Fill Multiple Forms
Rate Limiting
Control concurrency to avoid overwhelming the API:Async Jobs (runJob)
For documents that take longer to process, userunJob methods to avoid timeouts:
Start Async Job
Poll for Completion
All Async Methods
Each endpoint has arunJob variant:
Error Handling
UsePromise.allSettled to handle failures gracefully:
When to Use Async Jobs
Use runJob When
Processing large documents (50+ pages), running long extract operations, or integrating with webhooks.
Use run When
Processing small documents, need immediate results, or simple scripts where waiting is acceptable.
Next Steps
- See job management for the complete job API
- Check error handling for the exception reference