post
https://api.whippy.co/v1/workflows//steps
Creates one step on the workflow draft without requiring a full-graph sync.
Prefer this over any full draft replace when building or editing workflows
as an agent.
Agent workflow
- Call
listWorkflowStepTypes(optionally withworkflow_id+
parent_step_id) to discover valid options and copy a create-ready
step_template. Default responses are summary-sized (no schemas). - Call
listWorkflowStepTypesagain withdetail=fullandid=<option_id>
when you need input/output field schemas for configuration. - Call this endpoint with the template fields (
name,type,data,
plusprevious_step_idorprevious_step_alias/parent_step_idor
parent_step_alias/child_roleas needed).
For linear chains, use the returneddata.idas the next
previous_step_id— no list call needed. For splits/branches, pass
include=stepsto get the full draft step list in the same response. - Call
updateWorkflowStepto fill input mappings / credentials. - Call
testWorkflowStepto verify behavior. - Call
publishWorkflowwhen the draft is ready.
Validation
- Ensures the workflow exists and belongs to the authenticated organization.
- Ensures
previous_step_id/parent_step_id(when provided) reference
steps on the editable draft (or published current version when no draft
exists yet). previous_step_alias/parent_step_aliasare alternatives to the UUID
fields and resolve against the same editable steps. Providing both an id
and its alias pair returns 422. An unknown alias returns 404.- Enforces graph placement (trigger only at root, allowed next steps,
nested child roles under loop / wait_for). - Uses optimistic concurrency against the draft (or published version when
creating a draft). Concurrent races return 409stale_draft. - Full step config completeness (required fields per action/app) is
validated on publish, not on create — incompletedatais allowed
while the agent is still configuring the step.
If no draft exists yet, creates one from the published version (step IDs
may remap for links that pointed at published steps).
OAuth callers require the workflows:update scope (and matching workspace
permission). API key callers are authorized by organization membership.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Callback
