Async Classifier API
Classify documents and automatically trigger extraction with a single API call. Classification happens immediately and returns the result, while extraction runs in the background. This eliminates the need to manually queue extraction after classification completes.
Request Parameters
classifierIdstringThe unique identifier of the classifier you created in the platform. You can find this ID in your classifier settings.
fileIdstringThe file ID returned from the classifier get-url endpoint after uploading your document.
AuthorizationstringBearer token for authentication.
Content-TypestringMust be set to application/json
Response
Returns the classification result immediately. Extraction is triggered automatically in the background.
Response Fields
fileIdThe classified file ID. Use this to poll for extraction results with the get-file-data endpoint.
deploymentNameThe name of the deployment the document was routed to based on classification.
extractionSchemaIdThe extraction schema ID that will be used for data extraction. This is determined automatically based on classification results.
Common error responses you might encounter.
Complete Async Workflow
Next Steps
Use the get-file-data endpoint with just the fileId to check status and retrieve extracted data when processing completes.
GET /api/v1/document/get-file-data?fileId={fileId}Need to wait for classification results before proceeding? Use the sync endpoint for immediate classification responses.
Sync Classification Documentation →