Skip to content

Get Task

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

getTask

task

ParameterTypeRequiredDefaultDescription
Task IDstringYes-The ID of the task to retrieve
{
"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"
}
  • 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