Skip to content

Get Workflow

Retrieve a single workflow by its ID from Last Mile Intelligence.

getWorkflow

workflow

ParameterTypeRequiredDefaultDescription
Workflow IDstringYes-The ID of the workflow to retrieve
{
"id": "wf_order_process",
"name": "Order Processing Workflow",
"description": "Standard workflow for processing customer orders",
"trigger": "order.created",
"steps": [
{
"id": "step_1",
"action": "validate_order",
"order": 1
},
{
"id": "step_2",
"action": "assign_route",
"order": 2
},
{
"id": "step_3",
"action": "notify_driver",
"order": 3
}
],
"isActive": true,
"createdAt": "2024-01-15T10:00:00Z"
}
{
"success": false,
"error": "Workflow not found",
"workflowId": "invalid_id"
}
  • Missing API Token: LMI credential is missing API token
  • Workflow Not Found: Workflow with specified ID does not exist
  • Permission Denied: API token lacks permission for this operation