Skip to content

Workspace sync

List workspace operations

List stored operation receipts newest first with workspace read access. Filter by the original `requestId` to reconcile an uncertain mutation response. Read an individual operation to refresh its copy and deployment readiness. This list does not require the fork-specific Admin role or feature gate. OAuth scope: `api:read`.

GET/api/v2/workspaces/{workspaceId}/operations

List stored operation receipts newest first with workspace read access. Filter by the original requestId to reconcile an uncertain mutation response. Read an individual operation to refresh its copy and deployment readiness. This list does not require the fork-specific Admin role or feature gate.

OAuth scope: api:read.

Authentication

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

Send X-API-Key in the request header.

Alternatively

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

Authorization: Bearer YOUR_ACCESS_TOKEN

Required scopes: api:read

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

OAuth scope: api:read.

Path parameters

workspaceIdstringRequired

Explicit current workspace scope.

minLength
1
maxLength
128

Query parameters

limitinteger

Maximum items to return per page. Must be a whole number from 1 to 100. Defaults to 50.

default
50
minimum
1
maximum
100
cursorstring

Opaque cursor from the previous page. Send it back with the same sort and filters; only limit may change. Change anything else and pagination must restart without a cursor.

minLength
1
requestIdstring

Find an uncertain mutation by the original client request ID; keep the same filter while paging.

minLength
1
maxLength
128

Responses

200

A page of stored operation receipts.

object

A page of stored operation receipts.

2 fields
dataarrayRequired

Items in the current page.

Schema details
Array itemobject

Committed operation receipt, resource copies, and exact deployment readiness.

14 fields
operationIdstringRequired

Durable operation identifier to use for polling.

minLength
1
maxLength
256
requestIdstringRequired

Client request ID used to commit this operation. Reuse identical mutation inputs with this ID after an uncertain response.

minLength
1
maxLength
128
workspaceIdstringRequired

Explicit current workspace scope.

minLength
1
maxLength
128
kindstringRequired

Type of committed workspace operation.

enum
["workflow_import","workspace_fork","workspace_push","workspace_pull"]
appliedbooleanRequired

The business transaction committed, including when follow-up work fails.

const
true
statusstringRequired

Operation status; failed follow-up work does not undo the committed transaction.

enum
["processing","completed","completed_with_warnings","requires_configuration","failed"]
resourceIdsarrayRequired

Identifiers of resources created or changed by the committed operation.

maxItems
5000
Schema details
Array itemstring
minLength
1
maxLength
256
issuesarrayRequired

Structured warnings, missing configuration, and follow-up failures.

maxItems
2000
Schema details
Array itemobject
5 fields
codestringRequired

Stable machine-readable issue code.

minLength
1
maxLength
128
messagestringRequired

Human-readable explanation of the issue.

maxLength
2048
workflowIdstring

Workflow affected by this issue or deployment attempt.

maxLength
256
blockIdstring

Source block identifier before graph ID regeneration.

maxLength
256
subBlockKeystring

Registered source field key, including the tool index for nested Agent fields.

maxLength
256

Additional properties are not allowed.

idMapobject

Source graph identifiers mapped to the imported identifiers.

Schema details
Additional propertiesstring
maxLength
256
deploymentOperationIdsarray

Exact deployment attempts admitted by the workspace operation.

maxItems
1000
Schema details
Array itemstring
maxLength
256
deploymentsarray

Readiness of the exact admitted deployment attempts.

maxItems
1000
Schema details
Array itemobject
6 fields
operationIdstringRequired

Durable operation identifier to use for polling.

maxLength
256
workflowIdstringRequired

Workflow affected by this issue or deployment attempt.

maxLength
256
versionintegerRequired

Deployment version number for this admitted attempt.

minimum
1
maximum
9007199254740991
statusstringRequired

Status of this exact admitted deployment attempt.

enum
["preparing","activating","active","failed","superseded"]
readybooleanRequired

Whether this exact deployment attempt is active and all required components are ready.

pendingComponentsarrayRequired

Deployment components that have not finished becoming ready.

maxItems
32
Schema details
Array itemstring
maxLength
128

Additional properties are not allowed.

triggerUrlChangesarray

Public trigger paths changed by this sync, with the affected workflow names.

maxItems
1000
Schema details
Array itemobject
2 fields
workflowNamestringRequired

Name of the workflow whose public trigger path stops serving.

maxLength
1024
pathstringRequired

Public trigger path that stops serving after this sync.

maxLength
4096

Additional properties are not allowed.

backgroundWorkIdstring

Workspace activity identifier for resource-copy progress.

maxLength
256
copyProgressobject

Completion status and counts for explicitly selected resource copies.

3 fields
statusstringRequired

Background resource-copy status.

enum
["pending","completed","failed"]
copiedintegerRequired

Number of resources copied successfully.

minimum
0
maximum
9007199254740991
failedintegerRequired

Number of resources that failed to copy.

minimum
0
maximum
9007199254740991

Additional properties are not allowed.

Additional properties are not allowed.

nextCursorvalueRequired

Opaque cursor for the next page. Send it back as cursor; null means there are no more pages. Do not construct a cursor yourself.

Schema details

Any of

Option 1string
Option 2null

Additional properties are not allowed.

Was this helpful?
Suggest an edit