# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.daasity.com/core-concepts/audiences-reverse-elt/pushing-audience-data-to-targets/attentive/target-endpoint-documentation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
