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.Classification jobs are stored in Supabase and updated in real-time. Status checks are lightweight and can be polled frequently to monitor progress.
Response
Unique identifier for the classification job
Current job status: “processing”, “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”)
Request Examples
Response Examples
Job Status Values
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
During processing, the progress field will show informative messages:- “Starting classification…” - Job has been queued and is beginning
- “Processing page X of Y” - Currently analyzing specific pages
- “Classification completed” - Job finished successfully
- “Classification failed” - Job encountered an error
Error Handling
Common Error Scenarios
- File Processing Errors: PDF corruption, password protection, or unreadable content
- Invalid Conditions: Empty conditions list or malformed JSON
- Storage Errors: File upload failures to Supabase storage
- Vision API Errors: OpenAI API failures or timeouts
- Job Not Found: Invalid job ID or job has been deleted
Error Response Examples
File Processing Error
Invalid Conditions Error
Storage Error
Authorizations
Path Parameters
The unique identifier of the classification job
Response
200 - application/json
Classification job status retrieved successfully
Classification job status and results
