Account management operations. Each account represents a unique enterprise customer with isolated resources.
- Create a new AI agent for an account
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)
Description of the agent's purpose
Text instructions that act as a system prompt describing the agent's general behavior across all tasks
- Mock serverhttps://docs.syncdocs.ai/_mock/api/sync-cloud-openapi/accounts/{accountId}/agents
- Production - Sync Cloud Admin Serviceshttps://cloud.syncdocs.ai/api/accounts/{accountId}/agents
- Development serverhttps://docs.syncdocs.ai/api/accounts/{accountId}/agents
- 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/agents \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "Document Categorization Agent",
"description": "Categorizes incoming documents according to the dataspace ontology",
"instructions": "You are a document categorization agent. Analyze incoming documents and categorize them according to the provided ontology. Always provide clear reasoning for your categorization decisions.",
"defaultContext": {
"libraries": [
"01234567-89ab-cdef-0123-456789abcdef"
],
"includeWebSearchResults": false
}
}'Agent created successfully
Description of the agent's purpose
Text instructions that act as a system prompt describing the agent's general behavior across all tasks
Optional default context configuration that will be pre-selected when using this agent
ID of the user that created the agent
{ "agentId": "550e8400-e29b-41d4-a716-446655440000", "accountId": "scd-k2j8n4m1", "name": "Document Categorization Agent", "description": "Categorizes incoming documents according to the dataspace ontology", "instructions": "You are a document categorization agent. Analyze incoming documents and categorize them according to the provided ontology.", "defaultContext": { "libraries": [ … ], "includeWebSearchResults": false }, "createdBy": "123e4567-e89b-12d3-a456-426614174001", "createdAt": "2024-01-15T10:30:00Z", "lastUpdatedAt": "2024-01-15T14:30:00Z" }
- Mock serverhttps://docs.syncdocs.ai/_mock/api/sync-cloud-openapi/accounts/{accountId}/agents
- Production - Sync Cloud Admin Serviceshttps://cloud.syncdocs.ai/api/accounts/{accountId}/agents
- Development serverhttps://docs.syncdocs.ai/api/accounts/{accountId}/agents
- 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/agents \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'List of agents retrieved successfully
Description of the agent's purpose
Text instructions that act as a system prompt describing the agent's general behavior across all tasks
Optional default context configuration that will be pre-selected when using this agent
ID of the user that created the agent
[ { "agentId": "550e8400-e29b-41d4-a716-446655440000", "accountId": "scd-k2j8n4m1", "name": "Document Categorization Agent", "description": "Categorizes incoming documents according to the dataspace ontology", "instructions": "You are a document categorization agent. Analyze incoming documents and categorize them according to the provided ontology.", "defaultContext": { … }, "createdBy": "123e4567-e89b-12d3-a456-426614174001", "createdAt": "2024-01-15T10:30:00Z", "lastUpdatedAt": "2024-01-15T14:30:00Z" } ]
- Mock serverhttps://docs.syncdocs.ai/_mock/api/sync-cloud-openapi/accounts/{accountId}/agents/{agentId}
- Production - Sync Cloud Admin Serviceshttps://cloud.syncdocs.ai/api/accounts/{accountId}/agents/{agentId}
- Development serverhttps://docs.syncdocs.ai/api/accounts/{accountId}/agents/{agentId}
- 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/agents/550e8400-e29b-41d4-a716-446655440000 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Agent retrieved successfully
Description of the agent's purpose
Text instructions that act as a system prompt describing the agent's general behavior across all tasks
Optional default context configuration that will be pre-selected when using this agent
ID of the user that created the agent
{ "agentId": "550e8400-e29b-41d4-a716-446655440000", "accountId": "scd-k2j8n4m1", "name": "Document Categorization Agent", "description": "Categorizes incoming documents according to the dataspace ontology", "instructions": "You are a document categorization agent. Analyze incoming documents and categorize them according to the provided ontology.", "defaultContext": { "libraries": [ … ], "includeWebSearchResults": false }, "createdBy": "123e4567-e89b-12d3-a456-426614174001", "createdAt": "2024-01-15T10:30:00Z", "lastUpdatedAt": "2024-01-15T14:30:00Z" }
Description of the agent's purpose
Text instructions that act as a system prompt describing the agent's general behavior across all tasks
- Mock serverhttps://docs.syncdocs.ai/_mock/api/sync-cloud-openapi/accounts/{accountId}/agents/{agentId}
- Production - Sync Cloud Admin Serviceshttps://cloud.syncdocs.ai/api/accounts/{accountId}/agents/{agentId}
- Development serverhttps://docs.syncdocs.ai/api/accounts/{accountId}/agents/{agentId}
- 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/agents/550e8400-e29b-41d4-a716-446655440000 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "Updated Document Categorization Agent",
"description": "Updated description for document categorization",
"instructions": "Updated instructions for document categorization behavior",
"defaultContext": {
"libraries": [
"01234567-89ab-cdef-0123-456789abcdef"
],
"includeWebSearchResults": false
}
}'Agent updated successfully
Description of the agent's purpose
Text instructions that act as a system prompt describing the agent's general behavior across all tasks
Optional default context configuration that will be pre-selected when using this agent
ID of the user that created the agent
{ "agentId": "550e8400-e29b-41d4-a716-446655440000", "accountId": "scd-k2j8n4m1", "name": "Document Categorization Agent", "description": "Categorizes incoming documents according to the dataspace ontology", "instructions": "You are a document categorization agent. Analyze incoming documents and categorize them according to the provided ontology.", "defaultContext": { "libraries": [ … ], "includeWebSearchResults": false }, "createdBy": "123e4567-e89b-12d3-a456-426614174001", "createdAt": "2024-01-15T10:30:00Z", "lastUpdatedAt": "2024-01-15T14:30:00Z" }
- Mock serverhttps://docs.syncdocs.ai/_mock/api/sync-cloud-openapi/accounts/{accountId}/agents/{agentId}
- Production - Sync Cloud Admin Serviceshttps://cloud.syncdocs.ai/api/accounts/{accountId}/agents/{agentId}
- Development serverhttps://docs.syncdocs.ai/api/accounts/{accountId}/agents/{agentId}
- 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/agents/550e8400-e29b-41d4-a716-446655440000 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'