Content management operations. Handle file uploads, processing, metadata extraction, and content retrieval with advanced filtering capabilities.
- Upload file content
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
Initializes a new upload session for reliable file uploads. Features: - Supports files up to 10GB - Optimized for large file transfers - Session expiration and cleanup - Progress tracking Process: 1. Create upload session with file metadata 2. Upload file content using the session ID 3. System automatically processes the upload when complete 4. Returns content ID when finished Upload Optimization: The system automatically optimizes the upload process for reliable transfer of large files with automatic retry and error handling.
- Mock serverhttps://docs.syncdocs.ai/_mock/api/workspace-openapi/content-upload-sessions
- Production - Workspace Serviceshttps://your-workspace.syncdocs.ai/api/content-upload-sessions
- Development serverhttps://docs.syncdocs.ai/api/content-upload-sessions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.syncdocs.ai/_mock/api/workspace-openapi/content-upload-sessions \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"fileName": "large-document.pdf",
"fileSize": 104857600,
"fileFormat": "application/pdf",
"dataspaceId": "sds-abc12345"
}'Upload session created successfully
Current status of the upload session
Content ID when upload is completed
When this upload session was created
{ "id": "123e4567-e89b-12d3-a456-426614174000", "fileName": "large-document.pdf", "fileSize": 104857600, "fileFormat": "application/pdf", "chunkSize": 1048576, "totalChunks": 100, "uploadedChunks": 45, "status": "uploading", "contentId": "987e6543-e21b-43d2-b654-321098765432", "expiresAt": "2024-01-16T10:30:00Z", "createdAt": "2024-01-15T10:30:00Z", "updatedAt": "2024-01-15T11:15:00Z" }
Request
Uploads file content for an existing upload session. Upload Process: - Upload content reliably with automatic error handling - System tracks progress automatically - Optional content integrity validation via checksum - Processes file when upload is complete - Creates content record upon completion Upload Flow: 1. Upload content using multipart/form-data 2. System processes content reliably on server 3. When upload is complete, assembles into complete file 4. Stores complete file in secure storage 5. Creates content record in database 6. Cleans up temporary files Error Handling: - Invalid content is rejected with detailed error messages - Failed processing triggers automatic cleanup - Session expiration prevents orphaned files
- Mock serverhttps://docs.syncdocs.ai/_mock/api/workspace-openapi/content-upload-sessions/{sessionId}/chunks
- Production - Workspace Serviceshttps://your-workspace.syncdocs.ai/api/content-upload-sessions/{sessionId}/chunks
- Development serverhttps://docs.syncdocs.ai/api/content-upload-sessions/{sessionId}/chunks
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.syncdocs.ai/_mock/api/workspace-openapi/content-upload-sessions/123e4567-e89b-12d3-a456-426614174000/chunks \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: multipart/form-data' \
-F chunk=string \
-F chunkNumber=1 \
-F checksum=a1b2c3d4e5f6789...{ "sessionId": "123e4567-e89b-12d3-a456-426614174000", "chunkNumber": 45, "uploadedChunks": 45, "totalChunks": 100, "status": "uploading", "isComplete": false, "contentId": "987e6543-e21b-43d2-b654-321098765432" }
Request
Retrieves the current status and progress of an upload session. Session Statuses: - pending: Session created, awaiting content - uploading: Receiving content - assembling: Upload complete, processing file - completed: Upload successful, content created - failed: Upload failed, session invalid - expired: Session expired, cleanup scheduled Progress Tracking: Use this endpoint to monitor upload progress by checking: - uploadedChunks vs totalChunks for progress percentage - status for current phase - contentId when upload completes
- Mock serverhttps://docs.syncdocs.ai/_mock/api/workspace-openapi/content-upload-sessions/{sessionId}
- Production - Workspace Serviceshttps://your-workspace.syncdocs.ai/api/content-upload-sessions/{sessionId}
- Development serverhttps://docs.syncdocs.ai/api/content-upload-sessions/{sessionId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://docs.syncdocs.ai/_mock/api/workspace-openapi/content-upload-sessions/123e4567-e89b-12d3-a456-426614174000 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Upload session details
Current status of the upload session
Content ID when upload is completed
When this upload session was created
{ "id": "123e4567-e89b-12d3-a456-426614174000", "fileName": "large-document.pdf", "fileSize": 104857600, "fileFormat": "application/pdf", "chunkSize": 1048576, "totalChunks": 100, "uploadedChunks": 45, "status": "uploading", "contentId": "987e6543-e21b-43d2-b654-321098765432", "expiresAt": "2024-01-16T10:30:00Z", "createdAt": "2024-01-15T10:30:00Z", "updatedAt": "2024-01-15T11:15:00Z" }