# Sailthru (v1)

Information note **Sailthru is in beta**   
Sailthru is currently in beta. The info in this guide is subject to change.

Information note **Sailthru extraction is supported by Stitch**   
This integration is powered by [Singer's](https://www.singer.io/) Sailthru tap and certified by Stitch. [Check out and contribute to the repo on GitHub](https://github.com/singer-io/tap-sailthru).  
  
For support, contact [Support](https://community.qlik.com/t5/Support/ct-p/qlikSupport).

## Sailthru integration summary

Stitch’s Sailthru integration replicates data using the [Sailthru API](https://getstarted.sailthru.com/developers/api-basics/introduction/). Refer to the [Schema](https://help.qlik.com/en-US/stitch/integrations/saas/sailthru#schema) section for a list of objects available for replication.

## Sailthru feature snapshot

A high-level look at Stitch's Sailthru (v1) integration, including release status, useful links, and the features supported in Stitch.

| **STITCH** |  |  |  |
| --- | --- | --- | --- |
| **[Release status](https://help.qlik.com/en-US/stitch/integrations/identify-an-integration-version)** | Beta | **Supported by**<br><br>the Info icon<br><br>Indicates if the integration is supported by Stitch or the Singer community. | [Stitch](https://community.qlik.com/t5/Support/ct-p/qlikSupport) |
| **Stitch plan**<br><br>the Info icon<br><br>The type of Stitch plan required to use the integration. | Standard | **[API availability](https://help.qlik.com/en-US/stitch/developers/stitch-connect/guides/source-destination-reference)**<br><br>the Info icon<br><br>Indicates if the integration is available as a source in Stitch Connect. | the Success icon<br><br>This version of the integration is available via the API.<br><br><br>Available |
| **Singer GitHub repository** | [singer-io/tap-sailthru](https://github.com/singer-io/tap-sailthru) |  |  |
| **REPLICATION SETTINGS** |  |  |  |
| **[Anchor Scheduling](https://help.qlik.com/en-US/stitch/replication/replication-scheduling/anchor-scheduling)**<br><br>the Info icon<br><br>A type of replication scheduling where an integration's Replication Frequency is anchored to a time you select. | the Success icon<br><br>This feature is supported for this version of the integration.<br><br><br>Supported | **[Advanced Scheduling](https://help.qlik.com/en-US/stitch/replication/replication-scheduling/advanced-scheduling)**<br><br>the Info icon<br><br>A type of replication scheduling that allows you to specify granular start times for data extraction using cron expressions. | the Success icon<br><br>This feature is supported for this version of the integration.<br><br><br>Supported |
| **Table-level reset**<br><br>the Info icon<br><br>Indicates if data can be reset at the table level. If unsupported, data can only be reset at the integration level. | the Remove icon<br><br>Table-level resets are not supported for this integration. Resets are only supported at the integration level.<br><br><br>Unsupported | **[Configurable Replication Methods](https://help.qlik.com/en-US/stitch/replication/replication-methods)**<br><br>the Info icon<br><br>Indicates if Replication Methods can be defined by you for tables in the integration. | the Remove icon<br><br>Configurable Replication Methods are not supported for this integration. Stitch will use pre-defined replication methods for tables you set to replicate.<br><br><br>Unsupported |
| **DATA SELECTION** |  |  |  |
| **Table selection**<br><br>the Info icon<br><br>The ability to select individual tables for replication in the Stitch interface. If table selection is unavailable, all tables and all the columns they contain will be set to replicate by default. | the Success icon<br><br>This feature is supported for this version of the integration.<br><br><br>Supported | **Column selection**<br><br>the Info icon<br><br>The ability to select individual columns for replication in the Stitch interface. If column selection is unavailable, all columns will be set to replicate by default. | the Success icon<br><br>This feature is supported for this version of the integration.<br><br><br>Supported |
| **Select all**<br><br>the Info icon<br><br>Indicates if the integration supports selecting all available tables and columns. | the Success icon<br><br>Supported<br><br><br>Supported |  |  |
| **TRANSPARENCY** |  |  |  |
| **[Extraction Logs](https://help.qlik.com/en-US/stitch/replication/extractions/integration-extraction-logs)**<br><br>the Info icon<br><br>Logs detailing the Extraction phase of the replication process for a given integration. Includes error info, should an error occur. | the Success icon<br><br>This feature is supported for this version of the integration.<br><br><br>Supported | **[Loading Reports](https://help.qlik.com/en-US/stitch/replication/integration-loading-reports)**<br><br>the Info icon<br><br>Reports detailing the Loading phase of the replication process for a given integration. Includes the number of rows loaded for each table and error info, should an error occur. | the Success icon<br><br>This feature is supported for this version of the integration.<br><br><br>Supported |

## Connecting Sailthru

### Step 1: Retrieve your API key and secret

1. [Log into](https://my.sailthru.com/oauth/login/) your Sailthru account.
2. Navigate to the **API & Postbacks** settings page in **My Sailthru**.
3. Click the lock icon to display your API key and API secret.
4. Copy these values and have them readily available for the next step.

### Step 2: Add Sailthru as a Stitch data source

1. [Sign into your Stitch account](https://app.stitchdata.com/).

2. On the Stitch Dashboard page, click the **Add Integration** button.

3. Click the **Sailthru** icon.

4. Enter a name for the integration. This is the name that will display on the Stitch Dashboard for the integration; it’ll also be used to create the schema in your destination.

   For example, the name “Stitch Sailthru” would create a schema called `stitch_sailthru` in the destination. **Note**: Schema names cannot be changed after you save the integration.

5. In the **API Key** field, paste the API key you copied from from [step 1](https://help.qlik.com/en-US/stitch/integrations/saas/sailthru#retrieve-api-key-secret).

6. In the **API Secret** field, paste the API secret you copied from [step 1](https://help.qlik.com/en-US/stitch/integrations/saas/sailthru#retrieve-api-key-secret).

### Step 3: Define the historical replication start date

The Sync Historical Data setting defines the starting date for your Sailthru integration. This means that data **equal to or newer than this date** will be replicated to your data warehouse.

Change this setting if you want to replicate data beyond Sailthru’s default setting of **1 year**. For a detailed look at historical replication jobs, check out the [Syncing Historical SaaS Data](https://help.qlik.com/en-US/stitch/replication/syncing-historical-saas-data-resetting-replication-keys) guide.

### Step 4: Create a replication schedule

Information note Replication schedules affect the time Extraction begins, not the time to data loaded. Refer to the [Replication Scheduling](https://help.qlik.com/en-US/stitch/replication/replication-scheduling) documentation for more information.

In the **Replication Frequency** section, you’ll create the integration’s [replication schedule](https://help.qlik.com/en-US/stitch/replication/replication-scheduling). An integration’s replication schedule determines how often Stitch runs a replication job, and the time that job begins.

Sailthru integrations support the following replication scheduling methods:

* [Replication Frequency](https://help.qlik.com/en-US/stitch/replication/replication-scheduling/replication-frequency)

* [Anchor Scheduling](https://help.qlik.com/en-US/stitch/replication/replication-scheduling/anchor-scheduling)

* [Advanced Scheduling using Cron](https://help.qlik.com/en-US/stitch/replication/replication-scheduling/advanced-scheduling) (Advanced or Premium plans only)

To keep your row usage low, consider setting the integration to replicate less frequently. See the [Understanding and Reducing Your Row Usage guide](https://help.qlik.com/en-US/stitch/getting-started/understanding-stitch-usage) for tips on reducing your usage.

### Step 5: Set objects to replicate

Information note **Is an object missing or not replicating?** Verify that the object meets the requirements for [selection](https://help.qlik.com/en-US/stitch/replication/extractions/data-selection/setting-tables-and-columns-to-replicate#selection-requirements) and [replication](https://help.qlik.com/en-US/stitch/replication/extractions/data-selection/setting-tables-and-columns-to-replicate#replication-requirements).

The last step is to select the tables and columns you want to replicate. [Learn about the available tables for this integration.](https://help.qlik.com/en-US/stitch/integrations/saas/sailthru#schema)

**Note**: If a replication job is currently in progress, new selections won’t be used until the next job starts.

* Selection options
* Individual tables and columns
* All tables and columns

For Sailthru integrations, you can select:

1. **Individual tables and columns**

2. **All tables and columns**

Click the tabs to view instructions for each selection method.

1. In the integration’s **Tables to Replicate tab**, locate a table you want to replicate.

2. To track a table, click the **checkbox** next to the table’s name. A blue checkmark means the table is set to replicate.

3. To track a column, click the **checkbox** next to the column’s name. A blue checkmark means the column is set to replicate.

4. Repeat this process for all the tables and columns you want to replicate.

5. When finished, click the **Finalize Your Selections** button at the bottom of the screen to save your selections.

Information note **Important**: Using the **Select All** feature will overwrite any previous selections. However, selections aren’t final until **Finalize Your Selections** is clicked. Clicking **Cancel** will restore your previous selections. Refer to the [Select All guide](https://help.qlik.com/en-US/stitch/replication/extractions/data-selection/setting-tables-and-columns-to-replicate#set-all-data-to-replicate) for more info about this feature.

1. Click into the integration from the Stitch Dashboard page.

2. Click the **Tables to Replicate** tab.

3. In the list of tables, click the box next to the **Table Names** column.

4. In the menu that displays, click **Track all Tables and Fields**:

   ![The Track all Tables and Fields menu in the Tables to Replicate tab](https://help.qlik.com/en-US/stitch/images/replication/select-all-tables-menu.png)The Track all Tables and Fields menu in the Tables to Replicate tabThe Track all Tables and Fields menu in the Tables to Replicate tab

5. Click the **Finalize Your Selections** button at the bottom of the page to save your data selections.

### Initial and historical replication jobs

After you finish setting up Sailthru, its **Sync Status** may show as **Pending** on either the Stitch Dashboard or in the Integration Details page.

For a new integration, a **Pending** status indicates that Stitch is in the process of scheduling the initial replication job for the integration. **This may take some time to complete.**

Information note

**Initial replication jobs with Anchor Scheduling**

If using Anchor Scheduling, an initial replication job may not kick off immediately. This depends on the selected Replication Frequency and Anchor Time. Refer to the [Anchor Scheduling](https://help.qlik.com/en-US/stitch/replication/replication-scheduling#job-scheduling-and-anchor-times) documentation for more information.

#### Free historical data loads

The first seven days of replication, beginning when data is first replicated, are free. Rows replicated from the new integration during this time won’t count towards your quota. Stitch offers this as a way of testing new integrations, measuring usage, and ensuring historical data volumes don’t quickly consume your quota.

Information note **Replication will continue after the seven days are over**. If you’re no longer interested in this source, be sure to **pause** or **delete** the integration to prevent unwanted usage.

## Sailthru table reference

Information note

**Schemas and versioning**

Schemas and naming conventions can change from version to version, so we recommend verifying your integration’s version before continuing.

The schema and info displayed below is for **version 1** of this integration.

This is the latest version of the Sailthru integration.

Information note

**Table and column names in your destination**

Depending on your destination, table and column names may not appear as they are outlined below.

For example: Object names are lowercased in Redshift (`CusTomERs` &gt; `customers`), while case is maintained in PostgreSQL destinations (`CusTomERs` &gt; `CusTomERs`). Refer to the [Loading Guide](https://help.qlik.com/en-US/stitch/replication/loading/destination-guides) for your destination for more info.

### ad\_targeter\_plans

The `ad_targeter_plans` table contains information about Ad Targeter Plans in your Sailthru account.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Full Table |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | plan\_id |
| **Useful links** | [Sailthru documentation](https://getstarted.sailthru.com/email/ad-targeter/ad-targeter-overview/ "Opens in new tab: Sailthru documentation")<br><br><br>[ad_targeter_plans schema on GitHub](https://github.com/singer-io/tap-sailthru/blob/master/tap_sailthru/schemas/ad_targeter_plans.json "Opens in new tab: ad_targeter_plans schema on GitHub")<br><br><br>[Sailthru API method](https://getstarted.sailthru.com/developers/api/ad-plan/ "Opens in new tab: Sailthru API method") |

ad\_targeter\_plans table foreign keys

| Join ad\_targeter\_plans with | on |
| --- | --- |
| [lists](https://help.qlik.com/en-US/stitch/integrations/saas/sailthru#lists) | ```<br>ad_targeter_plans.list = lists.list_id<br>``` |
| [blast_save_list](https://help.qlik.com/en-US/stitch/integrations/saas/sailthru#blast-save-list) | ```<br>ad_targeter_plans.list = blast_save_list.lists<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/sailthru#users) | ```<br>ad_targeter_plans.list = users.lists<br>``` |
| [blasts](https://help.qlik.com/en-US/stitch/integrations/saas/sailthru#blasts) | ```<br>ad_targeter_plans.list = blasts.list<br>``` |
| [blast_repeats](https://help.qlik.com/en-US/stitch/integrations/saas/sailthru#blast-repeats) | ```<br>ad_targeter_plans.list = blast_repeats.list<br>``` |

ad\_targeter\_plans table schema

| **list**<br><br><br>STRING |
| --- |
| **name**<br><br><br>STRING |
| **plan\_id**<br><br><br>STRING |
| **schedule**<br><br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;. |

### blast\_query

The `blast_query` table contains information from blast query jobs in your Sailthru account. This is a child table of `blasts`.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Full Table |
| --- | --- |
| **Primary Keys ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | blast\_id<br><br>profile\_id |
| **Useful links** | [blast_query schema on GitHub](https://github.com/singer-io/tap-sailthru/tree/master/tap_sailthru/schemas/blast_query.json "Opens in new tab: blast_query schema on GitHub")<br><br><br>[Sailthru API method](https://getstarted.sailthru.com/developers/api/job/#blast-query "Opens in new tab: Sailthru API method") |

blast\_query table foreign keys

| Join blast\_query with | on |
| --- | --- |
| [blasts](https://help.qlik.com/en-US/stitch/integrations/saas/sailthru#blasts) | ```<br>blast_query.blast_id = blasts.blast_id<br>``` |

blast\_query table schema

| **blast\_id**<br><br><br>INTEGER |
| --- |
| **click\_time**<br><br><br>DATE-TIME |
| **device**<br><br><br>STRING |
| **email\_hash**<br><br><br>STRING |
| **first\_ten\_clicks**<br><br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;. |
| **first\_ten\_clicks\_time**<br><br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;. |
| **open\_time**<br><br><br>DATE-TIME |
| **profile\_id**<br><br><br>STRING |
| **purchase\_time**<br><br><br>DATE-TIME |
| **send\_time**<br><br><br>DATE-TIME |

### blast\_repeats

The `blast_repeats` table contains information about recurring campaigns in your Sailthru account.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | repeat\_id |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | modify\_time |
| **Useful links** | [blast_repeats schema on GitHub](https://github.com/singer-io/tap-sailthru/blob/master/tap_sailthru/schemas/blast_repeats.json "Opens in new tab: blast_repeats schema on GitHub")<br><br><br>[Sailthru API method](https://getstarted.sailthru.com/developers/api/blast_repeat/ "Opens in new tab: Sailthru API method") |

blast\_repeats table foreign keys

| Join blast\_repeats with | on |
| --- | --- |
| [lists](https://help.qlik.com/en-US/stitch/integrations/saas/sailthru#lists) | ```<br>blast_repeats.list = lists.list_id<br>``` |
| [ad_targeter_plans](https://help.qlik.com/en-US/stitch/integrations/saas/sailthru#ad-targeter-plans) | ```<br>blast_repeats.list = ad_targeter_plans.list<br>``` |
| [blast_save_list](https://help.qlik.com/en-US/stitch/integrations/saas/sailthru#blast-save-list) | ```<br>blast_repeats.list = blast_save_list.lists<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/sailthru#users) | ```<br>blast_repeats.list = users.lists<br>``` |
| [blasts](https://help.qlik.com/en-US/stitch/integrations/saas/sailthru#blasts) | ```<br>blast_repeats.list = blasts.list<br>``` |

blast\_repeats table schema

| **create\_time**<br><br><br>DATE-TIME |
| --- |
| **create\_user**<br><br><br>STRING |
| **days**<br><br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;. |
| **days\_month**<br><br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;. |
| **end\_date**<br><br><br>DATE-TIME |
| **error\_time**<br><br><br>DATE-TIME |
| **errors**<br><br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;. |
| **generate\_time**<br><br><br>INTEGER |
| **is\_static**<br><br><br>BOOLEAN |
| **list**<br><br><br>STRING |
| **message\_criteria**<br><br><br>STRING |
| **modify\_time**<br><br><br>DATE-TIME |
| **modify\_user**<br><br><br>STRING |
| **name**<br><br><br>STRING |
| **previous\_blast\_id**<br><br><br>INTEGER |
| **repeat\_id**<br><br><br>STRING |
| **report\_email**<br><br><br>STRING |
| **seed\_emails**<br><br><br>STRING |
| **send\_time**<br><br><br>STRING |
| **start\_date**<br><br><br>DATE-TIME |
| **status**<br><br><br>STRING |
| **suppress\_list**<br><br><br>STRING |
| **template**<br><br><br>STRING |
| **template\_id**<br><br><br>INTEGER |

### blast\_save\_list

The `blast_save_list` table contains a list of users that received a specific campaign from your Sailthru account. This is a child table of `lists`.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Full Table |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | profile\_id |
| **Useful links** | [blast_save_list schema on GitHub](https://github.com/singer-io/tap-sailthru/blob/master/tap_sailthru/schemas/blast_save_list.json "Opens in new tab: blast_save_list schema on GitHub")<br><br><br>[Sailthru API method](https://getstarted.sailthru.com/developers/api/job/#blast-save-list "Opens in new tab: Sailthru API method") |

blast\_save\_list table foreign keys

| Join blast\_save\_list with | on |
| --- | --- |
| [lists](https://help.qlik.com/en-US/stitch/integrations/saas/sailthru#lists) | ```<br>blast_save_list.lists = lists.list_id<br>``` |
| [ad_targeter_plans](https://help.qlik.com/en-US/stitch/integrations/saas/sailthru#ad-targeter-plans) | ```<br>blast_save_list.lists = ad_targeter_plans.list<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/sailthru#users) | ```<br>blast_save_list.lists = users.lists<br>``` |
| [blasts](https://help.qlik.com/en-US/stitch/integrations/saas/sailthru#blasts) | ```<br>blast_save_list.lists = blasts.list<br>``` |
| [blast_repeats](https://help.qlik.com/en-US/stitch/integrations/saas/sailthru#blast-repeats) | ```<br>blast_save_list.lists = blast_repeats.list<br>``` |

blast\_save\_list table schema

| **clicks**<br><br><br>STRING |
| --- |
| **domain**<br><br><br>STRING |
| **email\_hash**<br><br><br>STRING |
| **email\_status**<br><br><br>STRING |
| **engagement**<br><br><br>STRING |
| **first\_purchase\_time**<br><br><br>DATE-TIME |
| **geolocation\_city**<br><br><br>STRING |
| **geolocation\_country**<br><br><br>STRING |
| **geolocation\_state**<br><br><br>STRING |
| **geolocation\_zip**<br><br><br>STRING |
| **largest\_purchase\_item\_price**<br><br><br>STRING |
| **last\_click**<br><br><br>STRING |
| **last\_open**<br><br><br>STRING |
| **last\_pageview**<br><br><br>STRING |
| **last\_purchase\_time**<br><br><br>DATE-TIME |
| **lifetime\_message**<br><br><br>STRING |
| **list\_signup**<br><br><br>STRING |
| **lists**<br><br><br>STRING |
| **opens**<br><br><br>STRING |
| **optout\_time**<br><br><br>DATE-TIME |
| **pageviews**<br><br><br>STRING |
| **profile\_created\_date**<br><br><br>DATE-TIME |
| **profile\_id**<br><br><br>STRING |
| **purchase\_count**<br><br><br>STRING |
| **purchase\_incomplete**<br><br><br>STRING |
| **purchase\_price**<br><br><br>STRING |
| **signup**<br><br><br>STRING |
| **top\_device**<br><br><br>STRING |

### blasts

The `blasts` table contains infomation about your specific Sailthru campaigns, or information about campaigns by status types: `sent`, `sending`, `scheduled`, `unscheduled`.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | blast\_id |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | modify\_time |
| **Useful links** | [blasts schema on GitHub](https://github.com/singer-io/tap-sailthru/blob/master/tap_sailthru/schemas/blasts.json "Opens in new tab: blasts schema on GitHub")<br><br><br>[Sailthru API method](https://getstarted.sailthru.com/developers/api/blast/ "Opens in new tab: Sailthru API method") |

blasts table foreign keys

| Join blasts with | on |
| --- | --- |
| [lists](https://help.qlik.com/en-US/stitch/integrations/saas/sailthru#lists) | ```<br>blasts.list = lists.list_id<br>``` |
| [ad_targeter_plans](https://help.qlik.com/en-US/stitch/integrations/saas/sailthru#ad-targeter-plans) | ```<br>blasts.list = ad_targeter_plans.list<br>``` |
| [blast_save_list](https://help.qlik.com/en-US/stitch/integrations/saas/sailthru#blast-save-list) | ```<br>blasts.list = blast_save_list.lists<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/sailthru#users) | ```<br>blasts.list = users.lists<br>``` |
| [blast_repeats](https://help.qlik.com/en-US/stitch/integrations/saas/sailthru#blast-repeats) | ```<br>blasts.list = blast_repeats.list<br>``` |
| [blast_query](https://help.qlik.com/en-US/stitch/integrations/saas/sailthru#blast-query) | ```<br>blasts.blast_id = blast_query.blast_id<br>``` |

blasts table schema

| **blast\_id**<br><br><br>INTEGER |
| --- |
| **copy\_template**<br><br><br>STRING |
| **data\_feed\_url**<br><br><br>STRING |
| **email\_count**<br><br><br>INTEGER |
| **list**<br><br><br>STRING |
| **mode**<br><br><br>STRING |
| **modify\_time**<br><br><br>DATE-TIME |
| **modify\_user**<br><br><br>STRING |
| **name**<br><br><br>STRING |
| **schedule\_time**<br><br><br>DATE-TIME |
| **sent\_count**<br><br><br>INTEGER |
| **start\_time**<br><br><br>DATE-TIME |
| **stats**<br><br><br>OBJECT<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes in this object will be flattened into the table. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand stats<br><br><table> <tr> <td> <p> <strong>								total							</strong> </p> <p>							OBJECT																							</p><div><button><div>This is a nested data structure. If your destination doesn't natively support nested data, attributes in this object will be flattened into the table. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.</div></button></div> <p></p> <div> <button>Click to expand total</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								beacon_noclick							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								count							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								open_total							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								pv							</strong> </p> <p>							INTEGER													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> </table> |
| **status**<br><br><br>STRING |
| **subject**<br><br><br>STRING |

### lists

The `lists` table contains basic information about lists in your Sailthru account.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Full Table |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | list\_id |
| **Useful links** | [Sailthru documentation](https://getstarted.sailthru.com/audience/managing-lists/lists-overview/ "Opens in new tab: Sailthru documentation")<br><br><br>[lists schema on GitHub](https://github.com/singer-io/tap-sailthru/blob/master/tap_sailthru/schemas/lists.json "Opens in new tab: lists schema on GitHub")<br><br><br>[Sailthru API method](https://getstarted.sailthru.com/developers/api/list/ "Opens in new tab: Sailthru API method") |

lists table foreign keys

| Join lists with | on |
| --- | --- |
| [ad_targeter_plans](https://help.qlik.com/en-US/stitch/integrations/saas/sailthru#ad-targeter-plans) | ```<br>lists.list_id = ad_targeter_plans.list<br>``` |
| [blast_save_list](https://help.qlik.com/en-US/stitch/integrations/saas/sailthru#blast-save-list) | ```<br>lists.list_id = blast_save_list.lists<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/sailthru#users) | ```<br>lists.list_id = users.lists<br>``` |
| [blasts](https://help.qlik.com/en-US/stitch/integrations/saas/sailthru#blasts) | ```<br>lists.list_id = blasts.list<br>``` |
| [blast_repeats](https://help.qlik.com/en-US/stitch/integrations/saas/sailthru#blast-repeats) | ```<br>lists.list_id = blast_repeats.list<br>``` |

lists table schema

| **create\_time**<br><br><br>DATE-TIME |
| --- |
| **email\_count**<br><br><br>INTEGER |
| **list\_id**<br><br><br>STRING |
| **name**<br><br><br>STRING |
| **type**<br><br><br>STRING |
| **valid\_count**<br><br><br>INTEGER |

### purchase\_log

The `purchase_log` table contains a a list of user data in your Sailthru account.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Keys ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | channel<br><br>email\_hash<br><br>extid<br><br>message\_id<br><br>price |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | date |
| **Useful links** | [purchase_log schema on GitHub](https://github.com/singer-io/tap-sailthru/blob/master/tap_sailthru/schemas/purchase_log.json "Opens in new tab: purchase_log schema on GitHub")<br><br><br>[Sailthru API method](https://getstarted.sailthru.com/developers/api/job/#export-purchase-log "Opens in new tab: Sailthru API method") |

purchase\_log table schema

| **channel**<br><br><br>STRING |
| --- |
| **date**<br><br><br>DATE-TIME |
| **email\_hash**<br><br><br>STRING |
| **extid**<br><br><br>STRING |
| **items**<br><br><br>STRING |
| **message\_id**<br><br><br>STRING |
| **price**<br><br><br>STRING |
| **quantities**<br><br><br>STRING |
| **unit\_prices**<br><br><br>STRING |
| **urls**<br><br><br>STRING |

### users

The `users` table contains user data from your Sailthru account. This is a child table of `blast_save_list`.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Full Table |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | profile\_id |
| **Useful links** | [users schema on GitHub](https://github.com/singer-io/tap-sailthru/blob/master/tap_sailthru/schemas/users.json "Opens in new tab: users schema on GitHub")<br><br><br>[Sailthru API method](https://getstarted.sailthru.com/developers/api/user/ "Opens in new tab: Sailthru API method") |

users table foreign keys

| Join users with | on |
| --- | --- |
| [lists](https://help.qlik.com/en-US/stitch/integrations/saas/sailthru#lists) | ```<br>users.lists = lists.list_id<br>``` |
| [ad_targeter_plans](https://help.qlik.com/en-US/stitch/integrations/saas/sailthru#ad-targeter-plans) | ```<br>users.lists = ad_targeter_plans.list<br>``` |
| [blast_save_list](https://help.qlik.com/en-US/stitch/integrations/saas/sailthru#blast-save-list) | ```<br>users.lists = blast_save_list.lists<br>``` |
| [blasts](https://help.qlik.com/en-US/stitch/integrations/saas/sailthru#blasts) | ```<br>users.lists = blasts.list<br>``` |
| [blast_repeats](https://help.qlik.com/en-US/stitch/integrations/saas/sailthru#blast-repeats) | ```<br>users.lists = blast_repeats.list<br>``` |

users table schema

| **cookie**<br><br><br>STRING |
| --- |
| **email**<br><br><br>STRING |
| **engagement**<br><br><br>STRING |
| **lists**<br><br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;. |
| **optout\_email**<br><br><br>STRING |
| **profile\_id**<br><br><br>STRING |
| **vars**<br><br><br>STRING |