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

# Task

> Event payload details and trigger documentation for Task data from Healthie

<img src="https://mintcdn.com/morfhealth/EU2WCxuXGIUQcziR/images/healthie.svg?fit=max&auto=format&n=EU2WCxuXGIUQcziR&q=85&s=d168a24dbae69f2202ca63dd7aa2e1f3" alt="images/healthie.svg" width="40" height="40" data-path="images/healthie.svg" />

# Events

## Triggering Webhook Types

The following event types are associated with the Task event payload from Healthie.

* `Healthie Task Created`
* `Healthie Task Updated`

<RequestExample>
  ```json Example theme={null}
  {
    "client_id": "789012",
    "created_at": "2024-01-15T10:30:00Z",
    "created_by_id": "123456",
    "due_date": "2024-01-20T10:30:00Z",
    "id": "678901",
    "note_content": "Follow up with patient regarding lab results",
    "priority": 0
  }
  ```
</RequestExample>

<ResponseExample>
  ```json Description theme={null}
  {
    "client_id": "The identifier of the client associated with this task",
    "created_at": "The date and time this task was created",
    "created_by_id": "The identifier of the user who created this task",
    "due_date": "The date and time this task is due to be completed",
    "id": "Unique identifier for the task",
    "note_content": "The note content associated with the task",
    "priority": "Level of urgency for this task (0 = standard priority, 1 = high priority)"
  }
  ```
</ResponseExample>

### Payload Field Details

<ResponseField name="Task" type="Event Payload">
  <Expandable title="fields" defaultOpen="true">
    <ResponseField name="id" type="string" required>
      Unique identifier for the task

      ```json CEL theme={null}
      id
      ```

      ```json Example theme={null}
      "678901"
      ```
    </ResponseField>

    <ResponseField name="created_by_id" type="string">
      `ID` The identifier of the user who created this task

      ```json CEL theme={null}
      created_by_id
      ```

      ```json Example theme={null}
      "123456"
      ```
    </ResponseField>

    <ResponseField name="client_id" type="string">
      `ID` The identifier of the client associated with this task

      ```json CEL theme={null}
      client_id
      ```

      ```json Example theme={null}
      "789012"
      ```
    </ResponseField>

    <ResponseField name="note_content" type="string">
      The note content associated with the task

      ```json CEL theme={null}
      note_content
      ```

      ```json Example theme={null}
      "Follow up with patient regarding lab results"
      ```
    </ResponseField>

    <ResponseField name="due_date" type="timing.v1.Timestamp">
      The date and time this task is due to be completed

      ```json CEL theme={null}
      due_date
      ```

      ```json Example theme={null}
      "2024-01-20T10:30:00Z"
      ```
    </ResponseField>

    <ResponseField name="created_at" type="timing.v1.Timestamp" required>
      The date and time this task was created

      ```json CEL theme={null}
      created_at
      ```

      ```json Example theme={null}
      "2024-01-15T10:30:00Z"
      ```
    </ResponseField>

    <ResponseField name="priority" type="int64" required>
      Level of urgency for this task (0 = standard priority, 1 = high priority)

      ```json CEL theme={null}
      priority
      ```

      ```json Example theme={null}
      0
      ```
    </ResponseField>
  </Expandable>
</ResponseField>
