Get Task
Retrieve a single task by its ID from Last Mile Intelligence.
Operation
Section titled “Operation”getTask
Resource
Section titled “Resource”task
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Task ID | string | Yes | - | The ID of the task to retrieve |
Response
Section titled “Response”Success
Section titled “Success”{ "id": "task_abc123", "title": "Equipment Maintenance", "description": "Annual maintenance for Truck 001", "status": "in_progress", "priority": "high", "assignedTo": "res_driver001", "dueDate": "2024-06-25", "entityType": "vehicle", "entityId": "veh_truck001", "createdAt": "2024-06-20T10:00:00Z"}{ "success": false, "error": "Task not found", "taskId": "invalid_id"}Error Handling
Section titled “Error Handling”- Missing API Token: LMI credential is missing API token
- Task Not Found: Task with specified ID does not exist
- Permission Denied: API token lacks permission for this operation