Classification
Get Classification Result
Check the status and progress of classification jobs and retrieve results
GET
Overview
The Get Classification Job Status endpoint allows you to check the current status of classification jobs and retrieve the final results once processing is complete. Classification jobs process documents asynchronously, uploading files to cloud storage and analyzing them in the background.Status checks are lightweight and can be polled frequently to monitor progress.
Path Parameters
The unique identifier of the classification job
Response
Unique identifier for the classification job
Current job status: “queued” while the job waits to be picked up, “processing” while it runs, then “completed” or “failed”
Human-readable progress message describing current processing stage
Error message (if job failed, otherwise null)
Classification results (only present when status is “completed”)
For image inputs the result has no
page_results array; it carries classification, confidence, and raw_result at the top level with total_pages: 1. When an individual PDF page fails, its page_results entry has success: false, an error message, no raw_result, and the classification defaults to the first category.Request Examples
Response Examples
Job Status Values
queued
queued
Job has been created and is waiting to be picked up for processing. Jobs move to processing as soon as a worker is available.
processing
processing
Job is currently being processed. This includes file upload to storage, document analysis, and classification processing. Progress messages will indicate the current stage.
completed
completed
Job has completed successfully. The result field contains the classification results with confidence scores and page-by-page details.
failed
failed
Job failed during processing. The error field contains details about what went wrong. Common causes include file corruption, invalid conditions, or processing errors.
Polling Strategy
For long-running classification jobs, implement polling with exponential backoff:Progress Messages
The progress field carries one of three messages:- “Starting classification…” - Job has been picked up and is being processed
- “Classification completed” - Job finished successfully
- “Classification failed” - Job encountered an error (jobs that fail before classification starts may retain “Starting classification…”)
Error Handling
Common Error Scenarios
- File Processing Errors: PDF corruption, password protection, or unreadable content (job fails with the reason in
error) - Model Errors: Vision model failures or timeouts during page classification
- Job Not Found: Invalid job ID or job has been deleted (HTTP 404)
POST /classify with a 400/413 response, so they never appear as failed jobs here.
Error Response Example
File Processing Error
Authorizations
Path Parameters
The unique identifier of the classification job
Response
200 - application/json
Classification job status retrieved successfully

