Add a section to a workflow

posthttps://api.expiryedge.com/v1/createWorkflowSection
bearer token (Firebase ID token or session JWT); role editor or admin60/minAny method
Request
curl -X POST 'https://api.expiryedge.com/v1/createWorkflowSection' \
  -H "Authorization: Bearer $EXPIRYEDGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "workflow_id": "wf_3Kd9Tx",
  "title": "Preparation",
  "description": "Gather documents"
}'
Response
{
  "message": "Section created successfully",
  "section_id": "sec_5Hn2",
  "section": {
    "id": "sec_5Hn2",
    "workflow_id": "wf_3Kd9Tx",
    "title": "Preparation",
    "description": "Gather documents",
    "order": 0,
    "created_at": "2026-09-27T14:05:00.000Z"
  }
}

order defaults to the end of the workflow. 404 when the workflow is not in your organization.

Body parameters

application/json
  • workflow_idstringrequired
  • titlestringrequired
  • descriptionstring
  • orderinteger

Returns

201
Created.
  • messagestringrequired
  • section_idstringrequired
  • sectionobjectrequired
    A section of a workflow template. steps is included when read through getWorkflow / getAllWorkflows.

Errors

400
The request is missing required fields or contains invalid values.
401
Missing, expired or invalid bearer token.
403
Authenticated, but your role or organization does not allow this action.
404
The record does not exist or is not in your organization.
429
Too many requests for this endpoint from your IP. Wait Retry-After seconds.
500
Unexpected server error. Retry later; quote requestId to support.