# Zendesk Chat (v1)

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

## Zendesk Chat integration summary

Stitch’s Zendesk Chat integration replicates data using the [Zendesk Chat API](https://developer.zendesk.com/api-reference/live-chat/introduction). Refer to the [Schema](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk-chat#schema) section for a list of objects available for replication.

## Zendesk Chat feature snapshot

A high-level look at Stitch's Zendesk Chat (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)** | Released on November 15, 2022 | **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-zendesk-chat](https://github.com/singer-io/tap-zendesk-chat) |  |  |
| **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 Remove icon<br><br>Anchor Scheduling is not supported for this integration. The only available replication scheduling method is the Replication Frequency setting.<br><br><br>Unsupported | **[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 Remove icon<br><br>Advanced Scheduling is not supported for this integration.<br><br><br>Unsupported |
| **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 Zendesk Chat

### Zendesk Chat setup requirements

To set up Zendesk Chat in Stitch, you need:

* **Owner permissions in Zendesk Chat**. The user who authorizes the integration must have [Owner permissions in Zendesk Chat](https://support.zendesk.com/hc/en-us/articles/360022182234). Otherwise, Stitch will encounter authentication issues and be unable to replicate data.

* **An Advanced or Premium Zendesk Chat account.** Zendesk only allows customers on their Advanced or Paid Zendesk Chat plans to utilize the Rest API, which is what Stitch uses to connect to your Zendesk Chat account and replicate data.

  If your Zendesk Chat account is on Lite or Basic, you will need to upgrade your Zendesk Chat plan. [More info on Zendesk Chat plans can be found on Zendesk’s website](https://www.zendesk.com/pricing/#everyone).

### Step 1: Add Zendesk Chat 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 **Zendesk Chat** 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 Zendesk Chat” would create a schema called `stitch_zendesk_chat` in the destination. **Note**: Schema names cannot be changed after you save the integration.

5. In the **Zendesk Subdomain** field, enter the subdomain of your Zendesk site. For example, the subdomain of `stitchdata.zendesk.com` would be `stitchdata`.

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

The Sync Historical Data setting defines the starting date for your Zendesk Chat 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 Zendesk Chat’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 3: 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.

Zendesk Chat integrations support the following replication scheduling methods:

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

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 4: Authorize Stitch to access Zendesk Chat

Lastly, you’ll be directed to Zendesk’s website to complete the setup.

1. Enter your Zendesk Chat credentials and click **Login**.
2. Complete the authorization process.
3. After the authorization process successfully completes, you’ll be redirected back to Stitch.
4. Click **All Done**.

### Initial and historical replication jobs

After you finish setting up Zendesk Chat, 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.

## Zendesk Chat 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 Zendesk Chat 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.

### account

The `account` table contains info about accounts within your Zendesk Chat 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)** | account\_key |
| **Useful links** | [account schema on GitHub](https://github.com/singer-io/tap-zendesk-chat/blob/master/tap_zendesk_chat/schemas/account.json "Opens in new tab: account schema on GitHub")<br><br><br>[Zendesk Chat API method](https://developer.zendesk.com/api-reference/live-chat/chat-api/accounts/ "Opens in new tab: Zendesk Chat API method") |

account table foreign keys

| Join account with | on |
| --- | --- |
| [goals](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk-chat#goals) | ```<br>account.plan.goals = goals.id<br>``` |
| [chats](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk-chat#chats) | ```<br>account.plan.goals = chats.conversions.goal_id<br>```<br><br>```<br>account.plan.goals = chats.history.conversion.goal_id<br>``` |

account table schema

| **account\_key**<br><br><br>STRING |
| --- |
| **billing**<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 billing<br><br><table> <tr> <td> <p> <strong>								additional_info							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								address1							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								address2							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								city							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								company							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								country_code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								email							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								first_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								last_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								postal_code							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								state							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **create\_date**<br><br><br>DATE-TIME |
| **plan**<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 plan<br><br><table> <tr> <td> <p> <strong>								agent_leaderboard							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								agent_reports							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								analytics							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								chat_reports							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								daily_reports							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								email_reports							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								file_upload							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								goals							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								high_load							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								integrations							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								ip_restriction							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								long_desc							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								max_advanced_triggers							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								max_agents							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								max_basic_triggers							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								max_concurrent_chats							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								max_departments							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								max_history_search_days							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								monitoring							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								operating_hours							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								price							</strong> </p> <p>							NUMBER													</p> </td> </tr> <tr> <td> <p> <strong>								rest_api							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								short_desc							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								sla							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								support							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								unbranding							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								widget_customization							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **status**<br><br><br>STRING |

### agents

The `agents` table contains info about agents within your Zendesk Chat 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)** | id |
| **Useful links** | [agents schema on GitHub](https://github.com/singer-io/tap-zendesk-chat/blob/master/tap_zendesk_chat/schemas/agents.json "Opens in new tab: agents schema on GitHub")<br><br><br>[Zendesk Chat API method](https://developer.zendesk.com/api-reference/live-chat/chat-api/agents/ "Opens in new tab: Zendesk Chat API method") |

agents table foreign keys

| Join agents with | on |
| --- | --- |
| [chats](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk-chat#chats) | ```<br>agents.id = chats.agent_ids<br>```<br><br>```<br>agents.departments = chats.department_id<br>```<br><br>```<br>agents.departments = chats.history.prev_department_id<br>``` |
| [departments](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk-chat#departments) | ```<br>agents.departments = departments.id<br>``` |
| [shortcuts](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk-chat#shortcuts) | ```<br>agents.departments = shortcuts.departments<br>``` |

agents table schema

| **create\_date**<br><br><br>DATE-TIME |
| --- |
| **departments**<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;. |
| **display\_name**<br><br><br>STRING |
| **email**<br><br><br>STRING |
| **enabled**<br><br><br>BOOLEAN |
| **enabled\_departments**<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\_name**<br><br><br>STRING |
| **id**<br><br><br>INTEGER |
| **last\_login**<br><br><br>DATE-TIME |
| **last\_name**<br><br><br>STRING |
| **login\_count**<br><br><br>INTEGER |
| **role\_id**<br><br><br>INTEGER |
| **roles**<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 roles<br><br><table> <tr> <td> <p> <strong>								administrator							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								owner							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> </table> |
| **scope**<br><br><br>STRING |
| **skills**<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;. |

### bans

The `bans` table contains info about bans created in your Zendesk Chat 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)** | id |
| **Useful links** | [bans schema on GitHub](https://github.com/singer-io/tap-zendesk-chat/blob/master/tap_zendesk_chat/schemas/bans.json "Opens in new tab: bans schema on GitHub")<br><br><br>[Zendesk Chat API method](https://developer.zendesk.com/api-reference/live-chat/chat-api/bans/ "Opens in new tab: Zendesk Chat API method") |

bans table schema

| **created\_at**<br><br><br>DATE-TIME |
| --- |
| **id**<br><br><br>INTEGER |
| **ip\_address**<br><br><br>STRING |
| **reason**<br><br><br>STRING |
| **type**<br><br><br>STRING |
| **visitor\_id**<br><br><br>STRING |
| **visitor\_name**<br><br><br>STRING |

### chats

The `chats` table contains info about the chats within your Zendesk Chat 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)** | id |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | timestamp |
| **Useful links** | [chats schema on GitHub](https://github.com/singer-io/tap-zendesk-chat/blob/master/tap_zendesk_chat/schemas/chats.json "Opens in new tab: chats schema on GitHub")<br><br><br>[Zendesk Chat API method](https://developer.zendesk.com/api-reference/live-chat/chat-api/chats/ "Opens in new tab: Zendesk Chat API method") |

chats table foreign keys

| Join chats with | on |
| --- | --- |
| [agents](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk-chat#agents) | ```<br>chats.agent_ids = agents.id<br>```<br><br>```<br>chats.department_id = agents.departments<br>```<br><br>```<br>chats.history.prev_department_id = agents.departments<br>``` |
| [departments](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk-chat#departments) | ```<br>chats.department_id = departments.id<br>```<br><br>```<br>chats.history.prev_department_id = departments.id<br>``` |
| [shortcuts](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk-chat#shortcuts) | ```<br>chats.department_id = shortcuts.departments<br>```<br><br>```<br>chats.history.prev_department_id = shortcuts.departments<br>``` |
| [goals](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk-chat#goals) | ```<br>chats.conversions.goal_id = goals.id<br>```<br><br>```<br>chats.history.conversion.goal_id = goals.id<br>``` |
| [account](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk-chat#account) | ```<br>chats.conversions.goal_id = account.plan.goals<br>```<br><br>```<br>chats.history.conversion.goal_id = account.plan.goals<br>``` |

chats table schema

| **agent\_ids**<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;. |
| --- |
| **agent\_names**<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;. |
| **comment**<br><br><br>STRING |
| **conversions**<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;.<br><br>Click to expand conversions<br><br><table> <tr> <td> <p> <strong>								attribution							</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 attribution</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								agent_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								agent_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								chat_timestamp							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								department_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								department_name							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								goal_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								goal_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								timestamp							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> </table> |
| **count**<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 count<br><br><table> <tr> <td> <p> <strong>								agent							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								total							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								visitor							</strong> </p> <p>							INTEGER													</p> </td> </tr> </table> |
| **department\_id**<br><br><br>INTEGER |
| **department\_name**<br><br><br>STRING |
| **duration**<br><br><br>INTEGER |
| **end\_timestamp**<br><br><br>DATE-TIME |
| **history**<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;.<br><br>Click to expand history<br><br><table> <tr> <td> <p> <strong>								channel							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								conversion							</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 conversion</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								attribution							</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 attribution</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								agent_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								agent_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								chat_timestamp							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								department_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								department_name							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								goal_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								goal_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								timestamp							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								department_id							</strong> </p> <p>							INTEGER, STRING													</p> </td> </tr> <tr> <td> <p> <strong>								department_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								msg							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								msg_id							</strong> </p> <p>							STRING, INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								new_rating							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								new_tags							</strong> </p> <p>							ARRAY																							</p><div><button><div>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;.</div></button></div> <p></p> </td> </tr> <tr> <td> <p> <strong>								nick							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								options							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								prev_department_id							</strong> </p> <p>							INTEGER, STRING													</p> </td> </tr> <tr> <td> <p> <strong>								rating							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								skills_name							</strong> </p> <p>							ARRAY																							</p><div><button><div>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;.</div></button></div> <p></p> </td> </tr> <tr> <td> <p> <strong>								tags							</strong> </p> <p>							ARRAY																							</p><div><button><div>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;.</div></button></div> <p></p> </td> </tr> <tr> <td> <p> <strong>								timestamp							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								type							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **id**<br><br><br>STRING |
| **message**<br><br><br>STRING |
| **missed**<br><br><br>BOOLEAN |
| **rating**<br><br><br>STRING |
| **referrer\_search\_engine**<br><br><br>STRING |
| **referrer\_search\_terms**<br><br><br>STRING |
| **response\_time**<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 response\_time<br><br><table> <tr> <td> <p> <strong>								avg							</strong> </p> <p>							NUMBER, INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								first							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								max							</strong> </p> <p>							INTEGER													</p> </td> </tr> </table> |
| **session**<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;. |
| **started\_by**<br><br><br>STRING |
| **tags**<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;. |
| **timestamp**<br><br><br>DATE-TIME |
| **triggered**<br><br><br>BOOLEAN |
| **triggered\_response**<br><br><br>BOOLEAN |
| **type**<br><br><br>STRING |
| **unread**<br><br><br>BOOLEAN, INTEGER |
| **visitor**<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 visitor<br><br><table> <tr> <td> <p> <strong>								email							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								notes							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								phone							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **webpath**<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;. |
| **zendesk\_ticket\_id**<br><br><br>INTEGER |

### departments

The `departments` table contains info about departments within your Zendesk Chat 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)** | id |
| **Useful links** | [departments schema on GitHub](https://github.com/singer-io/tap-zendesk-chat/blob/master/tap_zendesk_chat/schemas/departments.json "Opens in new tab: departments schema on GitHub")<br><br><br>[Zendesk Chat API method](https://developer.zendesk.com/api-reference/live-chat/chat-api/departments/ "Opens in new tab: Zendesk Chat API method") |

departments table foreign keys

| Join departments with | on |
| --- | --- |
| [shortcuts](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk-chat#shortcuts) | ```<br>departments.id = shortcuts.departments<br>``` |
| [chats](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk-chat#chats) | ```<br>departments.id = chats.department_id<br>```<br><br>```<br>departments.id = chats.history.prev_department_id<br>``` |
| [agents](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk-chat#agents) | ```<br>departments.id = agents.departments<br>``` |

departments table schema

| **description**<br><br><br>STRING |
| --- |
| **enabled**<br><br><br>BOOLEAN |
| **id**<br><br><br>INTEGER |
| **members**<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;. |
| **name**<br><br><br>STRING |
| **settings**<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;. |

### goals

The `goals` table contains info about URL-based goals set within your Zendesk Chat 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 |
| --- | --- |
| **Useful links** | [goals schema on GitHub](https://github.com/singer-io/tap-zendesk-chat/blob/master/tap_zendesk_chat/schemas/goals.json "Opens in new tab: goals schema on GitHub")<br><br><br>[Zendesk Chat API method](https://developer.zendesk.com/api-reference/live-chat/chat-api/goals/ "Opens in new tab: Zendesk Chat API method") |

goals table foreign keys

| Join goals with | on |
| --- | --- |
| [chats](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk-chat#chats) | ```<br>goals.id = chats.conversions.goal_id<br>```<br><br>```<br>goals.id = chats.history.conversion.goal_id<br>``` |
| [account](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk-chat#account) | ```<br>goals.id = account.plan.goals<br>``` |

goals table schema

| **attribution\_model**<br><br><br>STRING |
| --- |
| **attribution\_period**<br><br><br>INTEGER |
| **description**<br><br><br>STRING |
| **enabled**<br><br><br>BOOLEAN |
| **id**<br><br><br>INTEGER |
| **name**<br><br><br>STRING |
| **settings**<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 settings<br><br><table> <tr> <td> <p> <strong>								conditions							</strong> </p> <p>							ARRAY																							</p><div><button><div>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;.</div></button></div> <p></p> <div> <button>Click to expand conditions</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								operator							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								type							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								value							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> </table> |

### shortcuts

The `shortcuts` table contains info about shortcuts within your Zendesk Chat 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)** | name |
| **Useful links** | [shortcuts schema on GitHub](https://github.com/singer-io/tap-zendesk-chat/blob/master/tap_zendesk_chat/schemas/shortcuts.json "Opens in new tab: shortcuts schema on GitHub")<br><br><br>[Zendesk Chat API method](https://developer.zendesk.com/api-reference/live-chat/chat-api/shortcuts/ "Opens in new tab: Zendesk Chat API method") |

shortcuts table foreign keys

| Join shortcuts with | on |
| --- | --- |
| [departments](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk-chat#departments) | ```<br>shortcuts.departments = departments.id<br>``` |
| [chats](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk-chat#chats) | ```<br>shortcuts.departments = chats.department_id<br>```<br><br>```<br>shortcuts.departments = chats.history.prev_department_id<br>``` |
| [agents](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk-chat#agents) | ```<br>shortcuts.departments = agents.departments<br>``` |

shortcuts table schema

| **agents**<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;. |
| --- |
| **departments**<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;. |
| **id**<br><br><br>STRING |
| **message**<br><br><br>STRING |
| **name**<br><br><br>STRING |
| **options**<br><br><br>STRING |
| **scope**<br><br><br>STRING |
| **tags**<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;. |

### triggers

The `triggers` table contains info about triggers within your Zendesk Chat 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)** | id |
| **Useful links** | [triggers schema on GitHub](https://github.com/singer-io/tap-zendesk-chat/blob/master/tap_zendesk_chat/schemas/shortcuts.json "Opens in new tab: triggers schema on GitHub")<br><br><br>[Zendesk Chat API method](https://developer.zendesk.com/api-reference/live-chat/chat-api/triggers/#list-triggers "Opens in new tab: Zendesk Chat API method") |

triggers table schema

| **definition**<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 definition<br><br><table> <tr> <td> <p> <strong>								actions							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								condition							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								event							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								version							</strong> </p> <p>							INTEGER													</p> </td> </tr> </table> |
| --- |
| **description**<br><br><br>STRING |
| **enabled**<br><br><br>BOOLEAN |
| **id**<br><br><br>INTEGER |
| **name**<br><br><br>STRING |