> ## Documentation Index
> Fetch the complete documentation index at: https://help.hoopai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Task complete | Webhook events

> Fires whenever a task on a contact is marked as completed in an account.

When a team member or automation marks a task as done, HoopAI sends a `TaskComplete` event to all configured webhook endpoints. This event lets you close corresponding items in external tools, trigger follow-on workflows, update reporting dashboards, or notify stakeholders that an action item has been resolved.

## Payload

| Field        | Type     | Description                                             |
| ------------ | -------- | ------------------------------------------------------- |
| `type`       | `string` | Always `"TaskComplete"`                                 |
| `locationId` | `string` | Account ID the task belongs to                          |
| `id`         | `string` | Unique ID of the completed task                         |
| `title`      | `string` | Short display name of the task                          |
| `body`       | `string` | Full description or details of the task                 |
| `contactId`  | `string` | ID of the contact this task is associated with          |
| `assignedTo` | `string` | ID of the user who was responsible for the task         |
| `dateAdded`  | `string` | ISO 8601 timestamp when the task was originally created |
| `dueDate`    | `string` | ISO 8601 timestamp by which the task was due            |

## Example payload

```json theme={null}
{
  "type": "TaskComplete",
  "locationId": "ve9EPM428h8vShlRW1KT",
  "id": "5HrB1IbmnKMBXloldFuP",
  "assignedTo": "bNl8QNGXhIQJLv8eeASQ",
  "body": "testing",
  "contactId": "WFwVrSSjZ2CNHbZThQX2",
  "dateAdded": "2021-11-29T13:37:28.304Z",
  "dueDate": "2021-12-22T06:55:00.000Z",
  "title": "test"
}
```

## Related

* [Task create](/api-reference/webhooks/task-create) — fires when a new task is added
* [Task delete](/api-reference/webhooks/task-delete) — fires when a task is removed
* [Contacts API](/api-reference/contacts/overview) — manage contacts and their associated tasks
