Get Task Notifications
Retrieve notifications for a task from Last Mile Intelligence.
Operation
Section titled “Operation”getTaskNotifications
Resource
Section titled “Resource”task
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Task ID | string | Yes | - | The ID of the task to get notifications for |
Response
Section titled “Response”Success
Section titled “Success”{ "taskId": "task_abc123", "notifications": [ { "id": "notif_001", "type": "assignment", "message": "Task assigned to John Smith", "read": true, "createdAt": "2024-06-20T10:00:00Z" }, { "id": "notif_002", "type": "status_change", "message": "Task status changed to in_progress", "read": false, "createdAt": "2024-06-21T08: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