Get Workflow
Retrieve a single workflow by its ID from Last Mile Intelligence.
Operation
Section titled “Operation”getWorkflow
Resource
Section titled “Resource”workflow
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Workflow ID | string | Yes | - | The ID of the workflow to retrieve |
Response
Section titled “Response”Success
Section titled “Success”{ "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"}Error Handling
Section titled “Error Handling”- 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