> ## 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.

# Time Slot Selected

> Event payload details and trigger documentation for Time Slot Selected data from Morf

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

# Events

## Triggering Webhook Types

The following event types are associated with the Time Slot Selected event payload from Morf.

* `Time Slot Selected`

<RequestExample>
  ```json Example theme={null}
  {
    "application": "HEALTHIE",
    "appointment_type": {
      "id": null,
      "length_minutes": null,
      "name": null
    },
    "datetime": "2025-01-02T15:30:00Z",
    "event_data": {
      "referrer_domain": "example.com",
      "referrer_url": "https://example.com/schedule-appointment"
    },
    "profile_customer_id": "02afaa5f-9f26-43dc-a1f8-92d3d4f7a097",
    "profile_email_address": "joe@bloggs.com",
    "provider_scheduling": {
      "name": "Dr. Jane Smith",
      "provider_id": {
        "id": null,
        "id_type": null
      }
    },
    "view_type": "BASIC_VIEW"
  }
  ```
</RequestExample>

<ResponseExample>
  ```json Description theme={null}
  {
    "application": "The scheduling application being used",
    "appointment_type": {
      "id": null,
      "length_minutes": null,
      "name": null
    },
    "datetime": "The selected appointment date and time",
    "event_data": "(Optional) Data associated with the event, *not* automatically stored on the Morf Profile",
    "profile_customer_id": "The customer ID sent to the scheduling application from the form for the person who selected the time slot, e.g. the Formsort responder_uuid or Feathery user_id",
    "profile_email_address": "The email address sent to the scheduling application for the person who selected the time slot",
    "provider_scheduling": {
      "name": "The name of the provider",
      "provider_id": {
        "id": null,
        "id_type": null
      }
    },
    "view_type": "The type of view being used"
  }
  ```
</ResponseExample>

### Payload Field Details

<ResponseField name="Time Slot Selected" type="Event Payload">
  <Expandable title="fields" defaultOpen="true">
    <ResponseField name="application" type="scheduling.v1.SchedulingApplication" required>
      The scheduling application being used

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

      ```json Example theme={null}
      scheduling.v1.SchedulingApplication.HEALTHIE
      scheduling.v1.SchedulingApplication.ACUITY
      ```
    </ResponseField>

    <ResponseField name="view_type" type="scheduling.v1.SchedulingApplicationViewType" required>
      The type of view being used

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

      ```json Example theme={null}
      scheduling.v1.SchedulingApplicationViewType.BASIC_VIEW
      scheduling.v1.SchedulingApplicationViewType.PROVIDERS_VIEW
      scheduling.v1.SchedulingApplicationViewType.PROVIDER_PROFILE
      ```
    </ResponseField>

    <ResponseField name="appointment_type" type="object" required>
      Information about the type of appointment being scheduled

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

      ```json Example theme={null}
      {
      "id": null,
      "length_minutes": null,
      "name": null
      }
      ```
    </ResponseField>

    <ResponseField name="appointment_type.id" type="string" required>
      *Description coming soon*

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

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

    <ResponseField name="appointment_type.name" type="string" required>
      *Description coming soon*

      ```json CEL theme={null}
      appointment_type.name
      ```

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

    <ResponseField name="appointment_type.length_minutes" type="uint64" required>
      *Description coming soon*

      ```json CEL theme={null}
      appointment_type.length_minutes
      ```

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

    <ResponseField name="datetime" type="timing.v1.Timestamp" required>
      The selected appointment date and time

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

      ```json Example theme={null}
      "2025-01-02T15:30:00Z"
      ```
    </ResponseField>

    <ResponseField name="provider_scheduling" type="object" required>
      Information about the provider selected for scheduling

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

      ```json Example theme={null}
      {
      "name": "Dr. Jane Smith",
      "provider_id": {
      "id": null,
      "id_type": null
      }
      }
      ```
    </ResponseField>

    <ResponseField name="provider_scheduling.provider_id" type="object" required>
      The unique identifier of the provider for the scheduling application

      ```json CEL theme={null}
      provider_scheduling.provider_id
      ```

      ```json Example theme={null}
      {
      "id": null,
      "id_type": null
      }
      ```
    </ResponseField>

    <ResponseField name="provider_scheduling.provider_id.id_type" type="scheduling.v1.SchedulingApplication" required>
      *Description coming soon*

      ```json CEL theme={null}
      provider_scheduling.provider_id.id_type
      ```

      ```json Example theme={null}
      scheduling.v1.SchedulingApplication.HEALTHIE
      scheduling.v1.SchedulingApplication.ACUITY
      ```
    </ResponseField>

    <ResponseField name="provider_scheduling.provider_id.id" type="string" required>
      *Description coming soon*

      ```json CEL theme={null}
      provider_scheduling.provider_id.id
      ```

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

    <ResponseField name="provider_scheduling.name" type="string" required>
      The name of the provider

      ```json CEL theme={null}
      provider_scheduling.name
      ```

      ```json Example theme={null}
      "Dr. Jane Smith"
      ```
    </ResponseField>

    <ResponseField name="profile_customer_id" type="string">
      The customer ID sent to the scheduling application from the form for the person who selected the time slot, e.g. the Formsort responder\_uuid or Feathery user\_id

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

      ```json Example theme={null}
      "02afaa5f-9f26-43dc-a1f8-92d3d4f7a097"
      ```
    </ResponseField>

    <ResponseField name="profile_email_address" type="string">
      The email address sent to the scheduling application for the person who selected the time slot

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

      ```json Example theme={null}
      "joe@bloggs.com"
      ```
    </ResponseField>

    <ResponseField name="event_data" type="object">
      `HI` `PII` (Optional) Data associated with the event, *not* automatically stored on the Morf Profile

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

      ```json Example theme={null}
      {
      "referrer_domain": "example.com",
      "referrer_url": "https://example.com/schedule-appointment"
      }
      ```
    </ResponseField>
  </Expandable>
</ResponseField>
