Account management operations. Each account represents a unique enterprise customer with isolated resources.
- Get a specific task definition by ID
SyncDocs Admin API (1.0.0)
Complete enterprise content management system (ECM) core APIs for accessing ECM functionality programmatically.
When you start with Sync, you are assigned an Account with a unique ID. Each account can have:
- Dataspaces: Fully isolated data segments within an account, similar to separate databases. Each dataspace is used to isolate different business use cases within a single enterprise. - Workspaces: Virtual computing resources for storing, retrieving and manipulating content (managed separately via Workspace APIs) - Libraries: External content sources that can be scraped and indexed for use as citation sources in AI queries - Users and Agents: Can interact with Dataspaces/Workspaces with assigned roles - Ontologies: Define how content is organized within dataspaces
Each Dataspace contains: - A unique Ontology that defines the business-purpose categorization and metadata structure - Categories: Represent the grouping or classification of content (taxonomy) - Metadata Queries: Specific metadata fields that can be associated with content and bound to categories - A collection of Content and Projects (managed via Workspace APIs)
Metadata Queries can be bound to Categories to indicate required attributes for content in that category. When binding, you can specify: - Whether the attribute is required/mandatory for every Content item in that category - Whether the attribute should be part of the Unique Index (content with same unique index values are considered versions of the same content)
AI model to use for task execution
Instructions for executing the task
The type of object that will act as primary context for the task execution
Whether to persist the output of the task in the dataspace
- Mock serverhttps://docs.syncdocs.ai/_mock/api/sync-cloud-openapi/accounts/{accountId}/task-definitions
- Production - Sync Cloud Admin Serviceshttps://cloud.syncdocs.ai/api/accounts/{accountId}/task-definitions
- Development serverhttps://docs.syncdocs.ai/api/accounts/{accountId}/task-definitions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.syncdocs.ai/_mock/api/sync-cloud-openapi/accounts/scd-k2j8n4m1/task-definitions \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"modelId": "claude-4-sonnet",
"name": "Categorize Document",
"taskInstructions": "We have received the following document. Please select its best appropriate category from the options in the ontology",
"primaryScope": "content",
"persistOutput": true,
"persistLogs": false
}'Task definition created successfully
The UUID of the task definition
AI model to use for task execution
Instructions for executing the task
The type of object that will act as primary context for the task execution
Whether to persist the output of the task in the dataspace
Whether to persist logs of the task execution in the dataspace
{ "taskDefinitionId": "550e8400-e29b-41d4-a716-446655440000", "accountId": "scd-k2j8n4m1", "modelId": "claude-4-sonnet", "name": "Categorize Document", "taskInstructions": "We have received the following document. Please select its best appropriate category from the options in the ontology", "primaryScope": "content", "persistOutput": true, "persistLogs": false, "taskNameSlug": "categorize-document", "createdAt": "2024-01-15T10:30:00Z", "lastUpdatedAt": "2024-01-15T14:30:00Z" }
- Mock serverhttps://docs.syncdocs.ai/_mock/api/sync-cloud-openapi/accounts/{accountId}/task-definitions
- Production - Sync Cloud Admin Serviceshttps://cloud.syncdocs.ai/api/accounts/{accountId}/task-definitions
- Development serverhttps://docs.syncdocs.ai/api/accounts/{accountId}/task-definitions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://docs.syncdocs.ai/_mock/api/sync-cloud-openapi/accounts/scd-k2j8n4m1/task-definitions \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'List of task definitions retrieved successfully
The UUID of the task definition
AI model to use for task execution
Instructions for executing the task
The type of object that will act as primary context for the task execution
Whether to persist the output of the task in the dataspace
Whether to persist logs of the task execution in the dataspace
[ { "taskDefinitionId": "550e8400-e29b-41d4-a716-446655440000", "accountId": "scd-k2j8n4m1", "modelId": "claude-4-sonnet", "name": "Categorize Document", "taskInstructions": "We have received the following document. Please select its best appropriate category from the options in the ontology", "primaryScope": "content", "persistOutput": true, "persistLogs": false, "taskNameSlug": "categorize-document", "createdAt": "2024-01-15T10:30:00Z", "lastUpdatedAt": "2024-01-15T14:30:00Z" } ]
- Mock serverhttps://docs.syncdocs.ai/_mock/api/sync-cloud-openapi/accounts/{accountId}/task-definitions/{taskDefinitionId}
- Production - Sync Cloud Admin Serviceshttps://cloud.syncdocs.ai/api/accounts/{accountId}/task-definitions/{taskDefinitionId}
- Development serverhttps://docs.syncdocs.ai/api/accounts/{accountId}/task-definitions/{taskDefinitionId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://docs.syncdocs.ai/_mock/api/sync-cloud-openapi/accounts/scd-k2j8n4m1/task-definitions/550e8400-e29b-41d4-a716-446655440000 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Task definition retrieved successfully
The UUID of the task definition
AI model to use for task execution
Instructions for executing the task
The type of object that will act as primary context for the task execution
Whether to persist the output of the task in the dataspace
Whether to persist logs of the task execution in the dataspace
{ "taskDefinitionId": "550e8400-e29b-41d4-a716-446655440000", "accountId": "scd-k2j8n4m1", "modelId": "claude-4-sonnet", "name": "Categorize Document", "taskInstructions": "We have received the following document. Please select its best appropriate category from the options in the ontology", "primaryScope": "content", "persistOutput": true, "persistLogs": false, "taskNameSlug": "categorize-document", "createdAt": "2024-01-15T10:30:00Z", "lastUpdatedAt": "2024-01-15T14:30:00Z" }
AI model to use for task execution
Instructions for executing the task
The type of object that will act as primary context for the task execution
- Mock serverhttps://docs.syncdocs.ai/_mock/api/sync-cloud-openapi/accounts/{accountId}/task-definitions/{taskDefinitionId}
- Production - Sync Cloud Admin Serviceshttps://cloud.syncdocs.ai/api/accounts/{accountId}/task-definitions/{taskDefinitionId}
- Development serverhttps://docs.syncdocs.ai/api/accounts/{accountId}/task-definitions/{taskDefinitionId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://docs.syncdocs.ai/_mock/api/sync-cloud-openapi/accounts/scd-k2j8n4m1/task-definitions/550e8400-e29b-41d4-a716-446655440000 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"modelId": "gpt-4.1",
"name": "Updated Categorize Document",
"taskInstructions": "Updated instructions for document categorization",
"primaryScope": "query",
"persistOutput": false,
"persistLogs": true
}'Task definition updated successfully
The UUID of the task definition
AI model to use for task execution
Instructions for executing the task
The type of object that will act as primary context for the task execution
Whether to persist the output of the task in the dataspace
Whether to persist logs of the task execution in the dataspace
{ "taskDefinitionId": "550e8400-e29b-41d4-a716-446655440000", "accountId": "scd-k2j8n4m1", "modelId": "claude-4-sonnet", "name": "Categorize Document", "taskInstructions": "We have received the following document. Please select its best appropriate category from the options in the ontology", "primaryScope": "content", "persistOutput": true, "persistLogs": false, "taskNameSlug": "categorize-document", "createdAt": "2024-01-15T10:30:00Z", "lastUpdatedAt": "2024-01-15T14:30:00Z" }
- Mock serverhttps://docs.syncdocs.ai/_mock/api/sync-cloud-openapi/accounts/{accountId}/task-definitions/{taskDefinitionId}
- Production - Sync Cloud Admin Serviceshttps://cloud.syncdocs.ai/api/accounts/{accountId}/task-definitions/{taskDefinitionId}
- Development serverhttps://docs.syncdocs.ai/api/accounts/{accountId}/task-definitions/{taskDefinitionId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
https://docs.syncdocs.ai/_mock/api/sync-cloud-openapi/accounts/scd-k2j8n4m1/task-definitions/550e8400-e29b-41d4-a716-446655440000 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'