# Target Endpoint Documentation

## Target Overview

The Daasity Audiences product uses the [Klaviyo Track-Identify](https://apidocs.klaviyo.com/reference/track-identify) endpoint to update a profile (Identify) or add an event to a profile (Track).  Daasity separates the entire list of generated profiles to be updated into individual records and makes an API call to Klaviyo for that specific profile to be updated

## Identify API

Daasity creates a new profile or updates an existing profile in Klaviyo based on the data provided by the Klaviyo Profile target

* Endpoint: <https://apidocs.klaviyo.com/reference/track-identify#identify>
* Frequency: Daily (available to run On-Demand via the UI)

| Daasity UI Section | Daasity Property | Klaviyo Property                            |
| ------------------ | ---------------- | ------------------------------------------- |
| Data Mapping       | $email           | $email                                      |
| Data Mapping       | $phone\_number   | $phone\_number                              |
| Data Mapping       | Source           | Property Name from Data Mapping Destination |

{% hint style="info" %}

* You must specify either $email or $phone\_number (for SMS only contacts) to match or create a new profile
* Daasity can update Klaviyo standard properties (not recommended) or create / update additional properties
  {% endhint %}

## Track API

Daasity pushes a new event into each profile at Klaviyo based on the data provided by the Klaviyo Events target

* Endpoint: <https://apidocs.klaviyo.com/reference/track-identify#track-get>
* Frequency: Daily (available to run On-Demand via the UI)

<table><thead><tr><th width="230.33333333333331">Daasity UI Section</th><th>Daasity Property</th><th>Klaviyo Property</th></tr></thead><tbody><tr><td>General</td><td>Event Name</td><td>$event_id</td></tr><tr><td>Data Mapping</td><td>$email</td><td>$email</td></tr><tr><td>Data Mapping</td><td>$phone_number</td><td>$phone_number</td></tr><tr><td>Data Mapping</td><td>Source</td><td>$value</td></tr></tbody></table>

{% hint style="info" %}

* You must specify either $email or $phone\_number to match or create a new profile that the event is related to
* You must specify an $event\_id to provide the name for the event
* You must specify a $value to indicate the value for the event
  {% endhint %}
