POST
/organizations/{organizationId}/workflowsCreate a workflow
Creates a draft workflow with typed trigger, condition, and action steps.
Send request
Use the documented inputs to call this endpoint directly.
API serverbase URL
Bearer tokenBearerAuthoptional
Stored only in this browser for the BearerAuth security scheme and reused on every API page in this group.
Parameters
Values are applied to the request and the example on the right.
organizationIdpath · stringrequired
Opaque organization identifier.
Idempotency-Keyheader · string · uuidoptional
Unique key for retry-safe writes, retained for 24 hours.
Request body
application/jsonrequirednamestringrequired
triggerobjectrequired
stepsarray<object>required
stateenumoptional
Values: "draft" · "active"
Responses
201application/json
Workflow created.
{
"id": "wfl_01J8FC8R3N4V6Q9P2K7",
"name": "Alert enterprise CSM about failed exports",
"state": "active",
"trigger": {
"event": "export.failed"
},
"steps_count": 2,
"run_health": {
"last_24h": 42,
"failed": 0
},
"created_at": "2026-08-12T13:20:00Z",
"updated_at": "2026-09-01T08:00:00Z"
}idstringoptional
namestringoptional
statestringoptional
triggerobjectoptional
steps_countintegeroptional
run_healthobjectoptional
created_atstring · date-timeoptional
updated_atstring · date-timeoptional
422
Workflow graph is invalid.
Powered by heyo-docs