Content management operations. Handle file uploads, processing, metadata extraction, and content retrieval with advanced filtering capabilities.
- Create and execute batch workflow
Sync Workspace API (1.0.0)
Workspace-specific services for content management, project organization, and file processing.
The Workspace APIs allow access to the resources contained within Workspaces and Dataspaces. Although Workspaces and Dataspaces are distinct, Dataspaces have no compute of their own, so operations on Dataspace resources must always be performed through a chosen workspace. Workspaces are bundled, fully-managed computational services used to: - Upload, process, and manage content files - Search and retrieve content with advanced filtering - Query content using AI with library citations and web search integration - Run AI workflows on the content - Organize content into projects according to business workflows - Generate file derivatives (images, thumbnails) and extract metadata - Handle content indexing with automated categorization
When files are uploaded, they undergo asynchronous processing which may include: - Virus scanning and security validation - File format conversion and derivative generation (TIFF, JPEG thumbnails) - Automated metadata extraction using AI - Content categorization and indexing according to dataspace ontology Processing status can be tracked using the Workflow Execution API.
- Content: Individual files with metadata, organized by categories defined in the dataspace ontology - Projects: Business workflow containers that group disparate content items according to business rules (e.g., application packets, case files)
Request
Creates a batch workflow execution that discovers content across multiple dataspaces using the provided filters, then executes the specified workflow on each matching content item. The system automatically selects the first available agent for the user's account to execute the workflow tasks. The workflow execution reuses the existing single-content workflow logic. Returns immediately with a batch execution record while processing continues in the background. File Format Filters: The API supports both user-friendly file types and MIME types for filtering: - User-friendly: { "in": ["pdf", "docx", "xlsx"] } - MIME types: { "in": ["application/pdf", "application/vnd.openxmlformats-officedocument.wordprocessingml.document"] } Supported user-friendly file types: pdf, docx, xlsx, pptx, txt, doc, xls, ppt, json, xml, csv, html, css, js, jpg, jpeg, png, gif, bmp, svg, webp, tiff, mp4, avi, mov, wmv, flv, webm, mkv, mp3, wav, flac, aac, ogg, m4a, zip, rar, 7z, tar, gz, bz2.
Content search filters to find matching content items
UUID of the workflow to execute on matching content
Workspace ID where the batch execution should run
Optional scheduled execution time (ISO datetime string) - not implemented yet
- Mock serverhttps://docs.syncdocs.ai/_mock/api/workspace-openapi/batch-workflow-executions
- Production - Workspace Serviceshttps://your-workspace.syncdocs.ai/api/batch-workflow-executions
- Development serverhttps://docs.syncdocs.ai/api/batch-workflow-executions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.syncdocs.ai/_mock/api/workspace-openapi/batch-workflow-executions \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"query": {
"fileFormat": {
"in": [
"pdf",
"docx"
]
},
"metadata": {
"author": {
"exists": true
},
"status": {
"in": [
"pending",
"draft"
]
}
},
"categoryId": {
"exists": false
}
},
"workflowId": "987fcdeb-51a2-43d1-9c4e-5f6e7d8c9a0b",
"workspaceId": "sws-abc12345",
"dataspaceIds": [
"sds-abc12345",
"sds-def67890"
],
"scheduledAt": "2025-01-20T15:30:00Z"
}'Batch workflow execution created and started successfully
UUID of the batch workflow execution
Original query used to fetch the content
UUID of the workflow used
Workspace ID where the batch execution ran
Array of dataspace IDs where the workflow ran
Array of individual workflow execution IDs (one for each content based on the filters)
Status of the batch execution
Error message if the batch execution failed
When the batch execution was created
{ "id": "123e4567-e89b-12d3-a456-426614174000", "query": { "fileFormat": { … }, "metadata": { … } }, "workflowId": "987fcdeb-51a2-43d1-9c4e-5f6e7d8c9a0b", "workspaceId": "sws-abc12345", "dataspaceIds": [ "sds-abc12345", "sds-def67890" ], "workflowExecutionIds": [ "789e0123-e89b-12d3-a456-426614174002", "abc1234d-e89b-12d3-a456-426614174003", "def5678e-e89b-12d3-a456-426614174004" ], "status": "completed", "errorMessage": null, "createdAt": "2025-01-15T10:30:00Z", "completedAt": "2025-01-15T10:45:00Z" }
- Mock serverhttps://docs.syncdocs.ai/_mock/api/workspace-openapi/batch-workflow-executions/{batchExecutionId}/status
- Production - Workspace Serviceshttps://your-workspace.syncdocs.ai/api/batch-workflow-executions/{batchExecutionId}/status
- Development serverhttps://docs.syncdocs.ai/api/batch-workflow-executions/{batchExecutionId}/status
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://docs.syncdocs.ai/_mock/api/workspace-openapi/batch-workflow-executions/123e4567-e89b-12d3-a456-426614174000/status \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'{ "total": 15, "completed": 12, "failed": 1, "inProgress": 2, "status": "processing" }