Skip to content

Workspace sync

Preview workspace fork

Preview deployed workflows and explicitly selected resources for a new child workspace. Requires source workspace Admin access and permission to create a workspace in its organization. The read-only result supplies the fingerprint for Fork workspace with the same choices. Billing-enabled deployments require Enterprise. Billing-disabled deployments require forking to be enabled by deployment feature configuration, such as `FORKING_ENABLED`. Workspace API keys return `403`; use a personal API key or scoped OAuth token. OAuth scope: `api:write`.

POST/api/v2/workspaces/{workspaceId}/fork/preview

Preview deployed workflows and explicitly selected resources for a new child workspace. Requires source workspace Admin access and permission to create a workspace in its organization. The read-only result supplies the fingerprint for Fork workspace with the same choices. Billing-enabled deployments require Enterprise. Billing-disabled deployments require forking to be enabled by deployment feature configuration, such as FORKING_ENABLED. Workspace API keys return 403; use a personal API key or scoped OAuth token.

OAuth scope: api:write.

Authentication

Send a personal or workspace API key in X-API-Key. See key types and access; operations that reject workspace keys say so in their description.

Send X-API-Key in the request header.

Alternatively

Send a Sim OAuth access token in Authorization: Bearer. See OAuth authentication and scopes.

Authorization: Bearer YOUR_ACCESS_TOKEN

Required scopes: api:write

OAuth flows
json
{
  "authorizationCode": {
    "authorizationUrl": "https://www.sim.ai/api/auth/oauth2/authorize",
    "tokenUrl": "https://www.sim.ai/api/auth/oauth2/token",
    "refreshUrl": "https://www.sim.ai/api/auth/oauth2/token",
    "scopes": {
      "api:read": "Read your workspaces, workflows, files, tables, and logs",
      "api:write": "Read, create, change, run, and delete resources in your workspaces",
      "offline_access": "Stay signed in without asking again"
    }
  }
}

OAuth scope: api:write.

Path parameters

workspaceIdstringRequired

Explicit current workspace scope.

minLength
1
maxLength
128

Request body

Required

Optional child name and explicitly selected resource copies.

object

Optional child name and explicitly selected resource copies.

2 fields
namestring

Display name of the workflow or workspace.

minLength
1
maxLength
100
copyobject

Explicit resource selections to copy into the new fork; omitted resource kinds are not copied.

7 fields
filesarray

Workspace file IDs to copy.

maxItems
2000
Schema details
Array itemstring
minLength
1
tablesarray

Source table identifiers whose schemas and rows are copied.

maxItems
2000
Schema details
Array itemstring
minLength
1
knowledgeBasesarray

Source knowledge base identifiers whose documents and content are copied.

maxItems
2000
Schema details
Array itemstring
minLength
1
customToolsarray

Source custom tool identifiers to copy.

maxItems
2000
Schema details
Array itemstring
minLength
1
skillsarray

Source skill identifiers to copy.

maxItems
2000
Schema details
Array itemstring
minLength
1
mcpServersarray

External MCP server identifiers to copy; OAuth connections require authorization in the destination.

maxItems
2000
Schema details
Array itemstring
minLength
1
workflowMcpServersarray

Workflow-publishing MCP server identifiers to copy as empty configuration shells.

maxItems
2000
Schema details
Array itemstring
minLength
1

Additional properties are not allowed.

Additional properties are not allowed.

Responses

200

Deployed source workflows, selected-copy count, and a preview fingerprint.

object

Deployed source workflows, selected-copy count, and a preview fingerprint.

1 field
dataobjectRequired

Response data.

5 fields
previewFingerprintstringRequired

Fingerprint to submit when applying this preview with the same choices. Preview again after changing a choice.

pattern
^[a-f0-9]{64}$
sourceWorkspaceIdstringRequired

Canonical workspace the workflows and resources are copied from.

minLength
1
maxLength
128
workflowsarrayRequired

Eligible workflows and their planned actions.

maxItems
1000
Schema details
Array itemobject
2 fields
sourceWorkflowIdstringRequired

Workflow identifier in the source workspace.

minLength
1
namestringRequired

Display name of the workflow or workspace.

maxLength
1024

Additional properties are not allowed.

selectedResourceCountintegerRequired

Number of resources explicitly selected for copying.

minimum
0
maximum
9007199254740991
draftOnlybooleanRequired

True because fork creation produces undeployed drafts.

const
true

Additional properties are not allowed.

Additional properties are not allowed.

Was this helpful?
Suggest an edit