# ProsperStack Destination

## Destination Info

* Accepts [Identify](/docs/segment/connections/spec/identify) calls.
* Refer to it as **ProsperStack** in the [Integrations object.](/docs/segment/guides/filtering-data/#filtering-with-the-integrations-object)
* This integration is **partner owned.** Please reach out to the partner's support for any issues.

[ProsperStack](https://prosperstack.com/?utm_source=segmentio\&utm_medium=docs\&utm_campaign=partners) is the hosted cancellation flow for subscription businesses that automatically prevents churn. Retain customers with targeted offers and interventions designed to prevent cancellations and increase customer lifetime value.

ProsperStack maintains this destination. For any issues with the ProsperStack Destination, [contact the ProsperStack Support team](mailto:support@prosperstack.com).

## Getting Started

### Automated setup

1. Log in to the [ProsperStack dashboard](https://app.prosperstack.com).
2. Navigate to **Settings** > **Manage integrations**.
3. Click **Configure** in the Segment integration section.
4. Click **Connect Segment**.
5. Select a Segment workspace and source to send to the ProsperStack Destination.

To add additional sources, click **Connect a source**.

### Manual setup

1. In the Segment app, go to **Connections** and click **Add Destination**.
2. Search for "ProsperStack" in the Destinations Catalog, and select the **ProsperStack** destination.
3. Click **Configure ProsperStack** and choose the source you want to connect the destination to.
4. Create a new API key from the [ProsperStack API keys settings screen](https://app.prosperstack.com/settings/api-keys).
5. Enter the **API Key** in the ProsperStack destination **Settings** tab in Segment.

## Supported methods

ProsperStack supports the following methods, as specified in the [Segment Spec](/docs/segment/connections/spec).

### Identify

Send [Identify](/docs/segment/connections/spec/identify) calls to ProsperStack to update subscriber custom properties in ProsperStack. For example:

```js
analytics.identify("userId123", {
  email: "john.doe@example.com",
  traits: {
    "Number of contacts": 5800,
    "Is professional": true,
    "Last contacted": "2021-05-04",
    "Preferred name": "Johnny",
  },
});
```

Segment sends Identify calls to ProsperStack as an `identify` event.

Custom traits specified in an Identify call update [custom properties](https://prosperstack.com/docs/custom-properties/) for a corresponding subscriber in ProsperStack. You must specify an `email` in an Identify call in order for a ProsperStack subscriber to match with the Identify call.

Custom properties in ProsperStack that match the exact key of a trait update automatically. You can configure additional trait mappings in the [ProsperStack configuration dashboard](https://app.prosperstack.com/settings/integrations/segment).

## Engage

You can send computed traits and audiences generated using [Engage](/docs/segment/engage) to this destination as a **user property**. To learn more about Engage, schedule a [demo](https://segment.com/contact/demo).

For user-property destinations, an [identify](/docs/segment/connections/spec/identify/) call is sent to the destination for each user being added and removed. The property name is the snake\_cased version of the audience name, with a true/false value to indicate membership. For example, when a user first completes an order in the last 30 days, Engage sends an Identify call with the property `order_completed_last_30days: true`. When the user no longer satisfies this condition (for example, it's been more than 30 days since their last order), Engage sets that value to `false`.

When you first create an audience, Engage sends an Identify call for every user in that audience. Later audience syncs only send updates for users whose membership has changed since the last sync.

> \[!NOTE]
>
> Real-time audience syncs to ProsperStack  may take six or more hours for the initial sync to complete. Upon completion, a sync frequency of two to three hours is expected.

## Settings

Segment lets you change these destination settings from the Segment app without having to touch any code.

| Field   | Description                                        | Required | Type   |
| ------- | -------------------------------------------------- | -------- | ------ |
| API Key | Create an API key from Settings → Manage API keys. | Yes      | string |
