# Target Endpoint Documentation

## Overview

The Daasity Audience feature uses the Attentive [Custom Attributes endpoint](https://docs.attentivemobile.com/openapi/reference/tag/Custom-Attributes/) to update a subscriber and the [Custom Events endpoint](https://docs.attentivemobile.com/openapi/reference/tag/Custom-Events/) to add an event to a subscriber.  Daasity splits the list of subscribers from the Audience Source into individual records and makes an API call to Attentive for that specific subscriber to be updated

## Custom Attribute API

Daasity updated an existing subscriber in Attentive based on the data provided by the Attentive Subscriber target

* Endpoint: <https://docs.attentivemobile.com/openapi/reference/tag/Custom-Attributes/#tag/Custom-Attributes/operation/postCustomAttributes>
* Frequency: Daily (available to run On-Demand via the UI)

| Daasity UI Section | Daasity Property | Attentive Property                          |
| ------------------ | ---------------- | ------------------------------------------- |
| Data Mapping       | phone            | phone                                       |
| Data Mapping       | email            | email                                       |
| Data Mapping       | Source           | Property Name from Data Mapping Destination |

{% hint style="danger" %}

* You must have "phone" or "email" in your data mapping in order to match to an existing subscriber
* You can only add custom attributes to subscribers that already exist in Attentive and are opted-in to email or SMS
  {% endhint %}

## Custom Event API

Daasity pushes a new event into each subscriber at Attentive based on the data provided by the Attentive Events Target

* Endpoint: <https://docs.attentivemobile.com/openapi/reference/tag/Custom-Events/#tag/Custom-Events/operation/postCustomEvents>
* Frequency: Daily (available to run On-Demand via the UI)

| Daasity UI Section | Daasity Property | Attentive Property |
| ------------------ | ---------------- | ------------------ |
| General            | Event Name       | type               |
| Data Mapping       | phone            | phone              |
| Data Mapping       | email            | email              |
| Data Mapping       | Source           | properties         |

{% hint style="danger" %}

* You must have "phone" or "email" in your data mapping in order to match to an existing subscriber
* You must specify a type for the event
* You can push events for any Subscriber
  {% endhint %}
