GET
List workflows
Retrieve all configured workflows with their associated statuses and settings.
GET
/v1/workflowsAuthentication
This endpoint requires a valid API key with
canViewStatuses permission. The API key must be passed in the X-API-Key header.X-API-Key: ucos_live_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXResponse
Returns a JSON object with the list of workflows:
{
"success": true,
"data": {
"workflows": [
{
"id": "string",
"name": "string",
"description": null,
"color": "string",
"order": 0,
"relationship_type": "string",
"relationship_configured": true,
"previous_workflow_id": "string",
"next_workflow_id": "string",
"statuses": [
{
"id": "string",
"name": "string",
"public_name": null,
"use_public_name": true,
"display_name": "string",
"color": "string",
"order": 0,
"is_independent": true,
"is_addon": true
}
],
"status_count": 0
}
],
"workflows_enabled": true,
"enforce_workflow_order": true,
"workflow_transitions": [
{
"from_workflow_id": "string",
"to_workflow_id": "string",
"trigger": "string"
}
],
"summary": {
"total": 0,
"total_statuses": 0
}
}
}From 1.5 each workflow also carries relationship fields and the response adds workflow_transitions. Requests with 1.3 or 1.4 keep the original response.
Response fields
Root response object
| Field | Description |
|---|---|
| successboolean | Always true on a successful response. |
| dataobject | The endpoint's payload. Its fields are listed in the tables below. |
| workflowsarray | Array of workflow objects |
| workflows_enabledboolean | Whether multi-workflow mode is active |
| enforce_workflow_orderboolean | Whether workflow order enforcement is active. When true, orders must progress through workflows in sequence and cannot move backwards. |
| workflow_transitionsarray | Array of derived one-way workflow handoffs (v1.5+ only) |
| summaryobject | Summary information including totals |
Workflow object fields
| Field | Description |
|---|---|
| idstring | Unique identifier for the workflow |
| namestring | Display name of the workflow |
| descriptionstring | null | Optional description of the workflow's purpose |
| colorstring | Hex color code for UI display |
| ordernumber | Display order position (ascending) |
| relationship_typestring | sequential or isolated (v1.5+ only). |
| relationship_configuredboolean | Whether the shop has an explicit relationship setting (v1.5+ only). |
| previous_workflow_idstring | null | Previous workflow in the chain, or null (v1.5+ only). |
| next_workflow_idstring | null | Next workflow in the chain, or null (v1.5+ only). |
| statusesarray | Array of status objects assigned to this workflow (ordered by order ascending) |
| status_countnumber | Number of statuses in this workflow |
Status object fields (within workflow)
| Field | Description |
|---|---|
| idstring | UUID of the status |
| namestring | Internal name of the status |
| public_namestring | null | Customer-facing name |
| use_public_nameboolean | Whether to use public name for customers |
| display_namestring | Computed display name (public_name if use_public_name is true, otherwise name) |
| colorstring | Hex color code for the status |
| ordernumber | Display order in workflow |
| is_independentboolean | Whether status can be used independently of workflow |
| is_addonboolean | Whether this status is an addon status |
Workflow transition object fields
| Field | Description |
|---|---|
| from_workflow_idstring | Workflow the handoff starts from. |
| to_workflow_idstring | Workflow the handoff leads to. |
| triggerstring | What triggers the handoff — on_final_status. |
Summary object fields
| Field | Description |
|---|---|
| totalnumber | Total number of workflows |
| total_statusesnumber | Total number of statuses across all workflows |
Examples
Basic request
curl -X GET "https://api.ultimate-custom-order-status.apps.msmtech.ca/api/v1/workflows" \
-H "X-API-Key: ucos_live_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
-H "X-API-Version: 1.5"Rate limiting
This endpoint is subject to per-minute and per-day rate limits based on your API key. Rate limit information is returned in the response headers:
X-RateLimit-Limit-Minute: Maximum requests per minuteX-RateLimit-Remaining-Minute: Remaining requests in current minuteX-RateLimit-Reset-Minute: Unix timestamp when minute window resetsX-RateLimit-Limit-Day: Maximum requests per dayX-RateLimit-Remaining-Day: Remaining requests in current dayX-RateLimit-Reset-Day: Unix timestamp when day window resetsRetry-After: Seconds to wait before retrying (when rate limited)
Error responses
401 Unauthorized
Missing or invalid API key
{
"success": false,
"error": "Missing API key. Include it in the X-API-Key header"
}403 Forbidden
API key lacks required permissions
{
"success": false,
"error": "Insufficient permissions. Required: canViewStatuses"
}500 Internal Server Error
Server error occurred
{
"success": false,
"error": "Internal server error",
"details": {
"message": "An unexpected error occurred"
}
}