Account management operations. Each account represents a unique enterprise customer with isolated resources.
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)
- Mock serverhttps://docs.syncdocs.ai/_mock/api/sync-cloud-openapi/accounts/{accountId}/ontologies/{ontologyId}/categories/{categoryId}/bindings/{metadataQueryId}
- Production - Sync Cloud Admin Serviceshttps://cloud.syncdocs.ai/api/accounts/{accountId}/ontologies/{ontologyId}/categories/{categoryId}/bindings/{metadataQueryId}
- Development serverhttps://docs.syncdocs.ai/api/accounts/{accountId}/ontologies/{ontologyId}/categories/{categoryId}/bindings/{metadataQueryId}
- 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/ontologies/{ontologyId}/categories/{categoryId}/bindings/{metadataQueryId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"uniqueIndexElement": false,
"required": true
}'{ "id": "123e4567-e89b-12d3-a456-426614174001", "name": "Research Papers", "description": "Academic research papers and publications", "metadataQueryBindings": [ "497f6eca-6276-4993-bfeb-53cbbbba6f08" ] }
- Mock serverhttps://docs.syncdocs.ai/_mock/api/sync-cloud-openapi/accounts/{accountId}/ontologies/{ontologyId}/categories/{categoryId}/bindings/{metadataQueryId}
- Production - Sync Cloud Admin Serviceshttps://cloud.syncdocs.ai/api/accounts/{accountId}/ontologies/{ontologyId}/categories/{categoryId}/bindings/{metadataQueryId}
- Development serverhttps://docs.syncdocs.ai/api/accounts/{accountId}/ontologies/{ontologyId}/categories/{categoryId}/bindings/{metadataQueryId}
- 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/ontologies/{ontologyId}/categories/{categoryId}/bindings/{metadataQueryId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Description of the category
- Mock serverhttps://docs.syncdocs.ai/_mock/api/sync-cloud-openapi/accounts/{accountId}/ontologies/{ontologyId}/categories
- Production - Sync Cloud Admin Serviceshttps://cloud.syncdocs.ai/api/accounts/{accountId}/ontologies/{ontologyId}/categories
- Development serverhttps://docs.syncdocs.ai/api/accounts/{accountId}/ontologies/{ontologyId}/categories
- 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/ontologies/123e4567-e89b-12d3-a456-426614174001/categories \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "Research Papers",
"description": "Academic research papers and publications",
"instructions": "Please ensure all papers include proper citations"
}'Category created successfully
Metadata keys bound to this category with their binding properties
Binding properties for this metadata query in this category
{ "id": "cat-123abc45", "name": "Research Papers", "description": "Academic research papers and publications", "instructions": "Please ensure all papers include proper citations", "ontologyId": "123e4567-e89b-12d3-a456-426614174001", "boundMetadataQueries": [ { … } ], "createdAt": "2024-01-15T10:30:00Z", "updatedAt": "2024-01-15T14:30:00Z" }
- Mock serverhttps://docs.syncdocs.ai/_mock/api/sync-cloud-openapi/accounts/{accountId}/ontologies/{ontologyId}/categories
- Production - Sync Cloud Admin Serviceshttps://cloud.syncdocs.ai/api/accounts/{accountId}/ontologies/{ontologyId}/categories
- Development serverhttps://docs.syncdocs.ai/api/accounts/{accountId}/ontologies/{ontologyId}/categories
- 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/ontologies/123e4567-e89b-12d3-a456-426614174001/categories \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'List of categories with their bound metadata queries and binding properties
Metadata keys bound to this category with their binding properties
Binding properties for this metadata query in this category
[ { "id": "123e4567-e89b-12d3-a456-426614174000", "name": "Sidewalk Permit", "description": "Permits for sidewalk construction and repair", "instructions": "Ensure proper traffic management during work", "ontologyId": "987fcdeb-51a2-43d1-9c4e-5f6e7d8c9a0b", "boundMetadataQueries": [ … ], "createdAt": "2025-01-15T09:00:00Z", "updatedAt": "2025-01-15T15:30:00Z" } ]
- Mock serverhttps://docs.syncdocs.ai/_mock/api/sync-cloud-openapi/accounts/{accountId}/ontologies/{ontologyId}/categories/{categoryId}
- Production - Sync Cloud Admin Serviceshttps://cloud.syncdocs.ai/api/accounts/{accountId}/ontologies/{ontologyId}/categories/{categoryId}
- Development serverhttps://docs.syncdocs.ai/api/accounts/{accountId}/ontologies/{ontologyId}/categories/{categoryId}
- 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/ontologies/{ontologyId}/categories/{categoryId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Category details with bound metadata queries and their binding properties
Metadata keys bound to this category with their binding properties
Binding properties for this metadata query in this category
{ "id": "123e4567-e89b-12d3-a456-426614174000", "name": "Sidewalk Permit", "description": "Permits for sidewalk construction and repair", "instructions": "Ensure proper traffic management during work", "ontologyId": "987fcdeb-51a2-43d1-9c4e-5f6e7d8c9a0b", "boundMetadataQueries": [ { … }, { … } ], "createdAt": "2025-01-15T09:00:00Z", "updatedAt": "2025-01-15T15:30:00Z" }
Description of the category
- Mock serverhttps://docs.syncdocs.ai/_mock/api/sync-cloud-openapi/accounts/{accountId}/ontologies/{ontologyId}/categories/{categoryId}
- Production - Sync Cloud Admin Serviceshttps://cloud.syncdocs.ai/api/accounts/{accountId}/ontologies/{ontologyId}/categories/{categoryId}
- Development serverhttps://docs.syncdocs.ai/api/accounts/{accountId}/ontologies/{ontologyId}/categories/{categoryId}
- 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/ontologies/{ontologyId}/categories/{categoryId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "Updated Research Papers",
"description": "Updated description for academic research papers",
"instructions": "Updated instructions for paper categorization"
}'Category updated successfully
Metadata keys bound to this category with their binding properties
Binding properties for this metadata query in this category
{ "id": "cat-123abc45", "name": "Research Papers", "description": "Academic research papers and publications", "instructions": "Please ensure all papers include proper citations", "ontologyId": "123e4567-e89b-12d3-a456-426614174001", "boundMetadataQueries": [ { … } ], "createdAt": "2024-01-15T10:30:00Z", "updatedAt": "2024-01-15T14:30:00Z" }
- Mock serverhttps://docs.syncdocs.ai/_mock/api/sync-cloud-openapi/accounts/{accountId}/ontologies/{ontologyId}/categories/{categoryId}
- Production - Sync Cloud Admin Serviceshttps://cloud.syncdocs.ai/api/accounts/{accountId}/ontologies/{ontologyId}/categories/{categoryId}
- Development serverhttps://docs.syncdocs.ai/api/accounts/{accountId}/ontologies/{ontologyId}/categories/{categoryId}
- 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/ontologies/{ontologyId}/categories/{categoryId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'