close

Deployments

de

Deployments is Sim's built-in system for taking a workflow's draft state live for API execution and managing its version history. Every deploy creates a new version, and past versions stay available for review or rollback.

  • Deploy and undeploy: Push the current draft live as a new version, or take a live workflow offline and remove its triggers, webhooks, and schedules
  • Promote or roll back: Make any past version the live one without creating a new version, including re-deploying an undeployed workflow at a known-good version
  • Inspect version history: List every deployment version with its metadata, or fetch the full workflow state snapshot for a specific version

In Sim, the Deployments block allows your agents to deploy and undeploy workflows, promote a specific version to live for rollbacks, list all deployment versions of a workflow, and retrieve the deployed state snapshot of any past version—all programmatically as part of another workflow.

Usage Instructions

Deploy, undeploy, and roll back workflows in the current workspace. Promote a previous deployment version to live, list every version, or fetch the deployed workflow state for a specific version.

Actions

deployments_deploy

Deploy a workflow’s current draft state, creating a new deployment version and making it live for API execution. Requires admin permission on the workflow’s workspace.

Input

ParameterTypeRequiredDescription
workflowIdstringYesID of the workflow to deploy
namestringNoOptional label for the new deployment version
descriptionstringNoOptional summary of what changed in this version

Output

ParameterTypeDescription
workflowIdstringID of the deployed workflow
isDeployedbooleanWhether the workflow is now deployed
deployedAtstringISO 8601 timestamp of the deployment (null if unavailable)
versionnumberThe deployment version that is now active
warningsarrayNon-fatal warnings (e.g. trigger or schedule sync still in progress)

deployments_undeploy

Take a deployed workflow offline. API execution stops and schedules, webhooks, and other deployment side effects are removed. Requires admin permission on the workflow’s workspace.

Input

ParameterTypeRequiredDescription
workflowIdstringYesID of the workflow to undeploy

Output

ParameterTypeDescription
workflowIdstringID of the undeployed workflow
isDeployedbooleanWhether the workflow is still deployed (false)
deployedAtstringAlways null after an undeploy
warningsarrayNon-fatal warnings (e.g. trigger or schedule cleanup still in progress)

deployments_promote

Make a specific deployment version the live one without creating a new version — the same operation as Promote to live in the deploy modal. Useful for rolling back to a known-good version. Also works on an undeployed workflow: it re-deploys the workflow live at that version. Requires admin permission on the workflow’s workspace.

Input

ParameterTypeRequiredDescription
workflowIdstringYesID of the workflow
versionnumberYesThe deployment version number to promote to live

Output

ParameterTypeDescription
workflowIdstringID of the workflow
isDeployedbooleanWhether the workflow is now deployed
deployedAtstringISO 8601 timestamp of the active deployment (null if unavailable)
versionnumberThe deployment version that is now live
warningsarrayNon-fatal warnings (e.g. trigger or schedule sync still in progress)

deployments_list_versions

List every deployment version of a workflow, newest first, including which version is currently live.

Input

ParameterTypeRequiredDescription
workflowIdstringYesID of the workflow

Output

ParameterTypeDescription
workflowIdstringID of the workflow
versionsarrayDeployment versions, newest first (id, version, name, description, isActive, createdAt, createdBy, deployedByName)

deployments_get_version

Fetch a single deployment version of a workflow, including its metadata and the full workflow state snapshot that was deployed.

Input

ParameterTypeRequiredDescription
workflowIdstringYesID of the workflow
versionnumberYesThe deployment version number to fetch

Output

ParameterTypeDescription
workflowIdstringID of the workflow
versionnumberThe deployment version number
namestringVersion label
descriptionstringVersion description
isActivebooleanWhether this version is currently live
createdAtstringWhen this version was deployed (ISO 8601)
deployedStatejsonThe full workflow state snapshot (blocks, edges, loops, parallels, variables)

On this page