Add a section to a workflow
post
https://api.expiryedge.com/v1/createWorkflowSectionbearer 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.
workflow_idstringrequiredtitlestringrequireddescriptionstringorderinteger
201
Created.
messagestringrequiredsection_idstringrequiredsectionobjectrequiredA section of a workflow template.stepsis included when read through getWorkflow / getAllWorkflows.
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. |
