> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hightouch.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Xandr

> Enable your marketing team to target granular audiences and measure real-world outcomes

## Supported syncing

| Sync type | Description | Supported sync modes | API reference |
| - | - | - | - |
| [**Segments**](#syncing-segments) | Sync data from any source to Xandr segments | Add, Remove | [Segments docs](https://docs.xandr.com/bundle/xandr-api/page/uploading-segment-data-using-bss.html) |

For more information about sync modes, refer to the [sync modes](https://docs.hightouch.com/syncs/types-and-modes.md#sync-modes) docs.

## Connect to Xandr

Go to the [**Destinations** overview page](https://app.hightouch.com/destinations?from=docs) and click the **Add destination** button. Select **Xandr** and click **Continue**. You can then authenticate Hightouch to **Xandr**.

To get started with the Xandr API, you need to request access by contacting the [Xandr support team](https://help.xandr.com/s/login/). For more information, read the [Xandr API docs](https://docs.xandr.com/bundle/xandr-api/page/api-onboarding-process.html).

Before configuring your Xandr destination, you will need to follow [these steps](https://docs.xandr.com/bundle/xandr-api/page/token-based-api-authentication.html) to generate private and public keys. After generating your keys, register your public key with your Xandr account.

Enter the following required fields into Hightouch:

* **Username**: Enter your username.
* **Member ID**: Enter your member ID.
* **Public Key Name**: Enter the name of the public key.
* **Private Key**: Enter your private key

## Sync configuration

Once you've set up your Xandr destination and have a [model](https://docs.hightouch.com/getting-started/concepts.md#models) to pull data from, you can set up your sync configuration to begin syncing data. Go to the [**Syncs** overview page](https://app.hightouch.com/syncs?from=docs) and click the **Add sync** button to begin. Then, select the relevant model and the Xandr destination you want to sync to.

### Syncing segments

Sync data from any source to Xandr segments.

#### Record matching

To match rows from your model to segment in Xandr, you need to select a model column and corresponding Xandr field. You can match on any of the following Xandr fields:

* **Xandr ID**
* **Extended ID**
* **External ID**
* **Device ID**
* **IFA**

#### Field mapping

Hightouch lets you sync segment fields via [field mapping](https://docs.hightouch.com/syncs/mapping-data.md).
You can map data from any of your model columns to the default segment fields.
Ensure your model columns data types match the data types of the fields you want to sync to.

## Tips and troubleshooting

To see the exact API requests and responses from each sync run, use the [live debugger](https://docs.hightouch.com/syncs/debugger.md). To get notified by Slack, PagerDuty, SMS, or email when a sync fails, set up [sync alerts](https://docs.hightouch.com/syncs/alerting.md). If you run into an issue this page doesn't cover, [contact support](#pylon-chat).
