/api/v2/workspaces/{workspaceId}/workflows/sourceCreate a workflow from TypeScript workflow source in one all-or-nothing write. Requires workspace write access. The source is compiled and checked against the same rules as Apply Workflow Source; every block is new. Any error returns 400 with details.code SOURCE_REJECTED and details.diagnostics (each with a file, line and column), and nothing is created; a source over a size limit (E_LIMIT_EXCEEDED) gets the same body with 413. The name defaults to the one in the source's workflow('…') call; a name already used in the folder returns 409 with details.code SOURCE_NAME_TAKEN. The response carries the new workflowId and the source re-printed from what was saved, with its lock and base, ready for the next apply. The workflow is not deployed. dryRun=true runs every check without creating anything and answers 200 with the findings in diagnostics. A request refused before the source is evaluated is refused on a dry run too: 400 for an invalid body, 404 for a missing folder, 413 for a body over the size limit, and 423 for a locked folder. A taken name is checked after the source compiles and answers 409 (SOURCE_NAME_TAKEN) on a dry run as on a create. Returns 403 while workflows as code is not enabled. Workspace API keys return 403; use a personal API key or scoped OAuth token.
OAuth scope: api:write.
Authentication
Send a personal or workspace API key in X-API-Key. See key types and access; operations that reject workspace keys say so in their description.
Send X-API-Key in the request header.
Alternatively
Send a Sim OAuth access token in Authorization: Bearer. See OAuth authentication and scopes.
Authorization: Bearer YOUR_ACCESS_TOKEN
Required scopes: api:write
OAuth flows
OAuth scope: api:write.
Path parameters
Workspace in which to create the workflow.
- minLength
- 1
- maxLength
- 128
Query parameters
Run every check without writing, auditing, or notifying collaborators. Findings, errors included, come back in diagnostics with applied: false and a 200, and the files, lock and fingerprint show what a committed apply would store. A request refused before the source is evaluated (an invalid or oversized body, a locked workflow or folder) gets the same status as without dryRun, and a create under a taken name answers 409.
Allow the apply to delete blocks and variables the source no longer declares. Without it, an apply that would delete any block is refused with E_APPLY_BLOCK_DELETE, and one that would delete any variable with E_APPLY_VARIABLE_DELETE, naming them. Ignored when creating a workflow.
Request body
RequiredSource files and where to create the workflow.
Source files and where to create the workflow.
5 fields
Relative path → file text: workflow.ts plus every function-code file it references (for example functions/score.js). At most 2001 files and 4000000 bytes together, for a workflow of at most 2000 blocks.
Schema details
Workflow name. Defaults to the name in the source's workflow('…') call.
- minLength
- 1
- maxLength
- 255
Workflow description. Defaults to the description in the source.
Schema details
Any of
- maxLength
- 50000
Folder path. A missing leading slash is normalized before validation. Segments are percent-encoded, so a folder shown as "New folder" is /New%20folder: everything outside A-Z a-z 0-9 - _ . ~ is escaped as uppercase hex, and only that exact encoding is accepted. A trailing slash, an empty segment, and a literal . or .. segment are rejected. At most 64 segments and 4096 encoded bytes.
- maxLength
- 4096
Where the source came from, for the audit log.
3 fields
What submitted the source.
- enum
- ["cli","copilot","canvas","api"]
The commit the source was taken from; recorded in the audit log.
- pattern
- ^[0-9a-f]{7,64}$
The repository the source was taken from (its remote URL); recorded in the audit log.
- minLength
- 1
- maxLength
- 512
Additional properties are not allowed.
Additional properties are not allowed.
Request example 1
Responses
200
The created (or evaluated) workflow.
The outcome, with the source re-printed from the saved workflow.
1 field
Response data.
12 fields
Workflow id.
Workspace id.
True when nothing was written because dryRun was set.
True when the draft was written or the workflow renamed or redescribed; false on a dry run and on a no-op.
What the apply changed, or would change on a dry run.
5 fields
True when the source matches the saved draft.
The workflow name and description fields the source changes.
Schema details
- enum
- ["name","description"]
Block changes.
4 fields
New blocks.
Schema details
An added or removed block by id, source key and type.
3 fields
Stored block id.
Block key in the source.
Block type.
Additional properties are not allowed.
Deleted blocks.
Schema details
An added or removed block by id, source key and type.
3 fields
Stored block id.
Block key in the source.
Block type.
Additional properties are not allowed.
Renamed blocks; each keeps its id.
Schema details
A renamed block.
3 fields
Stored block id; unchanged by the rename.
Previous key.
New key.
Additional properties are not allowed.
Changed blocks.
Schema details
A changed block.
4 fields
Stored block id.
Block key in the source.
Changed fields, modes (modes.<param>) and attributes.
Schema details
Moved into or out of a container.
Additional properties are not allowed.
Additional properties are not allowed.
Connection changes.
2 fields
Connections added.
- minimum
- -9007199254740991
- maximum
- 9007199254740991
Connections removed.
- minimum
- -9007199254740991
- maximum
- 9007199254740991
Additional properties are not allowed.
Variable changes.
4 fields
Variable keys added.
Schema details
Variable keys removed.
Schema details
Variables renamed; each keeps its id, so none is deleted.
Schema details
A renamed variable.
2 fields
Former key.
New key.
Additional properties are not allowed.
Variable keys changed.
Schema details
Additional properties are not allowed.
Additional properties are not allowed.
Warnings, and on a dry run every error a commit would refuse.
Schema details
A finding from applying workflow source, pinned to the submitted files.
14 fields
Diagnostic code, e.g. E_UNKNOWN_PARAM or E_APPLY_LOCKED_BLOCK.
- enum
- ["E_SYNTAX","E_SDK_HEADER","E_SDK_MAJOR","E_SDK_MAJOR_OLD","E_UNSUPPORTED_SYNTAX","E_WORKFLOW_EXPORT","E_LIMIT_EXCEEDED","E_INVALID_CHARACTER","E_NUMBER_NOT_FINITE","W_NUMBER_PRECISION","E_TOO_MANY_ERRORS","I_FINDINGS_TRUNCATED","E_DUPLICATE_NAME","E_RESERVED_NAME","E_KEY_OVERRIDE","E_EMPTY_NAME","E_LOOKALIKE_NAME","W_LOOKALIKE_NAME","W_SUSPICIOUS_CHARACTER","E_NAME_NOT_LITERAL","E_UNKNOWN_IDENTIFIER","E_OUT_OF_SCOPE","E_UNKNOWN_VARIABLE","E_DUPLICATE_VARIABLE","E_VARIABLE_NAME_MISMATCH","E_INVALID_ENV_NAME","W_ENV_UNKNOWN","W_CHILD_INPUT_UNKNOWN","W_CHILD_NO_START","W_CHILD_RESULT_PATH","E_UNKNOWN_SUBFLOW_PROPERTY","W_FORWARD_REF","W_REF_NOT_NORMALIZED","E_REF_UNREPRESENTABLE","W_REF_OUT_OF_SCOPE","E_EDGE_SCOPE","E_EDGE_NOTE","E_TARGET_TRIGGER","E_NO_DEFAULT_OUTPUT","E_DUPLICATE_EDGE","E_ERROR_PORT_UNSUPPORTED","W_ERROR_PORT_STORED","E_UNKNOWN_BRANCH","E_DUPLICATE_BRANCH_KEY","E_BRANCH_KEY_COLLIDES","E_BRANCH_ELSE_LAST","W_RAW_HANDLE","W_SUBFLOW_HANDLE_SCOPE","E_EDGE_CYCLE","W_EDGE_CYCLE","W_BRANCH_UNWIRED","E_UNKNOWN_BUILDER","E_UNKNOWN_PARAM","E_FIXED_PARAM","W_FIELD_NOT_APPLICABLE","W_REQUIRED_MISSING","W_UNKNOWN_OPTION","E_UNKNOWN_OPERATION","W_UNKNOWN_MODEL","W_LEGACY_BLOCK_TYPE","W_UNKNOWN_BLOCK_TYPE","W_TYPE_NOT_ADDABLE","I_SCHEDULE_UTC","E_STORED_VALUE_MISSING","W_VALUE_KIND","W_OUT_OF_RANGE","W_TABLE_FILTER_SHAPE","W_LITERAL_SECRET","W_SUBFLOW_COUNT","W_UNKNOWN_OUTPUT_PATH","W_OUTPUT_PATH_UNDECLARED","W_JSON_REF_UNTYPED","W_LOOP_CONDITION_SYNTAX","E_CODE_FILE_MISSING","E_CODE_FILE_PATH","W_CODE_FILE_INLINED","W_CODE_FILE_REF_SYNTAX","W_UNRESOLVED_REF","W_FORWARD_REF_LITERALIZED","W_COMMENT_MOVED","W_COMMENT_DROPPED","E_LOCK_JSON","E_LOCK_VERSION","E_LOCK_SHAPE","E_LOCK_UNKNOWN_FIELD","E_LOCK_KEY","E_LOCK_IDENT","E_LOCK_DUPLICATE_IDENT","E_LOCK_DUPLICATE_ID","E_LOCK_PARENT","E_LOCK_BRANCH","E_LOCK_CODE_FILE_PATH","E_SOURCE_META_JSON","E_SOURCE_META_VERSION","E_SOURCE_META_SHAPE","E_SOURCE_META_UNKNOWN_FIELD","E_SOURCE_META_IDENT","E_SOURCE_META_DUPLICATE_IDENT","E_SOURCE_META_ANCHOR","E_CANON_LEGACY_NAME_COLLISION","E_CANON_EDGE_SCOPE","W_CANON_RESERVED_NAME","W_CANON_DANGLING_EDGE","W_CANON_DANGLING_PARENT","W_CANON_RAW_HANDLE","W_CANON_UNKNOWN_BLOCK_TYPE","W_CANON_UNRESOLVED_ID","W_CANON_TITLE_OVERRIDE","W_CANON_SUBFLOW_REPAIRED","W_CANON_SUBBLOCK_TYPE_DRIFT","W_CANON_UNDECODABLE_JSON","E_MAT_DUPLICATE_LOCK_ID","E_MAT_UNKNOWN_RESOURCE","E_MAT_UNKNOWN_VARIABLE","W_MAT_DELETED_SINCE_PULL","W_MAT_INFERRED_RENAME","W_MAT_RETYPE_RECREATED","W_MAT_LOCK_ID_CLAIMED","I_MAT_NEEDS_LAYOUT","E_APPLY_STALE","E_APPLY_WORKFLOW_MISMATCH","E_APPLY_LOCKED_BLOCK","E_APPLY_TYPE_NOT_ADDABLE","E_APPLY_INVALID_STATE","E_APPLY_BLOCK_NOT_FOUND","E_APPLY_INVALID_BLOCK_TYPE","E_APPLY_BLOCK_NOT_ALLOWED","E_APPLY_MODEL_NOT_ALLOWED","E_APPLY_TOOL_NOT_ALLOWED","E_APPLY_INVALID_EDGE_SOURCE","E_APPLY_INVALID_EDGE_SCOPE","E_APPLY_INVALID_SOURCE_HANDLE","E_APPLY_INVALID_TARGET_HANDLE","E_APPLY_INVALID_SUBBLOCK_FIELD","E_APPLY_MISSING_REQUIRED_PARAMS","E_APPLY_RETRY_NOT_SUPPORTED","E_APPLY_DUPLICATE_TRIGGER","E_APPLY_DUPLICATE_SINGLE_INSTANCE_BLOCK","E_APPLY_DISABLED_ANCESTOR","E_APPLY_CREDENTIAL_UNREACHABLE","W_APPLY_CREDENTIAL_KEPT","E_APPLY_SANDBOX_PLAN_REQUIRED","W_APPLY_HOSTED_KEY_DROPPED","W_APPLY_VALUE_NORMALIZED","W_APPLY_TYPE_CHANGED","W_APPLY_TRIGGER_REMOVED","W_APPLY_CATALOG_MOVED","W_APPLY_PROBABLE_RENAME","E_APPLY_LINT","E_APPLY_UNRESOLVED_REF","E_APPLY_REF_OUT_OF_SCOPE","E_APPLY_CODE_FILE_REF_SYNTAX","E_APPLY_LOOP_CONDITION_SYNTAX","W_APPLY_LINT","W_TABLE_UNKNOWN_COLUMN","E_APPLY_INVALID_SCHEDULE","E_APPLY_BLOCK_DELETE","E_APPLY_VARIABLE_DELETE","E_NAME_TAKEN","E_WORKFLOW_META_INVALID"]
Diagnostic severity.
- enum
- ["error","warning","info"]
What was found.
How to address it.
Block the finding is about.
Field the finding is about.
Submitted file the finding is in.
1-based line in file.
- minimum
- -9007199254740991
- maximum
- 9007199254740991
1-based column in file.
- minimum
- -9007199254740991
- maximum
- 9007199254740991
1-based line the finding ends on.
- minimum
- -9007199254740991
- maximum
- 9007199254740991
1-based column the finding ends at.
- minimum
- -9007199254740991
- maximum
- 9007199254740991
The source lines around the finding, with a caret row.
Stored id of the block the finding is about.
JSON Pointer into the lock, for a lock finding.
Additional properties are not allowed.
The source re-printed from what was saved, including any normalized values.
Schema details
Identity sidecar (.sim/lock.json): binds the keys in the source to stored ids.
3 fields
Lock format version.
- const
- 1
Block key → identity.
Schema details
One block’s identity.
8 fields
Block id.
Key of the enclosing loop or parallel, or null.
Schema details
Any of
Condition or router branch key → stored branch id.
Schema details
Per field, its id-bearing items (input format fields) in stored order.
Schema details
Schema details
One id-bearing list item.
2 fields
Item name.
Item id.
Additional properties are not allowed.
The const name the block is printed as.
Declaration-order tie-break.
- minimum
- -9007199254740991
- maximum
- 9007199254740991
Stored canvas geometry; applied only to new blocks.
6 fields
Canvas x position.
Canvas y position.
Container width.
Container height.
Stored block height.
Handles on the left and right.
An x- extension field, kept verbatim.
Path of the block’s function-code file.
An x- extension field, kept verbatim.
Variable key → variable id.
Schema details
An x- extension field, kept verbatim.
Where the saved (or, on a dry run, would-be) draft was read: the next apply’s base.
5 fields
Base format version; a base written before it existed reads as 1.
- default
- 1
- const
- 1
Workflow the source was read from; an apply to another workflow is refused.
- minLength
- 1
Workspace the workflow belongs to.
Freshness token of the draft the source was read at: a hash of the canonical workflow and its ids. It ignores canvas positions, so moving blocks does not change it.
- minLength
- 1
- maxLength
- 256
Hash of the block catalog the source was printed against.
An x- extension field, kept verbatim.
Block key → id for new blocks whose id was minted rather than taken from the lock.
Schema details
Non-fatal notes about the write.
Schema details
Whether the draft now differs from the live deployment; apply never deploys.
Additional properties are not allowed.
Additional properties are not allowed.
Response example 1
Response headers
Maximum requests allowed in the current window.
- minimum
- 0
- maximum
- 9007199254740991
Requests remaining in the current window.
- minimum
- 0
- maximum
- 9007199254740991
ISO 8601 timestamp when the current rate-limit window resets.
- format
- date-time
- pattern
- ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
400
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.
Canonical error envelope returned by the public v2 API.
1 field
Canonical error details.
4 fields
Stable machine-readable error code.
Human-readable explanation of the error.
Structured error context whose keys depend on the error. Actionable 403 responses use the V2ActionableForbiddenDetails shape; validation failures may return issue arrays instead.
Schema details
Any of
Machine-readable cause and optional context for an actionable 403 response.
1 field
Stable cause code for an actionable 403 response.
- 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"]
Additional context for this refusal.
Other structured context defined by the specific error.
Identifier of this request, the same id as the x-request-id response header. Quote it when contacting support.
Additional properties are not allowed.
Additional properties are not allowed.
401
The API credential is missing or invalid.
Canonical error envelope returned by the public v2 API.
1 field
Canonical error details.
4 fields
Stable machine-readable error code.
Human-readable explanation of the error.
Structured error context whose keys depend on the error. Actionable 403 responses use the V2ActionableForbiddenDetails shape; validation failures may return issue arrays instead.
Schema details
Any of
Machine-readable cause and optional context for an actionable 403 response.
1 field
Stable cause code for an actionable 403 response.
- 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"]
Additional context for this refusal.
Other structured context defined by the specific error.
Identifier of this request, the same id as the x-request-id response header. Quote it when contacting support.
Additional properties are not allowed.
Additional properties are not allowed.
403
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.
Canonical error envelope returned by the public v2 API.
1 field
Canonical error details.
4 fields
Stable machine-readable error code.
Human-readable explanation of the error.
Structured error context whose keys depend on the error. Actionable 403 responses use the V2ActionableForbiddenDetails shape; validation failures may return issue arrays instead.
Schema details
Any of
Machine-readable cause and optional context for an actionable 403 response.
1 field
Stable cause code for an actionable 403 response.
- 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"]
Additional context for this refusal.
Other structured context defined by the specific error.
Identifier of this request, the same id as the x-request-id response header. Quote it when contacting support.
Additional properties are not allowed.
Additional properties are not allowed.
404
The requested resource was not found.
Canonical error envelope returned by the public v2 API.
1 field
Canonical error details.
4 fields
Stable machine-readable error code.
Human-readable explanation of the error.
Structured error context whose keys depend on the error. Actionable 403 responses use the V2ActionableForbiddenDetails shape; validation failures may return issue arrays instead.
Schema details
Any of
Machine-readable cause and optional context for an actionable 403 response.
1 field
Stable cause code for an actionable 403 response.
- 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"]
Additional context for this refusal.
Other structured context defined by the specific error.
Identifier of this request, the same id as the x-request-id response header. Quote it when contacting support.
Additional properties are not allowed.
Additional properties are not allowed.
409
The request conflicts with current resource state.
Canonical error envelope returned by the public v2 API.
1 field
Canonical error details.
4 fields
Stable machine-readable error code.
Human-readable explanation of the error.
Structured error context whose keys depend on the error. Actionable 403 responses use the V2ActionableForbiddenDetails shape; validation failures may return issue arrays instead.
Schema details
Any of
Machine-readable cause and optional context for an actionable 403 response.
1 field
Stable cause code for an actionable 403 response.
- 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"]
Additional context for this refusal.
Other structured context defined by the specific error.
Identifier of this request, the same id as the x-request-id response header. Quote it when contacting support.
Additional properties are not allowed.
Additional properties are not allowed.
413
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.
Canonical error envelope returned by the public v2 API.
1 field
Canonical error details.
4 fields
Stable machine-readable error code.
Human-readable explanation of the error.
Structured error context whose keys depend on the error. Actionable 403 responses use the V2ActionableForbiddenDetails shape; validation failures may return issue arrays instead.
Schema details
Any of
Machine-readable cause and optional context for an actionable 403 response.
1 field
Stable cause code for an actionable 403 response.
- 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"]
Additional context for this refusal.
Other structured context defined by the specific error.
Identifier of this request, the same id as the x-request-id response header. Quote it when contacting support.
Additional properties are not allowed.
Additional properties are not allowed.
415
The request uses an unsupported media type.
Canonical error envelope returned by the public v2 API.
1 field
Canonical error details.
4 fields
Stable machine-readable error code.
Human-readable explanation of the error.
Structured error context whose keys depend on the error. Actionable 403 responses use the V2ActionableForbiddenDetails shape; validation failures may return issue arrays instead.
Schema details
Any of
Machine-readable cause and optional context for an actionable 403 response.
1 field
Stable cause code for an actionable 403 response.
- 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"]
Additional context for this refusal.
Other structured context defined by the specific error.
Identifier of this request, the same id as the x-request-id response header. Quote it when contacting support.
Additional properties are not allowed.
Additional properties are not allowed.
423
The resource is temporarily locked or unavailable; retry the request.
Canonical error envelope returned by the public v2 API.
1 field
Canonical error details.
4 fields
Stable machine-readable error code.
Human-readable explanation of the error.
Structured error context whose keys depend on the error. Actionable 403 responses use the V2ActionableForbiddenDetails shape; validation failures may return issue arrays instead.
Schema details
Any of
Machine-readable cause and optional context for an actionable 403 response.
1 field
Stable cause code for an actionable 403 response.
- 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"]
Additional context for this refusal.
Other structured context defined by the specific error.
Identifier of this request, the same id as the x-request-id response header. Quote it when contacting support.
Additional properties are not allowed.
Additional properties are not allowed.
429
The caller exceeded the request rate limit.
Canonical error envelope returned by the public v2 API.
1 field
Canonical error details.
4 fields
Stable machine-readable error code.
Human-readable explanation of the error.
Structured error context whose keys depend on the error. Actionable 403 responses use the V2ActionableForbiddenDetails shape; validation failures may return issue arrays instead.
Schema details
Any of
Machine-readable cause and optional context for an actionable 403 response.
1 field
Stable cause code for an actionable 403 response.
- 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"]
Additional context for this refusal.
Other structured context defined by the specific error.
Identifier of this request, the same id as the x-request-id response header. Quote it when contacting support.
Additional properties are not allowed.
Additional properties are not allowed.
Response headers
Seconds to wait before retrying, sent on 429 and 503. Add jitter rather than retrying at exactly this offset.
- minimum
- 0
- maximum
- 9007199254740991
500
An unexpected server error occurred.
Canonical error envelope returned by the public v2 API.
1 field
Canonical error details.
4 fields
Stable machine-readable error code.
Human-readable explanation of the error.
Structured error context whose keys depend on the error. Actionable 403 responses use the V2ActionableForbiddenDetails shape; validation failures may return issue arrays instead.
Schema details
Any of
Machine-readable cause and optional context for an actionable 403 response.
1 field
Stable cause code for an actionable 403 response.
- 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"]
Additional context for this refusal.
Other structured context defined by the specific error.
Identifier of this request, the same id as the x-request-id response header. Quote it when contacting support.
Additional properties are not allowed.
Additional properties are not allowed.
503
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.
Canonical error envelope returned by the public v2 API.
1 field
Canonical error details.
4 fields
Stable machine-readable error code.
Human-readable explanation of the error.
Structured error context whose keys depend on the error. Actionable 403 responses use the V2ActionableForbiddenDetails shape; validation failures may return issue arrays instead.
Schema details
Any of
Machine-readable cause and optional context for an actionable 403 response.
1 field
Stable cause code for an actionable 403 response.
- 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"]
Additional context for this refusal.
Other structured context defined by the specific error.
Identifier of this request, the same id as the x-request-id response header. Quote it when contacting support.
Additional properties are not allowed.
Additional properties are not allowed.
Response headers
Seconds to wait before retrying, sent on 429 and 503. Add jitter rather than retrying at exactly this offset.
- minimum
- 0
- maximum
- 9007199254740991