curl -X POST "https://prod.visionapi.unsiloed.ai/classify" \
-H "api-key: your-api-key" \
-F "[email protected]" \
-F 'categories=[{"name":"invoice","description":"Financial invoices"},{"name":"contract","description":"Legal contracts"},{"name":"receipt"}]'
{
"job_id": "7e10f5cd-6d83-4b8e-9f80-ac103fd9b2f1",
"status": "processing",
"message": "Classification started",
"quota_remaining": 450
}
Classify PDF documents into predefined categories with confidence scoring using job-based processing
curl -X POST "https://prod.visionapi.unsiloed.ai/classify" \
-H "api-key: your-api-key" \
-F "[email protected]" \
-F 'categories=[{"name":"invoice","description":"Financial invoices"},{"name":"contract","description":"Legal contracts"},{"name":"receipt"}]'
{
"job_id": "7e10f5cd-6d83-4b8e-9f80-ac103fd9b2f1",
"status": "processing",
"message": "Classification started",
"quota_remaining": 450
}
[{"name":"invoice","description":"Financial invoices"}])curl -X POST "https://prod.visionapi.unsiloed.ai/classify" \
-H "api-key: your-api-key" \
-F "[email protected]" \
-F 'categories=[{"name":"invoice","description":"Financial invoices"},{"name":"contract","description":"Legal contracts"},{"name":"receipt"}]'
{
"job_id": "7e10f5cd-6d83-4b8e-9f80-ac103fd9b2f1",
"status": "processing",
"message": "Classification started",
"quota_remaining": 450
}
/classify/{job_id}.
processing: Job is currently being processedcompleted: Job completed successfully with results availablefailed: Job failed with error detailsJSON string containing array of category objects with name and optional description. Example: [{"name":"invoice","description":"Financial invoices with itemized charges"},{"name":"contract","description":"Legal contracts and agreements"},{"name":"receipt"}]
PDF file to classify. Either pdf_file or file_url must be provided.
URL to a PDF file to classify. Either pdf_file or file_url must be provided. Example: https://example.com/document.pdf