Task Email
Send an email related to a task in Last Mile Intelligence.
Operation
Section titled “Operation”taskEmail
Resource
Section titled “Resource”task
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Task ID | string | Yes | - | The ID of the task |
| Email Data | JSON | Yes | - | Email configuration |
Email Data Fields
Section titled “Email Data Fields”| Field | Type | Required | Description |
|---|---|---|---|
| to | array | Yes | Array of recipient email addresses |
| subject | string | No | Email subject (defaults to task title) |
| body | string | No | Email body |
| includeDetails | boolean | No | Include task details in email |
Response
Section titled “Response”Success
Section titled “Success”{ "success": true, "taskId": "task_abc123", "emailsSent": 2, "recipients": ["user1@company.com", "user2@company.com"]}{ "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
- Invalid Recipients: One or more email addresses are invalid
- Email Failed: Email service unavailable
- Permission Denied: API token lacks permission for this operation