GET
List Workflows
Retrieve all configured workflows with their associated statuses and settings.
Endpoint
HTTP Request
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.Required Header
X-API-Key: your_api_key_hereResponse
Returns a JSON object with the list of workflows:
200 OK - Success Response
{
"workflows": [
{
"id": "uuid-workflow-1",
"name": "Fulfillment",
"description": "Standard order fulfillment pipeline",
"color": "#4A90E2",
"order": 1,
"statuses": [
{
"id": "uuid-status-1",
"name": "Processing",
"public_name": null,
"use_public_name": false,
"display_name": "Processing",
"color": "#FFA500",
"order": 1,
"is_independent": false,
"is_addon": false
},
{
"id": "uuid-status-2",
"name": "Shipped",
"public_name": "On its way",
"use_public_name": true,
"display_name": "On its way",
"color": "#00FF00",
"order": 2,
"is_independent": false,
"is_addon": false
}
],
"status_count": 2
},
{
"id": "uuid-workflow-2",
"name": "Returns",
"description": "Return and exchange handling",
"color": "#E24A4A",
"order": 2,
"statuses": [
{
"id": "uuid-status-10",
"name": "Return Requested",
"public_name": null,
"use_public_name": false,
"display_name": "Return Requested",
"color": "#FF0000",
"order": 10,
"is_independent": false,
"is_addon": false
}
],
"status_count": 1
}
],
"workflows_enabled": true,
"enforce_workflow_order": false,
"summary": {
"total": 2,
"total_statuses": 3
}
}Response Fields
Root Response Object
| Field | Type | Description |
|---|---|---|
workflows | array | Array of workflow objects |
workflows_enabled | boolean | Whether multi-workflow mode is active |
enforce_workflow_order | boolean | Whether workflow order enforcement is active. When true, orders must progress through workflows in sequence and cannot move backwards. |
summary | object | Summary information including totals |
Workflow Object Fields
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the workflow |
name | string | Display name of the workflow |
description | string | null | Optional description of the workflow's purpose |
color | string | Hex color code for UI display |
order | number | Display order position (ascending) |
statuses | array | Array of status objects assigned to this workflow (ordered by order ascending) |
status_count | number | Number of statuses in this workflow |
Status Object Fields (within workflow)
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the status |
name | string | Display name of the status |
public_name | string | null | Public-facing name of the status, or null |
use_public_name | boolean | Whether to use the public name instead of the internal name |
display_name | string | The resolved display name (public_name if use_public_name is true, otherwise name) |
color | string | Hex color code for the status |
order | number | Position of the status within the workflow sequence |
is_independent | boolean | Whether this status is independent (not part of the main chain) |
is_addon | boolean | Whether this status is an addon status |
Summary Object Fields
| Field | Type | Description |
|---|---|---|
total | number | Total number of workflows |
total_statuses | number | Total number of statuses across all workflows |
Examples
Basic Request
cURL Request
curl -X GET "https://api.ultimate-custom-order-status.apps.msmtech.ca/api/v1/workflows" \
-H "X-API-Key: your_api_key_here" \
-H "X-API-Version: 1.3"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
401 Unauthorized
{
"error": "Invalid API key"
}403 Forbidden
API key lacks required permissions
403 Forbidden
{
"error": "Insufficient permissions"
}500 Internal Server Error
Server error occurred
500 Internal Server Error
{
"error": "Internal server error",
"details": {
"message": "Error description"
}
}