curl -X GET "https://prod.visionapi.unsiloed.ai/splitter/04a7a6d8-5ef7-465a-b22a-8a98e7104dd9" \
-H "accept: application/json" \
-H "api-key: your-api-key"
{
"job_id": "c8a86841-beb1-4d00-ac4f-2f9fb9de9d5a",
"status": "completed",
"progress": "Starting document processing...",
"file_url": "https://lyltzyvtloozzovxrupp.supabase.co/storage/v1/object/public/job-files-bucket/...",
"file_name": "mixed_documents.pdf",
"parameters": {
"classes": ["Invoice", "Receipt", "Contract"],
"category_descriptions": {
"Invoice": "Financial invoices with itemized charges",
"Receipt": "Purchase receipts"
}
},
"result": {
"success": true,
"message": "Successfully split PDF into 3 files",
"files": [
{
"name": "Invoice.pdf",
"path": "Invoice.pdf",
"type": "file",
"fileId": "580e091d-c354-4558-8318-89e600346691",
"full_path": "https://lyltzyvtloozzovxrupp.supabase.co/storage/v1/object/public/files/...",
"confidence_score": 0.999147126422347
},
{
"name": "Contract.pdf",
"path": "Contract.pdf",
"type": "file",
"fileId": "680e091d-c354-4558-8318-89e600346692",
"full_path": "https://lyltzyvtloozzovxrupp.supabase.co/storage/v1/object/public/files/...",
"confidence_score": 0.987654321098765
}
]
},
"error": null,
"quota_remaining": 450
}
Check the status and retrieve results of document splitting jobs
curl -X GET "https://prod.visionapi.unsiloed.ai/splitter/04a7a6d8-5ef7-465a-b22a-8a98e7104dd9" \
-H "accept: application/json" \
-H "api-key: your-api-key"
{
"job_id": "c8a86841-beb1-4d00-ac4f-2f9fb9de9d5a",
"status": "completed",
"progress": "Starting document processing...",
"file_url": "https://lyltzyvtloozzovxrupp.supabase.co/storage/v1/object/public/job-files-bucket/...",
"file_name": "mixed_documents.pdf",
"parameters": {
"classes": ["Invoice", "Receipt", "Contract"],
"category_descriptions": {
"Invoice": "Financial invoices with itemized charges",
"Receipt": "Purchase receipts"
}
},
"result": {
"success": true,
"message": "Successfully split PDF into 3 files",
"files": [
{
"name": "Invoice.pdf",
"path": "Invoice.pdf",
"type": "file",
"fileId": "580e091d-c354-4558-8318-89e600346691",
"full_path": "https://lyltzyvtloozzovxrupp.supabase.co/storage/v1/object/public/files/...",
"confidence_score": 0.999147126422347
},
{
"name": "Contract.pdf",
"path": "Contract.pdf",
"type": "file",
"fileId": "680e091d-c354-4558-8318-89e600346692",
"full_path": "https://lyltzyvtloozzovxrupp.supabase.co/storage/v1/object/public/files/...",
"confidence_score": 0.987654321098765
}
]
},
"error": null,
"quota_remaining": 450
}
Show result_structure
Show file_structure
curl -X GET "https://prod.visionapi.unsiloed.ai/splitter/04a7a6d8-5ef7-465a-b22a-8a98e7104dd9" \
-H "accept: application/json" \
-H "api-key: your-api-key"
#!/bin/bash
JOB_ID="04a7a6d8-5ef7-465a-b22a-8a98e7104dd9"
API_KEY="your-api-key"
MAX_ATTEMPTS=60
SLEEP_INTERVAL=5
echo "Polling split job status..."
for ((i=1; i<=MAX_ATTEMPTS; i++)); do
echo "Attempt $i..."
RESPONSE=$(curl -s -X GET "https://prod.visionapi.unsiloed.ai/splitter/$JOB_ID" \
-H "accept: application/json" \
-H "api-key: $API_KEY")
STATUS=$(echo $RESPONSE | grep -o '"status":"[^"]*"' | cut -d'"' -f4)
echo "Status: $STATUS"
if [ "$STATUS" = "completed" ]; then
echo "Split completed successfully!"
echo $RESPONSE | python -m json.tool
break
elif [ "$STATUS" = "failed" ]; then
echo "Split failed!"
echo $RESPONSE | python -m json.tool
break
else
echo "Still processing... waiting $SLEEP_INTERVAL seconds"
sleep $SLEEP_INTERVAL
fi
done
{
"job_id": "c8a86841-beb1-4d00-ac4f-2f9fb9de9d5a",
"status": "completed",
"progress": "Starting document processing...",
"file_url": "https://lyltzyvtloozzovxrupp.supabase.co/storage/v1/object/public/job-files-bucket/...",
"file_name": "mixed_documents.pdf",
"parameters": {
"classes": ["Invoice", "Receipt", "Contract"],
"category_descriptions": {
"Invoice": "Financial invoices with itemized charges",
"Receipt": "Purchase receipts"
}
},
"result": {
"success": true,
"message": "Successfully split PDF into 3 files",
"files": [
{
"name": "Invoice.pdf",
"path": "Invoice.pdf",
"type": "file",
"fileId": "580e091d-c354-4558-8318-89e600346691",
"full_path": "https://lyltzyvtloozzovxrupp.supabase.co/storage/v1/object/public/files/...",
"confidence_score": 0.999147126422347
},
{
"name": "Contract.pdf",
"path": "Contract.pdf",
"type": "file",
"fileId": "680e091d-c354-4558-8318-89e600346692",
"full_path": "https://lyltzyvtloozzovxrupp.supabase.co/storage/v1/object/public/files/...",
"confidence_score": 0.987654321098765
}
]
},
"error": null,
"quota_remaining": 450
}
The unique identifier of the splitting job
Split job status and results retrieved successfully
Unique identifier for the splitting job
Current job status (processing, completed, failed)
Progress message
URL to the original uploaded file
Name of the original file
Job parameters
Show child attributes
Split results (only present when status is completed)
Show child attributes
Error message if job failed
Remaining API quota