> For the complete documentation index, see [llms.txt](https://peach-organization.gitbook.io/peach/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://peach-organization.gitbook.io/peach/webhooks/webhooks-for-automations/task-time-finished-webhook.md).

# Task time finished webhook

When an tasks time is ending, an automation can be triggered. The task details can be sent to the endpoint of your choice

| Parameter                 | Values             | Description                                                                                                 |
| ------------------------- | ------------------ | ----------------------------------------------------------------------------------------------------------- |
| automationTrigger         | string             | Event type that triggered this webhook (`taskTimeFinished`)                                                 |
| endTaskDateAndTime        | number (timestamp) | Task end date and time                                                                                      |
| assignTo                  | array of UUIDs     | IDs of users the task is assigned to                                                                        |
| accountId                 | string             | Account ID associated with the task                                                                         |
| sortKey                   | string             | Internal sort key for the task                                                                              |
| contacts                  | array of objects   | List of contacts associated with the task, each containing `contactId`, `firstName`, `lastName`             |
| status                    | string             | Current status of the task (`task_to_do`, etc.)                                                             |
| startTaskDateAndTime      | number (timestamp) | Task start date and time (ms since epoch)                                                                   |
| createdAt                 | number (timestamp) | Timestamp when the task was created                                                                         |
| attachments               | array of objects   | List of attachments; each has `createdAt`, `size`, `success`, `name`, `type`, `url`, `key`, `formattedSize` |
| creatorId                 | string (UUID)      | User ID of the task creator                                                                                 |
| title                     | string             | Task title                                                                                                  |
| taskId                    | string (UUID)      | Unique task identifier                                                                                      |
| TASK\_TITLE\_TOKEN        | string             | Token for task title                                                                                        |
| TASK\_STATUS\_TOKEN       | string             | Token for task status                                                                                       |
| TASK\_ASSIGNED\_TO\_TOKEN | string             | Token showing assigned user(s) with names and IDs                                                           |
