Run Workflow
Start a run and get its id back right away. Execution is asynchronous: poll Get Run to follow it. Needs the workflow:run permission.
Path
The id of the workflow to run. It must be enabled.
Headers
Optional. The id of the organization to act in. Leave it out to act in the API key's own organization. A key can also act in its child organizations, and, with "Use this key across all of your organizations" on, in every organization its creator can open in the app. List them with GET /v2/companies. Every response's X-Company-Id header names the organization it acted in. See Organizations.
Body
"published" (default) or "draft".
Default: published
publisheddraft
The environment to run in, from List Environments.
Response fields
idstringThe workflow log id. Poll GET /v2/runs/:runId with this id for the outcome.
workflowIdstringThe workflow that was started.
statusstringAlways waiting: the run is queued.
waiting
versionstringThe version that runs: published or draft.
publisheddraft
environmentIdstringThe environment it runs in, or null for the default.