Skip to content
ComPDF

Request modes

AI capability paths stay the same; the request prefix and upload workflow change.

ModeEndpoint exampleBest for
SyncPOST /v2/process/idp/documentExtractSmall files and interactive demos
AsyncPOST /v2/processAsync/idp/documentExtractLarge files, batch jobs, backend queues
PresignedPOST /v2/presignedUrl/idp/documentExtractDirect browser upload to object storage and stricter security requirements

Async polling

Start polling every 2-5 seconds, then back off for large files or busy queues. Stop after your business timeout and let the user retry later.

StateMeaning
processingThe task is running
completedThe result is ready
failedCheck failureCode / failureReason
expiredThe task or download link has expired

Webhook

Pass callbackUrl for async tasks if you want the service to notify your endpoint when processing completes. See Webhook events.