Skip to content

Get Task Notifications

Retrieve notifications for a task from Last Mile Intelligence.

getTaskNotifications

task

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