Create a workflow type
post
https://api.expiryedge.com/v1/createWorkflowTypeeditor or admin60/minAny method
Request
curl -X POST 'https://api.expiryedge.com/v1/createWorkflowType' \
-H "Authorization: Bearer $EXPIRYEDGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Licensing",
"description": "License and permit renewals",
"color": "#1976d2"
}'Response
{
"id": "wtype_R4c2",
"name": "Licensing",
"description": "License and permit renewals",
"color": "#1976d2",
"organization_id": "org_northwind",
"created_by": "u_71bXq",
"created_at": "2026-09-27T14:05:00.000Z",
"updated_at": "2026-09-27T14:05:00.000Z"
}Names are unique within the organization (400 on duplicate). color defaults to #1976d2.
Authentication failures currently return 500 {error} from this handler, not 401.
namestringrequireddescriptionstringcolorstringHex color.Default#1976d2
201
Created.
idstringread-onlynamestringdescriptionstringcolorstringorganization_idstringread-onlycreated_bystringread-onlycreated_atstringISO 8601 date-time string (UTC). Formerly a raw Firestore Timestamp ({_seconds, _nanoseconds}).format: date-timeupdated_atstringISO 8601 date-time string (UTC). Formerly a raw Firestore Timestamp ({_seconds, _nanoseconds}).format: date-timeworkflow_countintegerread-only
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. |
429 | Too many requests for this endpoint from your IP. Wait Retry-After seconds. |
500 | Unexpected server error. Retry later; quote requestId to support. |
