Workflows
Run workflow
Run a workflow now from its input step's test data, replay a finished run (all steps, failed steps, failed steps and the steps after them, up to a step, from a step), or run one step. Follow the run with list-logs.
Authorization
AuthorizationstringheaderrequiredBearer <key>, where <key> is a workspace API key or a user API key. See Authentication.
workspace_id*integerThe workspace. List the ones your key can reach with GET /v1/workspaces.
workflow_id*stringThe workflow.
uuidregion*RegionsRegion of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them
"besg""usnv"Idempotency-Key?|Makes the create retry-safe for 24 hours: a retry with the same key answers the resource the first call created, with the Idempotent-Replayed: true header, and creates nothing. 1 to 255 visible ASCII characters. The same key with a different request answers 422; while the first call still runs, 409.
nullapplication/json- body
mode?RunModerun: a new run from the input step's test data; the replay modes need from_run_id
"run""run""replay_all""replay_failed""replay_failed_and_dependents""until_step""step_only""from_step"version?|The version run; the latest when absent
nullfrom_run_id?|The finished run whose data is replayed
nullstep_id?|The step of the until_step, step_only and from_step modes
nullCreated
application/json- response
run_id*Run Idworkflow_id*Workflow Idworkflow_version?|nullcreated_time?|nullcurl -X POST 'https://api.stacksync.com/v1/workspaces/0/workflows/497f6eca-6276-4993-bfeb-53cbbbba6f08/runs?region=besg' \ -H 'Content-Type: application/json' \ -d '{ "mode": "run"}'{ "run_id": "<run_id>", "workflow_id": "<workflow_id>", "workflow_version": "<workflow_version>", "created_time": "<created_time>"}