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

# Contact

> Event payload details and trigger documentation for Contact data from Active Campaign

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

# Events

## Triggering Webhook Types

The following event types are associated with the Contact event payload from Active Campaign.

* `Active Campaign Contact Create`
* `Active Campaign Contact Update`

<RequestExample>
  ```json Example theme={null}
  {
    "customer_account_name": "Morf",
    "email": "john.doe@gmail.com",
    "field_values": {
      "Age Group": ">60",
      "Timezone": "America/Los_Angeles"
    },
    "first_name": "John",
    "id": "10",
    "ip": "1.2.3.4",
    "last_name": "Doe",
    "organization_name": "Morf",
    "phone": "+15551234123",
    "tags": [
      "tag1",
      "tag2"
    ],
    "updated_at": "2024-01-01T09:00:00Z"
  }
  ```
</RequestExample>

<ResponseExample>
  ```json Description theme={null}
  {
    "customer_account_name": "Customer account name",
    "email": "Email address",
    "field_values": "Custom fields' values",
    "first_name": "First name",
    "id": "ID",
    "ip": "IP address",
    "last_name": "Last name",
    "organization_name": "Organization name (if plan allows)",
    "phone": "Phone number",
    "tags": "Tags",
    "updated_at": "When a webhook ran for the contact"
  }
  ```
</ResponseExample>

### Payload Field Details

<ResponseField name="Contact" type="Event Payload">
  <Expandable title="fields" defaultOpen="true">
    <ResponseField name="id" type="string" required>
      `ID` ID

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

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

    <ResponseField name="email" type="string" required>
      `PII` Email address

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

      ```json Example theme={null}
      "john.doe@gmail.com"
      ```
    </ResponseField>

    <ResponseField name="first_name" type="string">
      `PII` First name

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

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

    <ResponseField name="last_name" type="string">
      `PII` Last name

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

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

    <ResponseField name="phone" type="string">
      `PII` Phone number

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

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

    <ResponseField name="tags" type="[]string" required>
      `HI` `PII` Tags

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

      ```json Example theme={null}
      [
      "tag1",
      "tag2"
      ]
      ```
    </ResponseField>

    <ResponseField name="organization_name" type="string">
      Organization name (if plan allows)

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

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

    <ResponseField name="ip" type="string">
      `PII` IP address

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

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

    <ResponseField name="field_values" type="object" required>
      `HI` `ID` `PII` Custom fields' values

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

      ```json Example theme={null}
      {
      "Age Group": ">60",
      "Timezone": "America/Los_Angeles"
      }
      ```
    </ResponseField>

    <ResponseField name="updated_at" type="timing.v1.Timestamp" required>
      When a webhook ran for the contact

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

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

    <ResponseField name="customer_account_name" type="string">
      Customer account name

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

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