# Preview workspace push (/api-reference/workspace-sync/previewWorkspacePush)

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

Preview changes from this workspace into the other workspace along a direct fork edge. Requires Admin access to both workspaces. The plan lists workflows to create, replace, or archive; replacements overwrite target drafts with the source deployment. Proposed mappings are not saved. Dependent choices use source workflow, block, and field IDs. 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

```json

{
  "requirements": [
    {
      "apiKey": []
    },
    {
      "oauthBearer": [
        "api:write"
      ]
    }
  ],
  "schemes": {
    "apiKey": {
      "type": "apiKey",
      "in": "header",
      "name": "X-API-Key",
      "description": "Send a personal or workspace API key in `X-API-Key`. See [key types and access](https://docs.sim.ai/api-reference/authentication#key-types); operations that reject workspace keys say so in their description."
    },
    "oauthBearer": {
      "type": "oauth2",
      "description": "Send a Sim OAuth access token in `Authorization: Bearer`. See [OAuth authentication and scopes](https://docs.sim.ai/api-reference/authentication#oauth-access-tokens).",
      "flows": {
        "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"
          }
        }
      }
    }
  }
}

```

Required OAuth scope: `api:write`.

## Request examples

### cURL

```bash
curl --request POST 'https://www.sim.ai/api/v2/workspaces/string/fork/push/preview' \
  --header 'X-API-Key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "otherWorkspaceId": "string"
}'
```

### JavaScript

```javascript
const response = await fetch("https://www.sim.ai/api/v2/workspaces/string/fork/push/preview", {
  "method": "POST",
  "headers": {
    "X-API-Key": "YOUR_API_KEY",
    "Content-Type": "application/json"
  },
  "body": "{\n  \"otherWorkspaceId\": \"string\"\n}"
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const result = await response.json();
```

### Python

```python
import requests

response = requests.request(
    "POST",
    "https://www.sim.ai/api/v2/workspaces/string/fork/push/preview",
    headers={
  "X-API-Key": "YOUR_API_KEY",
  "Content-Type": "application/json"
},
    data="{\n  \"otherWorkspaceId\": \"string\"\n}",
)
response.raise_for_status()
result = response.json()
```

### Go

```go
package main

import (
  "io"
  "net/http"
  "os"
  "strings"
)

func check(err error) {
  if err != nil { panic(err) }
}

func must[T any](value T, err error) T {
  check(err)
  return value
}

func main() {

  request := must(http.NewRequest("POST", "https://www.sim.ai/api/v2/workspaces/string/fork/push/preview", strings.NewReader("{\n  \"otherWorkspaceId\": \"string\"\n}")))
  request.Header.Set("X-API-Key", "YOUR_API_KEY")
  request.Header.Set("Content-Type", "application/json")
  response := must(http.DefaultClient.Do(request))
  defer response.Body.Close()
  if response.StatusCode >= 400 { panic(response.Status) }
  must(io.Copy(os.Stdout, response.Body))
}
```

### Java

```java
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

public class Example {
  public static void main(String[] args) throws Exception {
    var builder = HttpRequest.newBuilder(URI.create("https://www.sim.ai/api/v2/workspaces/string/fork/push/preview"));
    builder.header("X-API-Key", "YOUR_API_KEY");
    builder.header("Content-Type", "application/json");
    var request = builder.method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"otherWorkspaceId\": \"string\"\n}")).build();
    var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofInputStream());
    try (var body = response.body()) {
      if (response.statusCode() >= 400) throw new IllegalStateException("HTTP " + response.statusCode());
      body.transferTo(System.out);
    }
  }
}
```

### C#

```csharp
using System;
using System.IO;
using System.Net.Http;
using System.Text;

using var client = new HttpClient();
using var request = new HttpRequestMessage(new HttpMethod("POST"), "https://www.sim.ai/api/v2/workspaces/string/fork/push/preview");
request.Content = new StringContent("{\n  \"otherWorkspaceId\": \"string\"\n}", Encoding.UTF8);
request.Headers.TryAddWithoutValidation("X-API-Key", "YOUR_API_KEY");
request.Content!.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json");
using var response = await client.SendAsync(request, HttpCompletionOption.ResponseHeadersRead);
response.EnsureSuccessStatusCode();
await response.Content.CopyToAsync(Console.OpenStandardOutput());
```

## Parameters

```json

[
  {
    "name": "workspaceId",
    "in": "path",
    "required": true,
    "description": "Explicit current workspace scope.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "description": "Explicit current workspace scope."
    }
  }
]

```

## Request body

```json

{
  "required": true,
  "description": "Other workspace and proposed source-to-target sync choices.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "properties": {
          "otherWorkspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "description": "Workspace on the other side of the direct fork edge."
          },
          "mappings": {
            "description": "Proposed mapping entries addressed by resource type and `sourceId`. Preview does not save them; apply commits them with the sync.",
            "maxItems": 5000,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "resourceType": {
                  "type": "string",
                  "enum": [
                    "oauth_credential",
                    "service_account_credential",
                    "env_var",
                    "table",
                    "knowledge_base",
                    "file",
                    "file_folder",
                    "mcp_server",
                    "custom_block",
                    "custom_tool",
                    "skill",
                    "sandbox"
                  ],
                  "description": "Resource type stored on the canonical parent/child edge."
                },
                "sourceId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 4096,
                  "description": "Source resource identifier in the canonical source workspace."
                },
                "targetId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "Authorized destination identifier, or null to clear the mapping."
                }
              },
              "required": [
                "resourceType",
                "sourceId",
                "targetId"
              ],
              "additionalProperties": false
            }
          },
          "dependentValues": {
            "description": "Destination-specific choices addressed by source workflow ID, source block ID, and field key. Omission keeps saved overrides; an explicit empty array clears them.",
            "maxItems": 2000,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "sourceWorkflowId": {
                  "type": "string",
                  "minLength": 1,
                  "description": "Workflow identifier in the source workspace."
                },
                "sourceBlockId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256,
                  "description": "Block identifier in the source workflow."
                },
                "subBlockKey": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 1024,
                  "description": "Registered source field key, including the tool index for nested Agent fields."
                },
                "value": {
                  "type": "string",
                  "maxLength": 65536,
                  "description": "Destination value for the registered dependent field."
                }
              },
              "required": [
                "sourceWorkflowId",
                "sourceBlockId",
                "subBlockKey",
                "value"
              ],
              "additionalProperties": false
            }
          },
          "copyResources": {
            "description": "Explicit source resources to copy before syncing the workflows.",
            "type": "object",
            "properties": {
              "knowledgeBases": {
                "description": "Source knowledge base identifiers whose documents and content are copied.",
                "maxItems": 2000,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "tables": {
                "description": "Source table identifiers whose schemas and rows are copied.",
                "maxItems": 2000,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "customTools": {
                "description": "Source custom tool identifiers to copy.",
                "maxItems": 2000,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "skills": {
                "description": "Source skill identifiers to copy.",
                "maxItems": 2000,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "files": {
                "description": "Workspace file storage keys to copy.",
                "maxItems": 2000,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "mcpServers": {
                "description": "External MCP server identifiers to copy; OAuth connections require authorization in the destination.",
                "maxItems": 2000,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1
                }
              }
            },
            "additionalProperties": false
          },
          "dropReferences": {
            "description": "Source-deleted references explicitly acknowledged for removal; live source references cannot be dropped.",
            "maxItems": 2000,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "enum": [
                    "credential",
                    "env-var",
                    "knowledge-base",
                    "knowledge-document",
                    "table",
                    "file",
                    "file-folder",
                    "mcp-server",
                    "custom-tool",
                    "custom-block",
                    "skill",
                    "sandbox"
                  ],
                  "description": "Resource or operation kind."
                },
                "sourceId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 4096,
                  "description": "Source resource identifier in the canonical source workspace."
                }
              },
              "required": [
                "kind",
                "sourceId"
              ],
              "additionalProperties": false
            }
          },
          "triggerMappings": {
            "description": "Public trigger path choices from preview.triggerSlots, addressed by source workflow and block IDs. Duplicate or unavailable choices are rejected.",
            "maxItems": 500,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "sourceWorkflowId": {
                  "type": "string",
                  "minLength": 1,
                  "description": "Workflow identifier in the source workspace."
                },
                "sourceBlockId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256,
                  "description": "Source trigger block identifier from the sync preview."
                },
                "adoptPath": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "An adoptable path offered for this trigger, or null to allocate a new path."
                }
              },
              "required": [
                "sourceWorkflowId",
                "sourceBlockId",
                "adoptPath"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "otherWorkspaceId"
        ],
        "additionalProperties": false,
        "title": "Preview workspace push request",
        "description": "Other workspace and proposed source-to-target sync choices."
      }
    }
  }
}

```

## Responses

### 200

```json

{
  "description": "Current-to-other workflow actions, required choices, and preview fingerprint.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "previewFingerprint": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$",
                "description": "Fingerprint to submit when applying this preview with the same choices. Preview again after changing a choice."
              },
              "sourceWorkspaceId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "description": "Canonical workspace the workflows and resources are copied from."
              },
              "targetWorkspaceId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "description": "Canonical workspace receiving the changes."
              },
              "ready": {
                "type": "boolean",
                "description": "Whether required bindings, configuration, and sync blockers are resolved. This does not mean the target is already deployed."
              },
              "workflows": {
                "maxItems": 2000,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "action": {
                      "type": "string",
                      "enum": [
                        "create",
                        "replace",
                        "archive"
                      ],
                      "description": "Planned workflow creation, replacement, or archival."
                    },
                    "sourceWorkflowId": {
                      "description": "Workflow identifier in the source workspace.",
                      "type": "string",
                      "minLength": 1
                    },
                    "targetWorkflowId": {
                      "description": "Existing target workflow identifier; absent when apply will create a new target.",
                      "type": "string",
                      "minLength": 1
                    },
                    "name": {
                      "type": "string",
                      "maxLength": 1024,
                      "description": "Display name of the workflow or workspace."
                    },
                    "comparison": {
                      "description": "Last successfully synced source deployment compared with the source deployment pinned by this preview. Absent for archive actions.",
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "status": {
                              "type": "string",
                              "const": "available",
                              "description": "Both exact source snapshots are available."
                            },
                            "base": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "description": "Exact source deployment snapshot identifier."
                                },
                                "version": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 2147483647,
                                  "description": "Saved version number in the source workflow."
                                }
                              },
                              "required": [
                                "id",
                                "version"
                              ],
                              "additionalProperties": false,
                              "description": "Source deployment last successfully synced to this destination."
                            },
                            "target": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "description": "Exact source deployment snapshot identifier."
                                },
                                "version": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 2147483647,
                                  "description": "Saved version number in the source workflow."
                                }
                              },
                              "required": [
                                "id",
                                "version"
                              ],
                              "additionalProperties": false,
                              "description": "Pinned source deployment that this sync would copy."
                            }
                          },
                          "required": [
                            "status",
                            "base",
                            "target"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "status": {
                              "type": "string",
                              "const": "unavailable",
                              "description": "The source baseline cannot be compared."
                            },
                            "reason": {
                              "type": "string",
                              "enum": [
                                "new_workflow",
                                "no_baseline",
                                "missing_baseline"
                              ],
                              "description": "New destination workflow, no recorded successful sync, or deleted baseline snapshot."
                            },
                            "target": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "description": "Exact source deployment snapshot identifier."
                                },
                                "version": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 2147483647,
                                  "description": "Saved version number in the source workflow."
                                }
                              },
                              "required": [
                                "id",
                                "version"
                              ],
                              "additionalProperties": false,
                              "description": "Pinned source deployment that this sync would copy."
                            }
                          },
                          "required": [
                            "status",
                            "reason",
                            "target"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "required": [
                    "action",
                    "name"
                  ],
                  "additionalProperties": false
                },
                "description": "Eligible workflows and their planned actions."
              },
              "unresolvedBindings": {
                "maxItems": 10000,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "maxLength": 256,
                      "description": "Resource or operation kind."
                    },
                    "sourceId": {
                      "type": "string",
                      "maxLength": 4096,
                      "description": "Source resource identifier in the canonical source workspace."
                    },
                    "blockName": {
                      "description": "Display name of the affected source block.",
                      "type": "string",
                      "maxLength": 1024
                    },
                    "reason": {
                      "description": "Structured explanation of the unresolved binding.",
                      "type": "string",
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "kind",
                    "sourceId"
                  ],
                  "additionalProperties": false
                },
                "description": "Source references that still require destination mappings or explicit copy choices."
              },
              "configuration": {
                "maxItems": 10000,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "sourceWorkflowId": {
                      "type": "string",
                      "minLength": 1,
                      "description": "Workflow identifier in the source workspace."
                    },
                    "sourceBlockId": {
                      "type": "string",
                      "maxLength": 256,
                      "description": "Block identifier in the source workflow."
                    },
                    "subBlockKey": {
                      "type": "string",
                      "maxLength": 1024,
                      "description": "Registered source field key, including the tool index for nested Agent fields."
                    },
                    "title": {
                      "type": "string",
                      "maxLength": 1024,
                      "description": "Human-readable configuration field label."
                    },
                    "required": {
                      "type": "boolean",
                      "description": "Whether the reference or configuration is required for this operation."
                    },
                    "currentValue": {
                      "type": "string",
                      "maxLength": 65536,
                      "description": "Persisted sync override or proposed override; empty when neither is configured."
                    },
                    "multiSelect": {
                      "description": "Whether the field accepts comma-separated selections.",
                      "type": "boolean"
                    },
                    "selectorKey": {
                      "description": "Registered selector key for discovering this field’s options.",
                      "type": "string",
                      "maxLength": 256
                    },
                    "discoveryWorkspaceId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "description": "Workspace scope for selector discovery: source for a parent being copied, otherwise destination."
                    },
                    "context": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string",
                        "maxLength": 256
                      },
                      "additionalProperties": {
                        "type": "string",
                        "maxLength": 4096
                      },
                      "description": "Allowlisted selector dependencies scoped to discoveryWorkspaceId."
                    },
                    "parentKind": {
                      "type": "string",
                      "enum": [
                        "credential",
                        "env-var",
                        "knowledge-base",
                        "knowledge-document",
                        "table",
                        "file",
                        "file-folder",
                        "mcp-server",
                        "custom-tool",
                        "custom-block",
                        "skill",
                        "sandbox"
                      ],
                      "description": "Resource kind that owns this dependent configuration."
                    },
                    "parentSourceId": {
                      "type": "string",
                      "maxLength": 4096,
                      "description": "Source identifier of the parent resource being mapped."
                    },
                    "parentContextKey": {
                      "description": "Selector context key supplied by the mapped parent resource.",
                      "type": "string",
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "sourceWorkflowId",
                    "sourceBlockId",
                    "subBlockKey",
                    "title",
                    "required",
                    "currentValue",
                    "discoveryWorkspaceId",
                    "context",
                    "parentKind",
                    "parentSourceId"
                  ],
                  "additionalProperties": false
                },
                "description": "Dependent fields that may need destination-specific values."
              },
              "excludedTargets": {
                "maxItems": 1000,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "description": "Resource identifier."
                    },
                    "name": {
                      "type": "string",
                      "maxLength": 1024,
                      "description": "Display name of the workflow or workspace."
                    }
                  },
                  "required": [
                    "id",
                    "name"
                  ],
                  "additionalProperties": false
                },
                "description": "Target workflows explicitly excluded from sync."
              },
              "triggerSlots": {
                "maxItems": 10000,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "sourceWorkflowId": {
                      "type": "string",
                      "minLength": 1,
                      "description": "Workflow identifier in the source workspace."
                    },
                    "sourceBlockId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256,
                      "description": "Stable source trigger block identifier to use in trigger mappings."
                    },
                    "blockName": {
                      "type": "string",
                      "maxLength": 1024,
                      "description": "Display name of the source trigger block."
                    },
                    "workflowName": {
                      "type": "string",
                      "maxLength": 1024,
                      "description": "Display name of the source workflow."
                    },
                    "ownPath": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 4096
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Existing target trigger path, preserved automatically and not configurable."
                    },
                    "adoptablePaths": {
                      "maxItems": 1000,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 4096
                      },
                      "description": "Retiring paths in the same target workflow with a compatible trigger provider."
                    },
                    "defaultAdoptPath": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 4096
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Default adoption when ownPath is null; null then allocates a new path."
                    }
                  },
                  "required": [
                    "sourceWorkflowId",
                    "sourceBlockId",
                    "blockName",
                    "workflowName",
                    "ownPath",
                    "adoptablePaths",
                    "defaultAdoptPath"
                  ],
                  "additionalProperties": false
                },
                "description": "Source triggers and the target paths available for explicit adoption choices."
              },
              "triggerUrlChanges": {
                "maxItems": 1000,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "workflowName": {
                      "type": "string",
                      "maxLength": 1024,
                      "description": "Name of the affected workflow."
                    },
                    "path": {
                      "type": "string",
                      "maxLength": 4096,
                      "description": "Public trigger path that stops serving after this sync."
                    }
                  },
                  "required": [
                    "workflowName",
                    "path"
                  ],
                  "additionalProperties": false
                },
                "description": "Retiring target trigger URLs no arriving trigger adopts."
              }
            },
            "required": [
              "previewFingerprint",
              "sourceWorkspaceId",
              "targetWorkspaceId",
              "ready",
              "workflows",
              "unresolvedBindings",
              "configuration",
              "excludedTargets",
              "triggerSlots",
              "triggerUrlChanges"
            ],
            "additionalProperties": false,
            "title": "Workspace sync preview",
            "description": "Response data."
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "Preview workspace push response",
        "description": "Current-to-other workflow actions, required choices, and preview fingerprint.",
        "examples": [
          {
            "data": {
              "previewFingerprint": "c7d158e8cbc5137a2d0a4fc37ddaeb51a3b9757485679a6ad82a7de3fdac4e3a",
              "sourceWorkspaceId": "e4f8d2b6-9a1c-4e3d-8b7f-5c0a2d9e6f13",
              "targetWorkspaceId": "9f4c2a10-3b7e-4d58-8f6a-2c1d0e5b7a94",
              "ready": true,
              "workflows": [],
              "unresolvedBindings": [],
              "configuration": [],
              "excludedTargets": [],
              "triggerSlots": [],
              "triggerUrlChanges": []
            }
          }
        ]
      },
      "examples": {
        "example1": {
          "summary": "Response example 1",
          "value": {
            "data": {
              "previewFingerprint": "c7d158e8cbc5137a2d0a4fc37ddaeb51a3b9757485679a6ad82a7de3fdac4e3a",
              "sourceWorkspaceId": "e4f8d2b6-9a1c-4e3d-8b7f-5c0a2d9e6f13",
              "targetWorkspaceId": "9f4c2a10-3b7e-4d58-8f6a-2c1d0e5b7a94",
              "ready": true,
              "workflows": [],
              "unresolvedBindings": [],
              "configuration": [],
              "excludedTargets": [],
              "triggerSlots": [],
              "triggerUrlChanges": []
            }
          }
        }
      }
    }
  }
}

```

### 400

```json

{
  "description": "The request is invalid. This includes a query parameter sent with no value (`?limit=`, `?search=`), which is rejected rather than read as zero, empty, or the parameter default — omit the parameter instead.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "description": "Stable machine-readable error code."
              },
              "message": {
                "type": "string",
                "description": "Human-readable explanation of the error."
              },
              "details": {
                "description": "Structured error context whose keys depend on the error. Actionable `403` responses use the `V2ActionableForbiddenDetails` shape; validation failures may return issue arrays instead.",
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "code": {
                        "type": "string",
                        "enum": [
                          "INSUFFICIENT_WORKSPACE_ROLE",
                          "PERSONAL_API_KEYS_DISABLED",
                          "WORKSPACE_KEY_OPERATION_NOT_PERMITTED",
                          "PRINCIPAL_KIND_NOT_PERMITTED",
                          "ORGANIZATION_MEMBERSHIP_REQUIRED",
                          "ORGANIZATION_ADMIN_REQUIRED",
                          "ENTERPRISE_PLAN_REQUIRED",
                          "SSO_DISABLED",
                          "SSO_DOMAIN_NOT_VERIFIED",
                          "SSO_PROVIDER_LIMIT_REACHED",
                          "ORGANIZATION_PLAN_REQUIRED",
                          "AUDIT_LOGS_DISABLED",
                          "ACCESS_REQUESTS_DISABLED",
                          "ACCESS_REQUEST_ORGANIZATION_REQUIRED",
                          "SKILL_EDITOR_ACCESS_REQUIRED",
                          "SECRET_ADMIN_ACCESS_REQUIRED",
                          "WORKSPACE_RESOURCE_LIMIT_REACHED",
                          "PUBLIC_SHARING_NOT_ALLOWED",
                          "CREDENTIAL_ADMIN_ACCESS_REQUIRED",
                          "MCP_SERVER_URL_NOT_ALLOWED",
                          "WORKSPACE_PLAN_CAPABILITY_REQUIRED",
                          "CHAT_AUTH_MODE_NOT_PERMITTED",
                          "CONNECTOR_MANAGED_RESOURCE_READ_ONLY",
                          "PERMISSION_GROUP_CAPABILITY_BLOCKED",
                          "INTEGRATION_NOT_ALLOWED",
                          "INSUFFICIENT_SCOPE",
                          "READ_ONLY_API_KEY",
                          "SCIM_MANAGED_MEMBERSHIP",
                          "FEATURE_NOT_ENABLED"
                        ],
                        "title": "Forbidden detail code",
                        "description": "Stable cause code for an actionable `403` response."
                      }
                    },
                    "required": [
                      "code"
                    ],
                    "additionalProperties": {
                      "description": "Additional context for this refusal."
                    },
                    "title": "Actionable forbidden details",
                    "description": "Machine-readable cause and optional context for an actionable `403` response."
                  },
                  {
                    "description": "Other structured context defined by the specific error."
                  }
                ]
              },
              "requestId": {
                "description": "Identifier of this request, the same id as the `x-request-id` response header. Quote it when contacting support.",
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "additionalProperties": false,
            "description": "Canonical error details."
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false,
        "title": "v2 error response",
        "description": "Canonical error envelope returned by the public v2 API.",
        "examples": [
          {
            "error": {
              "code": "BAD_REQUEST",
              "message": "The request is invalid."
            }
          }
        ]
      },
      "example": {
        "error": {
          "code": "BAD_REQUEST",
          "message": "Invalid request"
        }
      }
    }
  }
}

```

### 401

```json

{
  "description": "The API credential is missing or invalid.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "description": "Stable machine-readable error code."
              },
              "message": {
                "type": "string",
                "description": "Human-readable explanation of the error."
              },
              "details": {
                "description": "Structured error context whose keys depend on the error. Actionable `403` responses use the `V2ActionableForbiddenDetails` shape; validation failures may return issue arrays instead.",
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "code": {
                        "type": "string",
                        "enum": [
                          "INSUFFICIENT_WORKSPACE_ROLE",
                          "PERSONAL_API_KEYS_DISABLED",
                          "WORKSPACE_KEY_OPERATION_NOT_PERMITTED",
                          "PRINCIPAL_KIND_NOT_PERMITTED",
                          "ORGANIZATION_MEMBERSHIP_REQUIRED",
                          "ORGANIZATION_ADMIN_REQUIRED",
                          "ENTERPRISE_PLAN_REQUIRED",
                          "SSO_DISABLED",
                          "SSO_DOMAIN_NOT_VERIFIED",
                          "SSO_PROVIDER_LIMIT_REACHED",
                          "ORGANIZATION_PLAN_REQUIRED",
                          "AUDIT_LOGS_DISABLED",
                          "ACCESS_REQUESTS_DISABLED",
                          "ACCESS_REQUEST_ORGANIZATION_REQUIRED",
                          "SKILL_EDITOR_ACCESS_REQUIRED",
                          "SECRET_ADMIN_ACCESS_REQUIRED",
                          "WORKSPACE_RESOURCE_LIMIT_REACHED",
                          "PUBLIC_SHARING_NOT_ALLOWED",
                          "CREDENTIAL_ADMIN_ACCESS_REQUIRED",
                          "MCP_SERVER_URL_NOT_ALLOWED",
                          "WORKSPACE_PLAN_CAPABILITY_REQUIRED",
                          "CHAT_AUTH_MODE_NOT_PERMITTED",
                          "CONNECTOR_MANAGED_RESOURCE_READ_ONLY",
                          "PERMISSION_GROUP_CAPABILITY_BLOCKED",
                          "INTEGRATION_NOT_ALLOWED",
                          "INSUFFICIENT_SCOPE",
                          "READ_ONLY_API_KEY",
                          "SCIM_MANAGED_MEMBERSHIP",
                          "FEATURE_NOT_ENABLED"
                        ],
                        "title": "Forbidden detail code",
                        "description": "Stable cause code for an actionable `403` response."
                      }
                    },
                    "required": [
                      "code"
                    ],
                    "additionalProperties": {
                      "description": "Additional context for this refusal."
                    },
                    "title": "Actionable forbidden details",
                    "description": "Machine-readable cause and optional context for an actionable `403` response."
                  },
                  {
                    "description": "Other structured context defined by the specific error."
                  }
                ]
              },
              "requestId": {
                "description": "Identifier of this request, the same id as the `x-request-id` response header. Quote it when contacting support.",
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "additionalProperties": false,
            "description": "Canonical error details."
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false,
        "title": "v2 error response",
        "description": "Canonical error envelope returned by the public v2 API.",
        "examples": [
          {
            "error": {
              "code": "BAD_REQUEST",
              "message": "The request is invalid."
            }
          }
        ]
      },
      "example": {
        "error": {
          "code": "UNAUTHORIZED",
          "message": "Authentication required"
        }
      }
    }
  }
}

```

### 403

```json

{
  "description": "The caller lacks the rights this operation requires. When the cause is one a caller can act on, `error.details.code` names it. A resource in a workspace the caller cannot reach at all answers `404` instead, so absence and denial are indistinguishable.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "description": "Stable machine-readable error code."
              },
              "message": {
                "type": "string",
                "description": "Human-readable explanation of the error."
              },
              "details": {
                "description": "Structured error context whose keys depend on the error. Actionable `403` responses use the `V2ActionableForbiddenDetails` shape; validation failures may return issue arrays instead.",
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "code": {
                        "type": "string",
                        "enum": [
                          "INSUFFICIENT_WORKSPACE_ROLE",
                          "PERSONAL_API_KEYS_DISABLED",
                          "WORKSPACE_KEY_OPERATION_NOT_PERMITTED",
                          "PRINCIPAL_KIND_NOT_PERMITTED",
                          "ORGANIZATION_MEMBERSHIP_REQUIRED",
                          "ORGANIZATION_ADMIN_REQUIRED",
                          "ENTERPRISE_PLAN_REQUIRED",
                          "SSO_DISABLED",
                          "SSO_DOMAIN_NOT_VERIFIED",
                          "SSO_PROVIDER_LIMIT_REACHED",
                          "ORGANIZATION_PLAN_REQUIRED",
                          "AUDIT_LOGS_DISABLED",
                          "ACCESS_REQUESTS_DISABLED",
                          "ACCESS_REQUEST_ORGANIZATION_REQUIRED",
                          "SKILL_EDITOR_ACCESS_REQUIRED",
                          "SECRET_ADMIN_ACCESS_REQUIRED",
                          "WORKSPACE_RESOURCE_LIMIT_REACHED",
                          "PUBLIC_SHARING_NOT_ALLOWED",
                          "CREDENTIAL_ADMIN_ACCESS_REQUIRED",
                          "MCP_SERVER_URL_NOT_ALLOWED",
                          "WORKSPACE_PLAN_CAPABILITY_REQUIRED",
                          "CHAT_AUTH_MODE_NOT_PERMITTED",
                          "CONNECTOR_MANAGED_RESOURCE_READ_ONLY",
                          "PERMISSION_GROUP_CAPABILITY_BLOCKED",
                          "INTEGRATION_NOT_ALLOWED",
                          "INSUFFICIENT_SCOPE",
                          "READ_ONLY_API_KEY",
                          "SCIM_MANAGED_MEMBERSHIP",
                          "FEATURE_NOT_ENABLED"
                        ],
                        "title": "Forbidden detail code",
                        "description": "Stable cause code for an actionable `403` response."
                      }
                    },
                    "required": [
                      "code"
                    ],
                    "additionalProperties": {
                      "description": "Additional context for this refusal."
                    },
                    "title": "Actionable forbidden details",
                    "description": "Machine-readable cause and optional context for an actionable `403` response."
                  },
                  {
                    "description": "Other structured context defined by the specific error."
                  }
                ]
              },
              "requestId": {
                "description": "Identifier of this request, the same id as the `x-request-id` response header. Quote it when contacting support.",
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "additionalProperties": false,
            "description": "Canonical error details."
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false,
        "title": "v2 error response",
        "description": "Canonical error envelope returned by the public v2 API.",
        "examples": [
          {
            "error": {
              "code": "BAD_REQUEST",
              "message": "The request is invalid."
            }
          }
        ]
      },
      "example": {
        "error": {
          "code": "FORBIDDEN",
          "message": "Insufficient workspace permissions",
          "details": {
            "code": "INSUFFICIENT_WORKSPACE_ROLE"
          }
        }
      }
    }
  }
}

```

### 404

```json

{
  "description": "The requested resource was not found.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "description": "Stable machine-readable error code."
              },
              "message": {
                "type": "string",
                "description": "Human-readable explanation of the error."
              },
              "details": {
                "description": "Structured error context whose keys depend on the error. Actionable `403` responses use the `V2ActionableForbiddenDetails` shape; validation failures may return issue arrays instead.",
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "code": {
                        "type": "string",
                        "enum": [
                          "INSUFFICIENT_WORKSPACE_ROLE",
                          "PERSONAL_API_KEYS_DISABLED",
                          "WORKSPACE_KEY_OPERATION_NOT_PERMITTED",
                          "PRINCIPAL_KIND_NOT_PERMITTED",
                          "ORGANIZATION_MEMBERSHIP_REQUIRED",
                          "ORGANIZATION_ADMIN_REQUIRED",
                          "ENTERPRISE_PLAN_REQUIRED",
                          "SSO_DISABLED",
                          "SSO_DOMAIN_NOT_VERIFIED",
                          "SSO_PROVIDER_LIMIT_REACHED",
                          "ORGANIZATION_PLAN_REQUIRED",
                          "AUDIT_LOGS_DISABLED",
                          "ACCESS_REQUESTS_DISABLED",
                          "ACCESS_REQUEST_ORGANIZATION_REQUIRED",
                          "SKILL_EDITOR_ACCESS_REQUIRED",
                          "SECRET_ADMIN_ACCESS_REQUIRED",
                          "WORKSPACE_RESOURCE_LIMIT_REACHED",
                          "PUBLIC_SHARING_NOT_ALLOWED",
                          "CREDENTIAL_ADMIN_ACCESS_REQUIRED",
                          "MCP_SERVER_URL_NOT_ALLOWED",
                          "WORKSPACE_PLAN_CAPABILITY_REQUIRED",
                          "CHAT_AUTH_MODE_NOT_PERMITTED",
                          "CONNECTOR_MANAGED_RESOURCE_READ_ONLY",
                          "PERMISSION_GROUP_CAPABILITY_BLOCKED",
                          "INTEGRATION_NOT_ALLOWED",
                          "INSUFFICIENT_SCOPE",
                          "READ_ONLY_API_KEY",
                          "SCIM_MANAGED_MEMBERSHIP",
                          "FEATURE_NOT_ENABLED"
                        ],
                        "title": "Forbidden detail code",
                        "description": "Stable cause code for an actionable `403` response."
                      }
                    },
                    "required": [
                      "code"
                    ],
                    "additionalProperties": {
                      "description": "Additional context for this refusal."
                    },
                    "title": "Actionable forbidden details",
                    "description": "Machine-readable cause and optional context for an actionable `403` response."
                  },
                  {
                    "description": "Other structured context defined by the specific error."
                  }
                ]
              },
              "requestId": {
                "description": "Identifier of this request, the same id as the `x-request-id` response header. Quote it when contacting support.",
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "additionalProperties": false,
            "description": "Canonical error details."
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false,
        "title": "v2 error response",
        "description": "Canonical error envelope returned by the public v2 API.",
        "examples": [
          {
            "error": {
              "code": "BAD_REQUEST",
              "message": "The request is invalid."
            }
          }
        ]
      },
      "example": {
        "error": {
          "code": "NOT_FOUND",
          "message": "Not found"
        }
      }
    }
  }
}

```

### 409

```json

{
  "description": "The request conflicts with current resource state.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "description": "Stable machine-readable error code."
              },
              "message": {
                "type": "string",
                "description": "Human-readable explanation of the error."
              },
              "details": {
                "description": "Structured error context whose keys depend on the error. Actionable `403` responses use the `V2ActionableForbiddenDetails` shape; validation failures may return issue arrays instead.",
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "code": {
                        "type": "string",
                        "enum": [
                          "INSUFFICIENT_WORKSPACE_ROLE",
                          "PERSONAL_API_KEYS_DISABLED",
                          "WORKSPACE_KEY_OPERATION_NOT_PERMITTED",
                          "PRINCIPAL_KIND_NOT_PERMITTED",
                          "ORGANIZATION_MEMBERSHIP_REQUIRED",
                          "ORGANIZATION_ADMIN_REQUIRED",
                          "ENTERPRISE_PLAN_REQUIRED",
                          "SSO_DISABLED",
                          "SSO_DOMAIN_NOT_VERIFIED",
                          "SSO_PROVIDER_LIMIT_REACHED",
                          "ORGANIZATION_PLAN_REQUIRED",
                          "AUDIT_LOGS_DISABLED",
                          "ACCESS_REQUESTS_DISABLED",
                          "ACCESS_REQUEST_ORGANIZATION_REQUIRED",
                          "SKILL_EDITOR_ACCESS_REQUIRED",
                          "SECRET_ADMIN_ACCESS_REQUIRED",
                          "WORKSPACE_RESOURCE_LIMIT_REACHED",
                          "PUBLIC_SHARING_NOT_ALLOWED",
                          "CREDENTIAL_ADMIN_ACCESS_REQUIRED",
                          "MCP_SERVER_URL_NOT_ALLOWED",
                          "WORKSPACE_PLAN_CAPABILITY_REQUIRED",
                          "CHAT_AUTH_MODE_NOT_PERMITTED",
                          "CONNECTOR_MANAGED_RESOURCE_READ_ONLY",
                          "PERMISSION_GROUP_CAPABILITY_BLOCKED",
                          "INTEGRATION_NOT_ALLOWED",
                          "INSUFFICIENT_SCOPE",
                          "READ_ONLY_API_KEY",
                          "SCIM_MANAGED_MEMBERSHIP",
                          "FEATURE_NOT_ENABLED"
                        ],
                        "title": "Forbidden detail code",
                        "description": "Stable cause code for an actionable `403` response."
                      }
                    },
                    "required": [
                      "code"
                    ],
                    "additionalProperties": {
                      "description": "Additional context for this refusal."
                    },
                    "title": "Actionable forbidden details",
                    "description": "Machine-readable cause and optional context for an actionable `403` response."
                  },
                  {
                    "description": "Other structured context defined by the specific error."
                  }
                ]
              },
              "requestId": {
                "description": "Identifier of this request, the same id as the `x-request-id` response header. Quote it when contacting support.",
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "additionalProperties": false,
            "description": "Canonical error details."
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false,
        "title": "v2 error response",
        "description": "Canonical error envelope returned by the public v2 API.",
        "examples": [
          {
            "error": {
              "code": "BAD_REQUEST",
              "message": "The request is invalid."
            }
          }
        ]
      },
      "example": {
        "error": {
          "code": "CONFLICT",
          "message": "The request conflicts with current resource state"
        }
      }
    }
  }
}

```

### 413

```json

{
  "description": "The request, or a resource collection it must materialize, exceeds the allowed size: an oversized request body, a generated artifact past the download ceiling, or a workspace folder tree too large to load in full.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "description": "Stable machine-readable error code."
              },
              "message": {
                "type": "string",
                "description": "Human-readable explanation of the error."
              },
              "details": {
                "description": "Structured error context whose keys depend on the error. Actionable `403` responses use the `V2ActionableForbiddenDetails` shape; validation failures may return issue arrays instead.",
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "code": {
                        "type": "string",
                        "enum": [
                          "INSUFFICIENT_WORKSPACE_ROLE",
                          "PERSONAL_API_KEYS_DISABLED",
                          "WORKSPACE_KEY_OPERATION_NOT_PERMITTED",
                          "PRINCIPAL_KIND_NOT_PERMITTED",
                          "ORGANIZATION_MEMBERSHIP_REQUIRED",
                          "ORGANIZATION_ADMIN_REQUIRED",
                          "ENTERPRISE_PLAN_REQUIRED",
                          "SSO_DISABLED",
                          "SSO_DOMAIN_NOT_VERIFIED",
                          "SSO_PROVIDER_LIMIT_REACHED",
                          "ORGANIZATION_PLAN_REQUIRED",
                          "AUDIT_LOGS_DISABLED",
                          "ACCESS_REQUESTS_DISABLED",
                          "ACCESS_REQUEST_ORGANIZATION_REQUIRED",
                          "SKILL_EDITOR_ACCESS_REQUIRED",
                          "SECRET_ADMIN_ACCESS_REQUIRED",
                          "WORKSPACE_RESOURCE_LIMIT_REACHED",
                          "PUBLIC_SHARING_NOT_ALLOWED",
                          "CREDENTIAL_ADMIN_ACCESS_REQUIRED",
                          "MCP_SERVER_URL_NOT_ALLOWED",
                          "WORKSPACE_PLAN_CAPABILITY_REQUIRED",
                          "CHAT_AUTH_MODE_NOT_PERMITTED",
                          "CONNECTOR_MANAGED_RESOURCE_READ_ONLY",
                          "PERMISSION_GROUP_CAPABILITY_BLOCKED",
                          "INTEGRATION_NOT_ALLOWED",
                          "INSUFFICIENT_SCOPE",
                          "READ_ONLY_API_KEY",
                          "SCIM_MANAGED_MEMBERSHIP",
                          "FEATURE_NOT_ENABLED"
                        ],
                        "title": "Forbidden detail code",
                        "description": "Stable cause code for an actionable `403` response."
                      }
                    },
                    "required": [
                      "code"
                    ],
                    "additionalProperties": {
                      "description": "Additional context for this refusal."
                    },
                    "title": "Actionable forbidden details",
                    "description": "Machine-readable cause and optional context for an actionable `403` response."
                  },
                  {
                    "description": "Other structured context defined by the specific error."
                  }
                ]
              },
              "requestId": {
                "description": "Identifier of this request, the same id as the `x-request-id` response header. Quote it when contacting support.",
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "additionalProperties": false,
            "description": "Canonical error details."
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false,
        "title": "v2 error response",
        "description": "Canonical error envelope returned by the public v2 API.",
        "examples": [
          {
            "error": {
              "code": "BAD_REQUEST",
              "message": "The request is invalid."
            }
          }
        ]
      },
      "example": {
        "error": {
          "code": "PAYLOAD_TOO_LARGE",
          "message": "Request body is too large"
        }
      }
    }
  }
}

```

### 415

```json

{
  "description": "The request uses an unsupported media type.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "description": "Stable machine-readable error code."
              },
              "message": {
                "type": "string",
                "description": "Human-readable explanation of the error."
              },
              "details": {
                "description": "Structured error context whose keys depend on the error. Actionable `403` responses use the `V2ActionableForbiddenDetails` shape; validation failures may return issue arrays instead.",
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "code": {
                        "type": "string",
                        "enum": [
                          "INSUFFICIENT_WORKSPACE_ROLE",
                          "PERSONAL_API_KEYS_DISABLED",
                          "WORKSPACE_KEY_OPERATION_NOT_PERMITTED",
                          "PRINCIPAL_KIND_NOT_PERMITTED",
                          "ORGANIZATION_MEMBERSHIP_REQUIRED",
                          "ORGANIZATION_ADMIN_REQUIRED",
                          "ENTERPRISE_PLAN_REQUIRED",
                          "SSO_DISABLED",
                          "SSO_DOMAIN_NOT_VERIFIED",
                          "SSO_PROVIDER_LIMIT_REACHED",
                          "ORGANIZATION_PLAN_REQUIRED",
                          "AUDIT_LOGS_DISABLED",
                          "ACCESS_REQUESTS_DISABLED",
                          "ACCESS_REQUEST_ORGANIZATION_REQUIRED",
                          "SKILL_EDITOR_ACCESS_REQUIRED",
                          "SECRET_ADMIN_ACCESS_REQUIRED",
                          "WORKSPACE_RESOURCE_LIMIT_REACHED",
                          "PUBLIC_SHARING_NOT_ALLOWED",
                          "CREDENTIAL_ADMIN_ACCESS_REQUIRED",
                          "MCP_SERVER_URL_NOT_ALLOWED",
                          "WORKSPACE_PLAN_CAPABILITY_REQUIRED",
                          "CHAT_AUTH_MODE_NOT_PERMITTED",
                          "CONNECTOR_MANAGED_RESOURCE_READ_ONLY",
                          "PERMISSION_GROUP_CAPABILITY_BLOCKED",
                          "INTEGRATION_NOT_ALLOWED",
                          "INSUFFICIENT_SCOPE",
                          "READ_ONLY_API_KEY",
                          "SCIM_MANAGED_MEMBERSHIP",
                          "FEATURE_NOT_ENABLED"
                        ],
                        "title": "Forbidden detail code",
                        "description": "Stable cause code for an actionable `403` response."
                      }
                    },
                    "required": [
                      "code"
                    ],
                    "additionalProperties": {
                      "description": "Additional context for this refusal."
                    },
                    "title": "Actionable forbidden details",
                    "description": "Machine-readable cause and optional context for an actionable `403` response."
                  },
                  {
                    "description": "Other structured context defined by the specific error."
                  }
                ]
              },
              "requestId": {
                "description": "Identifier of this request, the same id as the `x-request-id` response header. Quote it when contacting support.",
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "additionalProperties": false,
            "description": "Canonical error details."
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false,
        "title": "v2 error response",
        "description": "Canonical error envelope returned by the public v2 API.",
        "examples": [
          {
            "error": {
              "code": "BAD_REQUEST",
              "message": "The request is invalid."
            }
          }
        ]
      },
      "example": {
        "error": {
          "code": "UNSUPPORTED_MEDIA_TYPE",
          "message": "Request body must be sent as application/json"
        }
      }
    }
  }
}

```

### 429

```json

{
  "description": "The caller exceeded the request rate limit.",
  "headers": {
    "Retry-After": {
      "description": "Seconds to wait before retrying, sent on `429` and `503`. Add jitter rather than retrying at exactly this offset.",
      "schema": {
        "type": "integer",
        "minimum": 0,
        "maximum": 9007199254740991,
        "title": "Retry after",
        "description": "Seconds to wait before retrying, sent on `429` and `503`. Add jitter rather than retrying at exactly this offset."
      }
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "description": "Stable machine-readable error code."
              },
              "message": {
                "type": "string",
                "description": "Human-readable explanation of the error."
              },
              "details": {
                "description": "Structured error context whose keys depend on the error. Actionable `403` responses use the `V2ActionableForbiddenDetails` shape; validation failures may return issue arrays instead.",
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "code": {
                        "type": "string",
                        "enum": [
                          "INSUFFICIENT_WORKSPACE_ROLE",
                          "PERSONAL_API_KEYS_DISABLED",
                          "WORKSPACE_KEY_OPERATION_NOT_PERMITTED",
                          "PRINCIPAL_KIND_NOT_PERMITTED",
                          "ORGANIZATION_MEMBERSHIP_REQUIRED",
                          "ORGANIZATION_ADMIN_REQUIRED",
                          "ENTERPRISE_PLAN_REQUIRED",
                          "SSO_DISABLED",
                          "SSO_DOMAIN_NOT_VERIFIED",
                          "SSO_PROVIDER_LIMIT_REACHED",
                          "ORGANIZATION_PLAN_REQUIRED",
                          "AUDIT_LOGS_DISABLED",
                          "ACCESS_REQUESTS_DISABLED",
                          "ACCESS_REQUEST_ORGANIZATION_REQUIRED",
                          "SKILL_EDITOR_ACCESS_REQUIRED",
                          "SECRET_ADMIN_ACCESS_REQUIRED",
                          "WORKSPACE_RESOURCE_LIMIT_REACHED",
                          "PUBLIC_SHARING_NOT_ALLOWED",
                          "CREDENTIAL_ADMIN_ACCESS_REQUIRED",
                          "MCP_SERVER_URL_NOT_ALLOWED",
                          "WORKSPACE_PLAN_CAPABILITY_REQUIRED",
                          "CHAT_AUTH_MODE_NOT_PERMITTED",
                          "CONNECTOR_MANAGED_RESOURCE_READ_ONLY",
                          "PERMISSION_GROUP_CAPABILITY_BLOCKED",
                          "INTEGRATION_NOT_ALLOWED",
                          "INSUFFICIENT_SCOPE",
                          "READ_ONLY_API_KEY",
                          "SCIM_MANAGED_MEMBERSHIP",
                          "FEATURE_NOT_ENABLED"
                        ],
                        "title": "Forbidden detail code",
                        "description": "Stable cause code for an actionable `403` response."
                      }
                    },
                    "required": [
                      "code"
                    ],
                    "additionalProperties": {
                      "description": "Additional context for this refusal."
                    },
                    "title": "Actionable forbidden details",
                    "description": "Machine-readable cause and optional context for an actionable `403` response."
                  },
                  {
                    "description": "Other structured context defined by the specific error."
                  }
                ]
              },
              "requestId": {
                "description": "Identifier of this request, the same id as the `x-request-id` response header. Quote it when contacting support.",
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "additionalProperties": false,
            "description": "Canonical error details."
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false,
        "title": "v2 error response",
        "description": "Canonical error envelope returned by the public v2 API.",
        "examples": [
          {
            "error": {
              "code": "BAD_REQUEST",
              "message": "The request is invalid."
            }
          }
        ]
      },
      "example": {
        "error": {
          "code": "RATE_LIMITED",
          "message": "API rate limit exceeded",
          "details": {
            "retryAfter": "2026-01-01T00:00:30.000Z"
          }
        }
      }
    }
  }
}

```

### 500

```json

{
  "description": "An unexpected server error occurred.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "description": "Stable machine-readable error code."
              },
              "message": {
                "type": "string",
                "description": "Human-readable explanation of the error."
              },
              "details": {
                "description": "Structured error context whose keys depend on the error. Actionable `403` responses use the `V2ActionableForbiddenDetails` shape; validation failures may return issue arrays instead.",
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "code": {
                        "type": "string",
                        "enum": [
                          "INSUFFICIENT_WORKSPACE_ROLE",
                          "PERSONAL_API_KEYS_DISABLED",
                          "WORKSPACE_KEY_OPERATION_NOT_PERMITTED",
                          "PRINCIPAL_KIND_NOT_PERMITTED",
                          "ORGANIZATION_MEMBERSHIP_REQUIRED",
                          "ORGANIZATION_ADMIN_REQUIRED",
                          "ENTERPRISE_PLAN_REQUIRED",
                          "SSO_DISABLED",
                          "SSO_DOMAIN_NOT_VERIFIED",
                          "SSO_PROVIDER_LIMIT_REACHED",
                          "ORGANIZATION_PLAN_REQUIRED",
                          "AUDIT_LOGS_DISABLED",
                          "ACCESS_REQUESTS_DISABLED",
                          "ACCESS_REQUEST_ORGANIZATION_REQUIRED",
                          "SKILL_EDITOR_ACCESS_REQUIRED",
                          "SECRET_ADMIN_ACCESS_REQUIRED",
                          "WORKSPACE_RESOURCE_LIMIT_REACHED",
                          "PUBLIC_SHARING_NOT_ALLOWED",
                          "CREDENTIAL_ADMIN_ACCESS_REQUIRED",
                          "MCP_SERVER_URL_NOT_ALLOWED",
                          "WORKSPACE_PLAN_CAPABILITY_REQUIRED",
                          "CHAT_AUTH_MODE_NOT_PERMITTED",
                          "CONNECTOR_MANAGED_RESOURCE_READ_ONLY",
                          "PERMISSION_GROUP_CAPABILITY_BLOCKED",
                          "INTEGRATION_NOT_ALLOWED",
                          "INSUFFICIENT_SCOPE",
                          "READ_ONLY_API_KEY",
                          "SCIM_MANAGED_MEMBERSHIP",
                          "FEATURE_NOT_ENABLED"
                        ],
                        "title": "Forbidden detail code",
                        "description": "Stable cause code for an actionable `403` response."
                      }
                    },
                    "required": [
                      "code"
                    ],
                    "additionalProperties": {
                      "description": "Additional context for this refusal."
                    },
                    "title": "Actionable forbidden details",
                    "description": "Machine-readable cause and optional context for an actionable `403` response."
                  },
                  {
                    "description": "Other structured context defined by the specific error."
                  }
                ]
              },
              "requestId": {
                "description": "Identifier of this request, the same id as the `x-request-id` response header. Quote it when contacting support.",
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "additionalProperties": false,
            "description": "Canonical error details."
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false,
        "title": "v2 error response",
        "description": "Canonical error envelope returned by the public v2 API.",
        "examples": [
          {
            "error": {
              "code": "BAD_REQUEST",
              "message": "The request is invalid."
            }
          }
        ]
      },
      "example": {
        "error": {
          "code": "INTERNAL_ERROR",
          "message": "Internal server error"
        }
      }
    }
  }
}

```

### 503

```json

{
  "description": "A required service is temporarily unavailable. When present, `Retry-After` gives the minimum seconds to wait; add jitter before retrying. Check operation-specific guidance before repeating a change after an uncertain response.",
  "headers": {
    "Retry-After": {
      "description": "Seconds to wait before retrying, sent on `429` and `503`. Add jitter rather than retrying at exactly this offset.",
      "schema": {
        "type": "integer",
        "minimum": 0,
        "maximum": 9007199254740991,
        "title": "Retry after",
        "description": "Seconds to wait before retrying, sent on `429` and `503`. Add jitter rather than retrying at exactly this offset."
      }
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "description": "Stable machine-readable error code."
              },
              "message": {
                "type": "string",
                "description": "Human-readable explanation of the error."
              },
              "details": {
                "description": "Structured error context whose keys depend on the error. Actionable `403` responses use the `V2ActionableForbiddenDetails` shape; validation failures may return issue arrays instead.",
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "code": {
                        "type": "string",
                        "enum": [
                          "INSUFFICIENT_WORKSPACE_ROLE",
                          "PERSONAL_API_KEYS_DISABLED",
                          "WORKSPACE_KEY_OPERATION_NOT_PERMITTED",
                          "PRINCIPAL_KIND_NOT_PERMITTED",
                          "ORGANIZATION_MEMBERSHIP_REQUIRED",
                          "ORGANIZATION_ADMIN_REQUIRED",
                          "ENTERPRISE_PLAN_REQUIRED",
                          "SSO_DISABLED",
                          "SSO_DOMAIN_NOT_VERIFIED",
                          "SSO_PROVIDER_LIMIT_REACHED",
                          "ORGANIZATION_PLAN_REQUIRED",
                          "AUDIT_LOGS_DISABLED",
                          "ACCESS_REQUESTS_DISABLED",
                          "ACCESS_REQUEST_ORGANIZATION_REQUIRED",
                          "SKILL_EDITOR_ACCESS_REQUIRED",
                          "SECRET_ADMIN_ACCESS_REQUIRED",
                          "WORKSPACE_RESOURCE_LIMIT_REACHED",
                          "PUBLIC_SHARING_NOT_ALLOWED",
                          "CREDENTIAL_ADMIN_ACCESS_REQUIRED",
                          "MCP_SERVER_URL_NOT_ALLOWED",
                          "WORKSPACE_PLAN_CAPABILITY_REQUIRED",
                          "CHAT_AUTH_MODE_NOT_PERMITTED",
                          "CONNECTOR_MANAGED_RESOURCE_READ_ONLY",
                          "PERMISSION_GROUP_CAPABILITY_BLOCKED",
                          "INTEGRATION_NOT_ALLOWED",
                          "INSUFFICIENT_SCOPE",
                          "READ_ONLY_API_KEY",
                          "SCIM_MANAGED_MEMBERSHIP",
                          "FEATURE_NOT_ENABLED"
                        ],
                        "title": "Forbidden detail code",
                        "description": "Stable cause code for an actionable `403` response."
                      }
                    },
                    "required": [
                      "code"
                    ],
                    "additionalProperties": {
                      "description": "Additional context for this refusal."
                    },
                    "title": "Actionable forbidden details",
                    "description": "Machine-readable cause and optional context for an actionable `403` response."
                  },
                  {
                    "description": "Other structured context defined by the specific error."
                  }
                ]
              },
              "requestId": {
                "description": "Identifier of this request, the same id as the `x-request-id` response header. Quote it when contacting support.",
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "additionalProperties": false,
            "description": "Canonical error details."
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false,
        "title": "v2 error response",
        "description": "Canonical error envelope returned by the public v2 API.",
        "examples": [
          {
            "error": {
              "code": "BAD_REQUEST",
              "message": "The request is invalid."
            }
          }
        ]
      },
      "example": {
        "error": {
          "code": "SERVICE_UNAVAILABLE",
          "message": "Service temporarily unavailable"
        }
      }
    }
  }
}

```

## Referenced schemas

The following definitions preserve recursive references and composition exactly.

```json

{
  "#/components/schemas/PreviewWorkspacePushBody": {
    "type": "object",
    "properties": {
      "otherWorkspaceId": {
        "type": "string",
        "minLength": 1,
        "maxLength": 128,
        "description": "Workspace on the other side of the direct fork edge."
      },
      "mappings": {
        "description": "Proposed mapping entries addressed by resource type and `sourceId`. Preview does not save them; apply commits them with the sync.",
        "maxItems": 5000,
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "resourceType": {
              "type": "string",
              "enum": [
                "oauth_credential",
                "service_account_credential",
                "env_var",
                "table",
                "knowledge_base",
                "file",
                "file_folder",
                "mcp_server",
                "custom_block",
                "custom_tool",
                "skill",
                "sandbox"
              ],
              "description": "Resource type stored on the canonical parent/child edge."
            },
            "sourceId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4096,
              "description": "Source resource identifier in the canonical source workspace."
            },
            "targetId": {
              "anyOf": [
                {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 4096
                },
                {
                  "type": "null"
                }
              ],
              "description": "Authorized destination identifier, or null to clear the mapping."
            }
          },
          "required": [
            "resourceType",
            "sourceId",
            "targetId"
          ],
          "additionalProperties": false
        }
      },
      "dependentValues": {
        "description": "Destination-specific choices addressed by source workflow ID, source block ID, and field key. Omission keeps saved overrides; an explicit empty array clears them.",
        "maxItems": 2000,
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "sourceWorkflowId": {
              "type": "string",
              "minLength": 1,
              "description": "Workflow identifier in the source workspace."
            },
            "sourceBlockId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256,
              "description": "Block identifier in the source workflow."
            },
            "subBlockKey": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1024,
              "description": "Registered source field key, including the tool index for nested Agent fields."
            },
            "value": {
              "type": "string",
              "maxLength": 65536,
              "description": "Destination value for the registered dependent field."
            }
          },
          "required": [
            "sourceWorkflowId",
            "sourceBlockId",
            "subBlockKey",
            "value"
          ],
          "additionalProperties": false
        }
      },
      "copyResources": {
        "description": "Explicit source resources to copy before syncing the workflows.",
        "type": "object",
        "properties": {
          "knowledgeBases": {
            "description": "Source knowledge base identifiers whose documents and content are copied.",
            "maxItems": 2000,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "tables": {
            "description": "Source table identifiers whose schemas and rows are copied.",
            "maxItems": 2000,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "customTools": {
            "description": "Source custom tool identifiers to copy.",
            "maxItems": 2000,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "skills": {
            "description": "Source skill identifiers to copy.",
            "maxItems": 2000,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "files": {
            "description": "Workspace file storage keys to copy.",
            "maxItems": 2000,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "mcpServers": {
            "description": "External MCP server identifiers to copy; OAuth connections require authorization in the destination.",
            "maxItems": 2000,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          }
        },
        "additionalProperties": false
      },
      "dropReferences": {
        "description": "Source-deleted references explicitly acknowledged for removal; live source references cannot be dropped.",
        "maxItems": 2000,
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "enum": [
                "credential",
                "env-var",
                "knowledge-base",
                "knowledge-document",
                "table",
                "file",
                "file-folder",
                "mcp-server",
                "custom-tool",
                "custom-block",
                "skill",
                "sandbox"
              ],
              "description": "Resource or operation kind."
            },
            "sourceId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4096,
              "description": "Source resource identifier in the canonical source workspace."
            }
          },
          "required": [
            "kind",
            "sourceId"
          ],
          "additionalProperties": false
        }
      },
      "triggerMappings": {
        "description": "Public trigger path choices from preview.triggerSlots, addressed by source workflow and block IDs. Duplicate or unavailable choices are rejected.",
        "maxItems": 500,
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "sourceWorkflowId": {
              "type": "string",
              "minLength": 1,
              "description": "Workflow identifier in the source workspace."
            },
            "sourceBlockId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256,
              "description": "Source trigger block identifier from the sync preview."
            },
            "adoptPath": {
              "anyOf": [
                {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 4096
                },
                {
                  "type": "null"
                }
              ],
              "description": "An adoptable path offered for this trigger, or null to allocate a new path."
            }
          },
          "required": [
            "sourceWorkflowId",
            "sourceBlockId",
            "adoptPath"
          ],
          "additionalProperties": false
        }
      }
    },
    "required": [
      "otherWorkspaceId"
    ],
    "additionalProperties": false,
    "title": "Preview workspace push request",
    "description": "Other workspace and proposed source-to-target sync choices."
  },
  "#/components/schemas/PreviewWorkspacePushResponse": {
    "type": "object",
    "properties": {
      "data": {
        "description": "Response data.",
        "$ref": "#/components/schemas/WorkspaceSyncPreview"
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false,
    "title": "Preview workspace push response",
    "description": "Current-to-other workflow actions, required choices, and preview fingerprint.",
    "examples": [
      {
        "data": {
          "previewFingerprint": "c7d158e8cbc5137a2d0a4fc37ddaeb51a3b9757485679a6ad82a7de3fdac4e3a",
          "sourceWorkspaceId": "e4f8d2b6-9a1c-4e3d-8b7f-5c0a2d9e6f13",
          "targetWorkspaceId": "9f4c2a10-3b7e-4d58-8f6a-2c1d0e5b7a94",
          "ready": true,
          "workflows": [],
          "unresolvedBindings": [],
          "configuration": [],
          "excludedTargets": [],
          "triggerSlots": [],
          "triggerUrlChanges": []
        }
      }
    ]
  },
  "#/components/schemas/WorkspaceSyncPreview": {
    "type": "object",
    "properties": {
      "previewFingerprint": {
        "type": "string",
        "pattern": "^[a-f0-9]{64}$",
        "description": "Fingerprint to submit when applying this preview with the same choices. Preview again after changing a choice."
      },
      "sourceWorkspaceId": {
        "type": "string",
        "minLength": 1,
        "maxLength": 128,
        "description": "Canonical workspace the workflows and resources are copied from."
      },
      "targetWorkspaceId": {
        "type": "string",
        "minLength": 1,
        "maxLength": 128,
        "description": "Canonical workspace receiving the changes."
      },
      "ready": {
        "type": "boolean",
        "description": "Whether required bindings, configuration, and sync blockers are resolved. This does not mean the target is already deployed."
      },
      "workflows": {
        "maxItems": 2000,
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "action": {
              "type": "string",
              "enum": [
                "create",
                "replace",
                "archive"
              ],
              "description": "Planned workflow creation, replacement, or archival."
            },
            "sourceWorkflowId": {
              "description": "Workflow identifier in the source workspace.",
              "type": "string",
              "minLength": 1
            },
            "targetWorkflowId": {
              "description": "Existing target workflow identifier; absent when apply will create a new target.",
              "type": "string",
              "minLength": 1
            },
            "name": {
              "type": "string",
              "maxLength": 1024,
              "description": "Display name of the workflow or workspace."
            },
            "comparison": {
              "description": "Last successfully synced source deployment compared with the source deployment pinned by this preview. Absent for archive actions.",
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "const": "available",
                      "description": "Both exact source snapshots are available."
                    },
                    "base": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "description": "Exact source deployment snapshot identifier."
                        },
                        "version": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 2147483647,
                          "description": "Saved version number in the source workflow."
                        }
                      },
                      "required": [
                        "id",
                        "version"
                      ],
                      "additionalProperties": false,
                      "description": "Source deployment last successfully synced to this destination."
                    },
                    "target": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "description": "Exact source deployment snapshot identifier."
                        },
                        "version": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 2147483647,
                          "description": "Saved version number in the source workflow."
                        }
                      },
                      "required": [
                        "id",
                        "version"
                      ],
                      "additionalProperties": false,
                      "description": "Pinned source deployment that this sync would copy."
                    }
                  },
                  "required": [
                    "status",
                    "base",
                    "target"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "const": "unavailable",
                      "description": "The source baseline cannot be compared."
                    },
                    "reason": {
                      "type": "string",
                      "enum": [
                        "new_workflow",
                        "no_baseline",
                        "missing_baseline"
                      ],
                      "description": "New destination workflow, no recorded successful sync, or deleted baseline snapshot."
                    },
                    "target": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "description": "Exact source deployment snapshot identifier."
                        },
                        "version": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 2147483647,
                          "description": "Saved version number in the source workflow."
                        }
                      },
                      "required": [
                        "id",
                        "version"
                      ],
                      "additionalProperties": false,
                      "description": "Pinned source deployment that this sync would copy."
                    }
                  },
                  "required": [
                    "status",
                    "reason",
                    "target"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          },
          "required": [
            "action",
            "name"
          ],
          "additionalProperties": false
        },
        "description": "Eligible workflows and their planned actions."
      },
      "unresolvedBindings": {
        "maxItems": 10000,
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "maxLength": 256,
              "description": "Resource or operation kind."
            },
            "sourceId": {
              "type": "string",
              "maxLength": 4096,
              "description": "Source resource identifier in the canonical source workspace."
            },
            "blockName": {
              "description": "Display name of the affected source block.",
              "type": "string",
              "maxLength": 1024
            },
            "reason": {
              "description": "Structured explanation of the unresolved binding.",
              "type": "string",
              "maxLength": 256
            }
          },
          "required": [
            "kind",
            "sourceId"
          ],
          "additionalProperties": false
        },
        "description": "Source references that still require destination mappings or explicit copy choices."
      },
      "configuration": {
        "maxItems": 10000,
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "sourceWorkflowId": {
              "type": "string",
              "minLength": 1,
              "description": "Workflow identifier in the source workspace."
            },
            "sourceBlockId": {
              "type": "string",
              "maxLength": 256,
              "description": "Block identifier in the source workflow."
            },
            "subBlockKey": {
              "type": "string",
              "maxLength": 1024,
              "description": "Registered source field key, including the tool index for nested Agent fields."
            },
            "title": {
              "type": "string",
              "maxLength": 1024,
              "description": "Human-readable configuration field label."
            },
            "required": {
              "type": "boolean",
              "description": "Whether the reference or configuration is required for this operation."
            },
            "currentValue": {
              "type": "string",
              "maxLength": 65536,
              "description": "Persisted sync override or proposed override; empty when neither is configured."
            },
            "multiSelect": {
              "description": "Whether the field accepts comma-separated selections.",
              "type": "boolean"
            },
            "selectorKey": {
              "description": "Registered selector key for discovering this field’s options.",
              "type": "string",
              "maxLength": 256
            },
            "discoveryWorkspaceId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "description": "Workspace scope for selector discovery: source for a parent being copied, otherwise destination."
            },
            "context": {
              "type": "object",
              "propertyNames": {
                "type": "string",
                "maxLength": 256
              },
              "additionalProperties": {
                "type": "string",
                "maxLength": 4096
              },
              "description": "Allowlisted selector dependencies scoped to discoveryWorkspaceId."
            },
            "parentKind": {
              "type": "string",
              "enum": [
                "credential",
                "env-var",
                "knowledge-base",
                "knowledge-document",
                "table",
                "file",
                "file-folder",
                "mcp-server",
                "custom-tool",
                "custom-block",
                "skill",
                "sandbox"
              ],
              "description": "Resource kind that owns this dependent configuration."
            },
            "parentSourceId": {
              "type": "string",
              "maxLength": 4096,
              "description": "Source identifier of the parent resource being mapped."
            },
            "parentContextKey": {
              "description": "Selector context key supplied by the mapped parent resource.",
              "type": "string",
              "maxLength": 256
            }
          },
          "required": [
            "sourceWorkflowId",
            "sourceBlockId",
            "subBlockKey",
            "title",
            "required",
            "currentValue",
            "discoveryWorkspaceId",
            "context",
            "parentKind",
            "parentSourceId"
          ],
          "additionalProperties": false
        },
        "description": "Dependent fields that may need destination-specific values."
      },
      "excludedTargets": {
        "maxItems": 1000,
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "minLength": 1,
              "description": "Resource identifier."
            },
            "name": {
              "type": "string",
              "maxLength": 1024,
              "description": "Display name of the workflow or workspace."
            }
          },
          "required": [
            "id",
            "name"
          ],
          "additionalProperties": false
        },
        "description": "Target workflows explicitly excluded from sync."
      },
      "triggerSlots": {
        "maxItems": 10000,
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "sourceWorkflowId": {
              "type": "string",
              "minLength": 1,
              "description": "Workflow identifier in the source workspace."
            },
            "sourceBlockId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256,
              "description": "Stable source trigger block identifier to use in trigger mappings."
            },
            "blockName": {
              "type": "string",
              "maxLength": 1024,
              "description": "Display name of the source trigger block."
            },
            "workflowName": {
              "type": "string",
              "maxLength": 1024,
              "description": "Display name of the source workflow."
            },
            "ownPath": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 4096
                },
                {
                  "type": "null"
                }
              ],
              "description": "Existing target trigger path, preserved automatically and not configurable."
            },
            "adoptablePaths": {
              "maxItems": 1000,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4096
              },
              "description": "Retiring paths in the same target workflow with a compatible trigger provider."
            },
            "defaultAdoptPath": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 4096
                },
                {
                  "type": "null"
                }
              ],
              "description": "Default adoption when ownPath is null; null then allocates a new path."
            }
          },
          "required": [
            "sourceWorkflowId",
            "sourceBlockId",
            "blockName",
            "workflowName",
            "ownPath",
            "adoptablePaths",
            "defaultAdoptPath"
          ],
          "additionalProperties": false
        },
        "description": "Source triggers and the target paths available for explicit adoption choices."
      },
      "triggerUrlChanges": {
        "maxItems": 1000,
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "workflowName": {
              "type": "string",
              "maxLength": 1024,
              "description": "Name of the affected workflow."
            },
            "path": {
              "type": "string",
              "maxLength": 4096,
              "description": "Public trigger path that stops serving after this sync."
            }
          },
          "required": [
            "workflowName",
            "path"
          ],
          "additionalProperties": false
        },
        "description": "Retiring target trigger URLs no arriving trigger adopts."
      }
    },
    "required": [
      "previewFingerprint",
      "sourceWorkspaceId",
      "targetWorkspaceId",
      "ready",
      "workflows",
      "unresolvedBindings",
      "configuration",
      "excludedTargets",
      "triggerSlots",
      "triggerUrlChanges"
    ],
    "additionalProperties": false,
    "title": "Workspace sync preview",
    "description": "Response data."
  },
  "#/components/responses/BadRequest": {
    "description": "The request is invalid. This includes a query parameter sent with no value (`?limit=`, `?search=`), which is rejected rather than read as zero, empty, or the parameter default — omit the parameter instead.",
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/V2Error"
        },
        "example": {
          "error": {
            "code": "BAD_REQUEST",
            "message": "Invalid request"
          }
        }
      }
    }
  },
  "#/components/schemas/V2Error": {
    "type": "object",
    "properties": {
      "error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Stable machine-readable error code."
          },
          "message": {
            "type": "string",
            "description": "Human-readable explanation of the error."
          },
          "details": {
            "description": "Structured error context whose keys depend on the error. Actionable `403` responses use the `V2ActionableForbiddenDetails` shape; validation failures may return issue arrays instead.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/V2ActionableForbiddenDetails"
              },
              {
                "description": "Other structured context defined by the specific error."
              }
            ]
          },
          "requestId": {
            "description": "Identifier of this request, the same id as the `x-request-id` response header. Quote it when contacting support.",
            "type": "string"
          }
        },
        "required": [
          "code",
          "message"
        ],
        "additionalProperties": false,
        "description": "Canonical error details."
      }
    },
    "required": [
      "error"
    ],
    "additionalProperties": false,
    "title": "v2 error response",
    "description": "Canonical error envelope returned by the public v2 API.",
    "examples": [
      {
        "error": {
          "code": "BAD_REQUEST",
          "message": "The request is invalid."
        }
      }
    ]
  },
  "#/components/schemas/V2ActionableForbiddenDetails": {
    "type": "object",
    "properties": {
      "code": {
        "$ref": "#/components/schemas/V2ForbiddenDetailCode"
      }
    },
    "required": [
      "code"
    ],
    "additionalProperties": {
      "description": "Additional context for this refusal."
    },
    "title": "Actionable forbidden details",
    "description": "Machine-readable cause and optional context for an actionable `403` response."
  },
  "#/components/schemas/V2ForbiddenDetailCode": {
    "type": "string",
    "enum": [
      "INSUFFICIENT_WORKSPACE_ROLE",
      "PERSONAL_API_KEYS_DISABLED",
      "WORKSPACE_KEY_OPERATION_NOT_PERMITTED",
      "PRINCIPAL_KIND_NOT_PERMITTED",
      "ORGANIZATION_MEMBERSHIP_REQUIRED",
      "ORGANIZATION_ADMIN_REQUIRED",
      "ENTERPRISE_PLAN_REQUIRED",
      "SSO_DISABLED",
      "SSO_DOMAIN_NOT_VERIFIED",
      "SSO_PROVIDER_LIMIT_REACHED",
      "ORGANIZATION_PLAN_REQUIRED",
      "AUDIT_LOGS_DISABLED",
      "ACCESS_REQUESTS_DISABLED",
      "ACCESS_REQUEST_ORGANIZATION_REQUIRED",
      "SKILL_EDITOR_ACCESS_REQUIRED",
      "SECRET_ADMIN_ACCESS_REQUIRED",
      "WORKSPACE_RESOURCE_LIMIT_REACHED",
      "PUBLIC_SHARING_NOT_ALLOWED",
      "CREDENTIAL_ADMIN_ACCESS_REQUIRED",
      "MCP_SERVER_URL_NOT_ALLOWED",
      "WORKSPACE_PLAN_CAPABILITY_REQUIRED",
      "CHAT_AUTH_MODE_NOT_PERMITTED",
      "CONNECTOR_MANAGED_RESOURCE_READ_ONLY",
      "PERMISSION_GROUP_CAPABILITY_BLOCKED",
      "INTEGRATION_NOT_ALLOWED",
      "INSUFFICIENT_SCOPE",
      "READ_ONLY_API_KEY",
      "SCIM_MANAGED_MEMBERSHIP",
      "FEATURE_NOT_ENABLED"
    ],
    "title": "Forbidden detail code",
    "description": "Stable cause code for an actionable `403` response."
  },
  "#/components/responses/Unauthorized": {
    "description": "The API credential is missing or invalid.",
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/V2Error"
        },
        "example": {
          "error": {
            "code": "UNAUTHORIZED",
            "message": "Authentication required"
          }
        }
      }
    }
  },
  "#/components/responses/Forbidden": {
    "description": "The caller lacks the rights this operation requires. When the cause is one a caller can act on, `error.details.code` names it. A resource in a workspace the caller cannot reach at all answers `404` instead, so absence and denial are indistinguishable.",
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/V2Error"
        },
        "example": {
          "error": {
            "code": "FORBIDDEN",
            "message": "Insufficient workspace permissions",
            "details": {
              "code": "INSUFFICIENT_WORKSPACE_ROLE"
            }
          }
        }
      }
    }
  },
  "#/components/responses/NotFound": {
    "description": "The requested resource was not found.",
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/V2Error"
        },
        "example": {
          "error": {
            "code": "NOT_FOUND",
            "message": "Not found"
          }
        }
      }
    }
  },
  "#/components/responses/Conflict": {
    "description": "The request conflicts with current resource state.",
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/V2Error"
        },
        "example": {
          "error": {
            "code": "CONFLICT",
            "message": "The request conflicts with current resource state"
          }
        }
      }
    }
  },
  "#/components/responses/PayloadTooLarge": {
    "description": "The request, or a resource collection it must materialize, exceeds the allowed size: an oversized request body, a generated artifact past the download ceiling, or a workspace folder tree too large to load in full.",
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/V2Error"
        },
        "example": {
          "error": {
            "code": "PAYLOAD_TOO_LARGE",
            "message": "Request body is too large"
          }
        }
      }
    }
  },
  "#/components/responses/UnsupportedMediaType": {
    "description": "The request uses an unsupported media type.",
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/V2Error"
        },
        "example": {
          "error": {
            "code": "UNSUPPORTED_MEDIA_TYPE",
            "message": "Request body must be sent as application/json"
          }
        }
      }
    }
  },
  "#/components/responses/RateLimited": {
    "description": "The caller exceeded the request rate limit.",
    "headers": {
      "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
      }
    },
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/V2Error"
        },
        "example": {
          "error": {
            "code": "RATE_LIMITED",
            "message": "API rate limit exceeded",
            "details": {
              "retryAfter": "2026-01-01T00:00:30.000Z"
            }
          }
        }
      }
    }
  },
  "#/components/headers/Retry-After": {
    "description": "Seconds to wait before retrying, sent on `429` and `503`. Add jitter rather than retrying at exactly this offset.",
    "schema": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "title": "Retry after",
      "description": "Seconds to wait before retrying, sent on `429` and `503`. Add jitter rather than retrying at exactly this offset."
    }
  },
  "#/components/responses/InternalError": {
    "description": "An unexpected server error occurred.",
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/V2Error"
        },
        "example": {
          "error": {
            "code": "INTERNAL_ERROR",
            "message": "Internal server error"
          }
        }
      }
    }
  },
  "#/components/responses/ServiceUnavailable": {
    "description": "A required service is temporarily unavailable. When present, `Retry-After` gives the minimum seconds to wait; add jitter before retrying. Check operation-specific guidance before repeating a change after an uncertain response.",
    "headers": {
      "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
      }
    },
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/V2Error"
        },
        "example": {
          "error": {
            "code": "SERVICE_UNAVAILABLE",
            "message": "Service temporarily unavailable"
          }
        }
      }
    }
  }
}

```

[Download OpenAPI specification](/openapi.json)

Source: `openapi-v2-workflows.json`, operation `previewWorkspacePush`.