Draft
Where every edit lands. Runs in production do not see it.
Published
The version that API calls, schedules and integrations use.
Which version an execution uses
An execution uses one version, and it holds that version until it finishes.
Edits in a draft do not change an execution until you publish.
Pinning a version from the API
The execute call takes an optionalversion field. Pass an integer to run that exact version, published or not.
version and the execution uses the published version. See Call a workflow from your code.
A schedule set to a specific version keeps that version, even after you publish a newer one. See Schedules.
Publishing
Publishing promotes one version to be the default for API, schedule and integration triggers.- On the platform, open the workflow and click Publish.
- From your code, call
POST /agents/{agentId}/workflows/{workflowId}/publish.
Version history
The platform shows the workflow’s version lineage and marks the published one. Asteroid keeps every version that was published or executed. You can always read the exact instructions a past run used. Only an unpublished draft with no executions can be deleted.Test, iterate, publish
The loop from draft to published
Call a workflow
Start an execution, with or without a pinned version

