curl -X POST "https://prod.visionapi.unsiloed.ai/splitter" \
-H "api-key: your-api-key" \
-F "file=@mixed_documents.pdf" \
-F 'categories=[{"name":"invoice","description":"Business invoices with itemized charges"},{"name":"contract","description":"Legal agreements and binding documents"}]'
{
"success": true,
"message": "Successfully split PDF into 2 files",
"files": [
{
"name": "invoice.pdf",
"fileId": "d079d09f-201c-4420-a50a-b25678a71ae9",
"type": "file",
"path": "invoice.pdf",
"full_path": "https://lyltzyvtloozzovxrupp.supabase.co/storage/v1/object/public/files/ef3ec356-b407-4f9f-ac8f-0dfdef9034c0_invoice.pdf?",
"confidence_score": 0.8
},
{
"name": "contract.pdf",
"fileId": "320616cc-8dfd-4b8a-8474-8e7a42d9e287",
"type": "file",
"path": "contract.pdf",
"full_path": "https://lyltzyvtloozzovxrupp.supabase.co/storage/v1/object/public/files/dfaa5d30-6955-4a69-9c69-7e3c4efd8450_contract.pdf?",
"confidence_score": 0.8
}
]
}
Split PDF documents by classifying pages into different categories
curl -X POST "https://prod.visionapi.unsiloed.ai/splitter" \
-H "api-key: your-api-key" \
-F "file=@mixed_documents.pdf" \
-F 'categories=[{"name":"invoice","description":"Business invoices with itemized charges"},{"name":"contract","description":"Legal agreements and binding documents"}]'
{
"success": true,
"message": "Successfully split PDF into 2 files",
"files": [
{
"name": "invoice.pdf",
"fileId": "d079d09f-201c-4420-a50a-b25678a71ae9",
"type": "file",
"path": "invoice.pdf",
"full_path": "https://lyltzyvtloozzovxrupp.supabase.co/storage/v1/object/public/files/ef3ec356-b407-4f9f-ac8f-0dfdef9034c0_invoice.pdf?",
"confidence_score": 0.8
},
{
"name": "contract.pdf",
"fileId": "320616cc-8dfd-4b8a-8474-8e7a42d9e287",
"type": "file",
"path": "contract.pdf",
"full_path": "https://lyltzyvtloozzovxrupp.supabase.co/storage/v1/object/public/files/dfaa5d30-6955-4a69-9c69-7e3c4efd8450_contract.pdf?",
"confidence_score": 0.8
}
]
}
[{"name":"invoice","description":"Financial invoices"}])Show file_structure
curl -X POST "https://prod.visionapi.unsiloed.ai/splitter" \
-H "api-key: your-api-key" \
-F "file=@mixed_documents.pdf" \
-F 'categories=[{"name":"invoice","description":"Business invoices with itemized charges"},{"name":"contract","description":"Legal agreements and binding documents"}]'
{
"success": true,
"message": "Successfully split PDF into 2 files",
"files": [
{
"name": "invoice.pdf",
"fileId": "d079d09f-201c-4420-a50a-b25678a71ae9",
"type": "file",
"path": "invoice.pdf",
"full_path": "https://lyltzyvtloozzovxrupp.supabase.co/storage/v1/object/public/files/ef3ec356-b407-4f9f-ac8f-0dfdef9034c0_invoice.pdf?",
"confidence_score": 0.8
},
{
"name": "contract.pdf",
"fileId": "320616cc-8dfd-4b8a-8474-8e7a42d9e287",
"type": "file",
"path": "contract.pdf",
"full_path": "https://lyltzyvtloozzovxrupp.supabase.co/storage/v1/object/public/files/dfaa5d30-6955-4a69-9c69-7e3c4efd8450_contract.pdf?",
"confidence_score": 0.8
}
]
}
JSON string containing array of category objects with name and optional description. Example: [{"name":"invoice","description":"Business invoices with itemized charges"},{"name":"contract","description":"Legal agreements and binding documents"},{"name":"report"}]
PDF file to split. Either file or file_url must be provided.
URL to a PDF file to split. Either file or file_url must be provided. Example: https://example.com/mixed_documents.pdf