# Zendesk Support (v2)

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

## Zendesk Support integration summary

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

## Zendesk Support feature snapshot

A high-level look at Stitch's Zendesk Support (v2) 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 May 24, 2023 | **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](https://github.com/singer-io/tap-zendesk) |  |  |
| **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 Zendesk Support

### Zendesk Support setup requirements

To set up Zendesk Support in Stitch, you need:

* **Administrator permissions in Zendesk Support**. Some data types in Zendesk Support may only be accessed with Admin permissions. For example: To replicate ticket metric or tag data, Zendesk Support’s API requires a user with Admin permissions.

  To ensure you can replicate all the data you need, we recommend a user with Admin permissions set up the integration.

* **A specific Zendesk Support plan if replicating ticket forms or SLA policies:**

  * To replicate **SLA policies**, you must be on an Enterprise or Professional Zendesk Support plan.
  * To replicate **ticket forms**, you must be on an Enterprise Zendesk Support plan, or a Professional Zendesk Support plan with the ticket forms add-on.

  All other tables, with the exception of `sla_policies` and `ticket_forms` will be available for replication even if you aren’t on either of these Zendesk Support plans.

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

5. In the **Zendesk Subdomain** field, enter your Zendesk Support site prefix. For example: For `stitchdata.zendesk.com`, only `stitchdata` would be entered into this field.

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

The Sync Historical Data setting defines the starting date for your Zendesk Support 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 Support’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 Support 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 4: Authorize Stitch to access Zendesk Support

Information note **Note**: A Zendesk Support user with Admin permissions must complete this step.

1. Next, you’ll be prompted to sign into your Zendesk Support account.
2. After the authorization process is successfully completed, you’ll be directed back to Stitch.
3. Click **All Done**.

### 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/zendesk#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 Zendesk Support 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 Zendesk Support, 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 Support replication

### Replicating SLA policies and ticket forms

To replicate SLA policies and ticket forms - or the `sla_policies` and `ticket_forms` tables - you need to be on an Enterprise or Professional Zendesk Support plan. [To replicate `ticket_forms` on a Professional plan](https://support.zendesk.com/hc/en-us/articles/203661616-Creating-ticket-forms-to-support-multiple-request-types-Professional-add-on-and-Enterprise-), you’ll also need to have the ticket forms add-on enabled in your Zendesk Support account.

If you set either table to replicate and don’t meet the requirements listed above, an error similar to the following will surface in the integration’s [Extraction Logs](https://help.qlik.com/en-US/stitch/replication/extractions/integration-extraction-logs):

```
tap - INFO replicated 0 records from "ticket_forms" endpoint
tap - CRITICAL {"error": {"message": "You do not have access to this page. Please contact the account owner of this help desk for further help.", "title": "Forbidden"}}
```

To resolve the error, de-select the appropriate table(s). Reach out to Zendesk if you have questions about your Zendesk plan.

### Replicating user and organization custom fields

To replicate custom fields for Users and Organizations - or the `users` and `organizations` tables - [you need to be on an Enterprise, Professional, or Team Zendesk plan](https://support.zendesk.com/hc/en-us/articles/203662066-Adding-custom-fields-to-users).

If you set custom fields in the `users` or `organizations` tables to replicate and don’t meet the requirements listed above, an error similar to the following will surface in the integration’s [Extraction Logs](https://help.qlik.com/en-US/stitch/replication/extractions/integration-extraction-logs):

```
tap - WARNING The account credentials supplied do not have access to `organizations` custom fields.
tap - WARNING The account credentials supplied do not have access to `users` custom fields.
```

To resolve the error, de-select the appropriate field(s). Reach out to Zendesk if you have questions about your Zendesk plan.

## Zendesk Support 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 2** of this integration.

This is the latest version of the Zendesk Support 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.

### group\_memberships

The `group_memberships` table contains info about the groups your Zendesk Support agents are members of.

**Note**: Retrieving group membership data requires Zendesk Support Agent or Admin permissions.

#### Deleted group memberships

As Zendesk Support’s API doesn’t currently provide a method for identifying deleted group memberships, we recommend periodically dropping this table and allowing Stitch to re-create it. Currently, dropping and re-populating the table is the only way to detect deletions.

| **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)** | updated\_at |
| **Useful links** | [Zendesk Support documentation](https://developer.zendesk.com/rest_api/docs/support/group_memberships "Opens in new tab: Zendesk Support documentation")<br><br><br>[group_memberships schema on GitHub](https://github.com/singer-io/tap-zendesk/blob/master/tap_zendesk/schemas/group_memberships.json "Opens in new tab: group_memberships schema on GitHub")<br><br><br>[Zendesk Support API method](https://developer.zendesk.com/rest_api/docs/support/group_memberships#list-memberships "Opens in new tab: Zendesk Support API method") |

group\_memberships table foreign keys

| Join group\_memberships with | on |
| --- | --- |
| [groups](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#groups) | ```<br>group_memberships.group_id = groups.id<br>``` |
| [organizations](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#organizations) | ```<br>group_memberships.group_id = organizations.group_id<br>``` |
| [satisfaction_ratings](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#satisfaction-ratings) | ```<br>group_memberships.group_id = satisfaction_ratings.group_id<br>``` |
| [tickets](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#tickets) | ```<br>group_memberships.group_id = tickets.group_id<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#users) | ```<br>group_memberships.group_id = users.default_group_id<br>``` |

group\_memberships table schema

| **created\_at**<br><br><br>DATE-TIME |
| --- |
| **default**<br><br><br>BOOLEAN |
| **group\_id**<br><br><br>INTEGER |
| **id**<br><br><br>INTEGER |
| **updated\_at**<br><br><br>DATE-TIME |
| **url**<br><br><br>STRING |
| **user\_id**<br><br><br>INTEGER |

### groups

The `groups` table contains info about the groups in your Zendesk Support account.

**Note**: Retrieving group data requires Zendesk Support Admin or Agent permissions.

| **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)** | updated\_at |
| **Useful links** | [Zendesk Support documentation](https://developer.zendesk.com/rest_api/docs/support/groups "Opens in new tab: Zendesk Support documentation")<br><br><br>[groups schema on GitHub](https://github.com/singer-io/tap-zendesk/blob/master/tap_zendesk/schemas/groups.json "Opens in new tab: groups schema on GitHub")<br><br><br>[Zendesk Support API method](https://developer.zendesk.com/rest_api/docs/support/groups#list-groups "Opens in new tab: Zendesk Support API method") |

groups table foreign keys

| Join groups with | on |
| --- | --- |
| [group_memberships](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#group-memberships) | ```<br>groups.id = group_memberships.group_id<br>``` |
| [organizations](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#organizations) | ```<br>groups.id = organizations.group_id<br>``` |
| [satisfaction_ratings](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#satisfaction-ratings) | ```<br>groups.id = satisfaction_ratings.group_id<br>``` |
| [tickets](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#tickets) | ```<br>groups.id = tickets.group_id<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#users) | ```<br>groups.id = users.default_group_id<br>```<br><br>```<br>groups.id = users.id<br>``` |
| [macros](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#macros) | ```<br>groups.id = macros.restriction.id<br>``` |

groups table schema

| **created\_at**<br><br><br>DATE-TIME |
| --- |
| **deleted**<br><br><br>BOOLEAN |
| **id**<br><br><br>INTEGER |
| **name**<br><br><br>STRING |
| **updated\_at**<br><br><br>DATE-TIME |
| **url**<br><br><br>STRING |

### macros

The `macros` table contains info about the macros in your Zendesk Support account. Macros are actions defined by you that modify the values of a ticket’s fields.

**Note**: Retrieving macro data requires Zendesk Support Agent or Admin permissions.

| **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)** | updated\_at |
| **Useful links** | [Zendesk Support documentation](https://developer.zendesk.com/rest_api/docs/support/macros "Opens in new tab: Zendesk Support documentation")<br><br><br>[macros schema on GitHub](https://github.com/singer-io/tap-zendesk/blob/master/tap_zendesk/schemas/macros.json "Opens in new tab: macros schema on GitHub")<br><br><br>[Zendesk Support API method](https://developer.zendesk.com/rest_api/docs/support/macros#list-macros "Opens in new tab: Zendesk Support API method") |

macros table foreign keys

| Join macros with | on |
| --- | --- |
| [ticket_audits](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#ticket-audits) | ```<br>macros.id = ticket_audits.events.macro_id<br>``` |
| [groups](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#groups) | ```<br>macros.restriction.id = groups.id<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#users) | ```<br>macros.restriction.id = users.id<br>``` |

macros table schema

| **actions**<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 actions<br><br><table> <tr> <td> <p> <strong>								field							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								value							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| --- |
| **active**<br><br><br>BOOLEAN |
| **created\_at**<br><br><br>DATE-TIME |
| **description**<br><br><br>STRING |
| **id**<br><br><br>INTEGER |
| **position**<br><br><br>INTEGER |
| **restriction**<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 restriction<br><br><table> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								ids							</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>								type							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **title**<br><br><br>STRING |
| **updated\_at**<br><br><br>DATE-TIME |
| **url**<br><br><br>STRING |

### organizations

The `organizations` table contains information about the organizations your end-users belong to.

#### Custom organization fields

Stitch’s Zendesk Support integration will replicate any custom fields associated with organization records.

**Note**: Replicating organization custom fields requires that you be on a Team, Professional, or Enterprise Zendesk Support plan and have Admin permissions in Zendesk Support.

| **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)** | updated\_at |
| **Useful links** | [Zendesk Support documentation](https://developer.zendesk.com/rest_api/docs/support/organizations "Opens in new tab: Zendesk Support documentation")<br><br><br>[organizations schema on GitHub](https://github.com/singer-io/tap-zendesk/blob/master/tap_zendesk/schemas/organizations.json "Opens in new tab: organizations schema on GitHub")<br><br><br>[Zendesk Support API method](https://developer.zendesk.com/rest_api/docs/support/incremental_export#incremental-organization-export "Opens in new tab: Zendesk Support API method") |

organizations table foreign keys

| Join organizations with | on |
| --- | --- |
| [groups](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#groups) | ```<br>organizations.group_id = groups.id<br>``` |
| [group_memberships](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#group-memberships) | ```<br>organizations.group_id = group_memberships.group_id<br>``` |
| [satisfaction_ratings](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#satisfaction-ratings) | ```<br>organizations.group_id = satisfaction_ratings.group_id<br>``` |
| [tickets](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#tickets) | ```<br>organizations.group_id = tickets.group_id<br>```<br><br>```<br>organizations.id = tickets.organization_id<br>```<br><br>```<br>organizations.tags = tickets.tags<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#users) | ```<br>organizations.group_id = users.default_group_id<br>```<br><br>```<br>organizations.id = users.organization_id<br>```<br><br>```<br>organizations.tags = users.tags<br>``` |
| [tags](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#tags) | ```<br>organizations.tags = tags.name<br>``` |

organizations table schema

| **created\_at**<br><br><br>DATE-TIME |
| --- |
| **deleted\_at**<br><br><br>DATE-TIME |
| **details**<br><br><br>STRING |
| **domain\_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;. |
| **external\_id**<br><br><br>STRING |
| **group\_id**<br><br><br>INTEGER |
| **id**<br><br><br>INTEGER |
| **name**<br><br><br>STRING |
| **notes**<br><br><br>STRING |
| **organization\_fields**<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;. |
| **shared\_comments**<br><br><br>BOOLEAN |
| **shared\_tickets**<br><br><br>BOOLEAN |
| **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;. |
| **updated\_at**<br><br><br>DATE-TIME |
| **url**<br><br><br>STRING |

### satisfaction\_ratings

The `satisfaction_ratings` table contains info about ratings users have offered on support tickets.

**Note**: This table is only available if satisfaction ratings are enabled in your Zendesk Support 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)** | updated\_at |
| **Useful links** | [Zendesk Support documentation](https://developer.zendesk.com/rest_api/docs/support/satisfaction_ratings "Opens in new tab: Zendesk Support documentation")<br><br><br>[satisfaction_ratings schema on GitHub](https://github.com/singer-io/tap-zendesk/blob/master/tap_zendesk/schemas/satisfaction_ratings.json "Opens in new tab: satisfaction_ratings schema on GitHub")<br><br><br>[Zendesk Support API method](https://developer.zendesk.com/rest_api/docs/support/satisfaction_ratings#list-satisfaction-ratings "Opens in new tab: Zendesk Support API method") |

satisfaction\_ratings table foreign keys

| Join satisfaction\_ratings with | on |
| --- | --- |
| [groups](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#groups) | ```<br>satisfaction_ratings.group_id = groups.id<br>``` |
| [group_memberships](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#group-memberships) | ```<br>satisfaction_ratings.group_id = group_memberships.group_id<br>``` |
| [organizations](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#organizations) | ```<br>satisfaction_ratings.group_id = organizations.group_id<br>``` |
| [tickets](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#tickets) | ```<br>satisfaction_ratings.group_id = tickets.group_id<br>```<br><br>```<br>satisfaction_ratings.ticket_id = tickets.id<br>```<br><br>```<br>satisfaction_ratings.assignee_id = tickets.requester_id<br>```<br><br>```<br>satisfaction_ratings.requester_id = tickets.requester_id<br>```<br><br>```<br>satisfaction_ratings.assignee_id = tickets.follower_ids<br>```<br><br>```<br>satisfaction_ratings.requester_id = tickets.follower_ids<br>```<br><br>```<br>satisfaction_ratings.assignee_id = tickets.submitter_id<br>```<br><br>```<br>satisfaction_ratings.requester_id = tickets.submitter_id<br>```<br><br>```<br>satisfaction_ratings.assignee_id = tickets.collaborator_ids<br>```<br><br>```<br>satisfaction_ratings.requester_id = tickets.collaborator_ids<br>```<br><br>```<br>satisfaction_ratings.assignee_id = tickets.assignee_id<br>```<br><br>```<br>satisfaction_ratings.requester_id = tickets.assignee_id<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#users) | ```<br>satisfaction_ratings.group_id = users.default_group_id<br>```<br><br>```<br>satisfaction_ratings.assignee_id = users.id<br>```<br><br>```<br>satisfaction_ratings.requester_id = users.id<br>``` |
| [ticket_audits](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#ticket-audits) | ```<br>satisfaction_ratings.ticket_id = ticket_audits.ticket_id<br>```<br><br>```<br>satisfaction_ratings.assignee_id = ticket_audits.author_id<br>```<br><br>```<br>satisfaction_ratings.requester_id = ticket_audits.author_id<br>``` |
| [ticket_comments](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#ticket-comments) | ```<br>satisfaction_ratings.ticket_id = ticket_comments.ticket_id<br>```<br><br>```<br>satisfaction_ratings.assignee_id = ticket_comments.author_id<br>```<br><br>```<br>satisfaction_ratings.requester_id = ticket_comments.author_id<br>``` |
| [ticket_metrics](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#ticket-metrics) | ```<br>satisfaction_ratings.ticket_id = ticket_metrics.ticket_id<br>``` |

satisfaction\_ratings table schema

| **assignee\_id**<br><br><br>INTEGER |
| --- |
| **comment**<br><br><br>STRING |
| **created\_at**<br><br><br>DATE-TIME |
| **group\_id**<br><br><br>INTEGER |
| **id**<br><br><br>INTEGER |
| **reason**<br><br><br>STRING |
| **reason\_id**<br><br><br>INTEGER |
| **requester\_id**<br><br><br>INTEGER |
| **score**<br><br><br>STRING |
| **ticket\_id**<br><br><br>INTEGER |
| **updated\_at**<br><br><br>DATE-TIME |
| **url**<br><br><br>STRING |

### sla\_policies

The `sla_policies` table contains info about the Service Level Agreements (SLAs) in your Zendesk Support account. An SLA is a documented agreement between a support provider and their customers that defines performance measures for support.

**Note**: Replicating SLA policies requires that you be on an Enterprise or Professional Zendesk Support plan, and have Admin permissions in Zendesk Support.

| **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** | [Zendesk Support documentation](https://developer.zendesk.com/rest_api/docs/support/sla_policies "Opens in new tab: Zendesk Support documentation")<br><br><br>[sla_policies schema on GitHub](https://github.com/singer-io/tap-zendesk/blob/master/tap_zendesk/schemas/sla_policies.json "Opens in new tab: sla_policies schema on GitHub")<br><br><br>[Zendesk Support API method](https://developer.zendesk.com/rest_api/docs/support/sla_policies#list-sla-policies "Opens in new tab: Zendesk Support API method") |

sla\_policies table schema

| **created\_at**<br><br><br>DATE-TIME |
| --- |
| **description**<br><br><br>STRING |
| **filter**<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 filter<br><br><table> <tr> <td> <p> <strong>								all							</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 all</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								field							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								operator							</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> <tr> <td> <p> <strong>								any							</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 any</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								field							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								operator							</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> |
| **id**<br><br><br>INTEGER |
| **policy\_metrics**<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 policy\_metrics<br><br><table> <tr> <td> <p> <strong>								business_hours							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								priority							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								target							</strong> </p> <p>							INTEGER													</p> </td> </tr> </table> |
| **position**<br><br><br>INTEGER |
| **title**<br><br><br>STRING |
| **updated\_at**<br><br><br>DATE-TIME |
| **url**<br><br><br>STRING |

### tags

The `tags` table contains the names and total number of applications of tags in your Zendesk Support account. Only the 20,000 most popular tags used in the last 60 days are extracted.

**Note**: Retrieving tag data requires Zendesk Support Admin permissions.

| **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** | [Zendesk Support documentation](https://developer.zendesk.com/rest_api/docs/support/tags "Opens in new tab: Zendesk Support documentation")<br><br><br>[tags schema on GitHub](https://github.com/singer-io/tap-zendesk/blob/master/tap_zendesk/schemas/tags.json "Opens in new tab: tags schema on GitHub")<br><br><br>[Zendesk Support API method](https://developer.zendesk.com/rest_api/docs/support/tags#list-tags "Opens in new tab: Zendesk Support API method") |

tags table foreign keys

| Join tags with | on |
| --- | --- |
| [organizations](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#organizations) | ```<br>tags.name = organizations.tags<br>``` |
| [tickets](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#tickets) | ```<br>tags.name = tickets.tags<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#users) | ```<br>tags.name = users.tags<br>``` |

tags table schema

| **count**<br><br><br>INTEGER |
| --- |
| **name**<br><br><br>STRING |

### talk\_phone\_numbers

This table contains data about phone numbers in Zendesk Talk.

| **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** | [talk_phone_numbers schema on GitHub](https://github.com/singer-io/tap-zendesk/blob/master/tap_zendesk/schemas/talk_phone_numbers.json "Opens in new tab: talk_phone_numbers schema on GitHub")<br><br><br>[Zendesk Support API method](https://developer.zendesk.com/api-reference/voice/talk-api/phone_numbers/ "Opens in new tab: Zendesk Support API method") |

talk\_phone\_numbers table schema

| **capabilities**<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 capabilities<br><br><table> <tr> <td> <p> <strong>								mms							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								sms							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								voice							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> </table> |
| --- |
| **categorised\_greetings**<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;. |
| **categorised\_greetings\_with\_sub\_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;. |
| **country\_code**<br><br><br>STRING |
| **created\_at**<br><br><br>DATE-TIME |
| **default\_greeting\_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;. |
| **default\_group\_id**<br><br><br>INTEGER |
| **display\_number**<br><br><br>STRING |
| **external**<br><br><br>BOOLEAN |
| **greeting\_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;. |
| **group\_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;. |
| **id**<br><br><br>INTEGER |
| **ivr\_id**<br><br><br>INTEGER |
| **line\_type**<br><br><br>STRING |
| **location**<br><br><br>STRING |
| **name**<br><br><br>STRING |
| **nickname**<br><br><br>STRING |
| **number**<br><br><br>STRING |
| **outbound\_enabled**<br><br><br>BOOLEAN |
| **priority**<br><br><br>INTEGER |
| **recorded**<br><br><br>BOOLEAN |
| **schedule\_id**<br><br><br>INTEGER |
| **sms\_enabled**<br><br><br>BOOLEAN |
| **sms\_group\_id**<br><br><br>INTEGER |
| **token**<br><br><br>STRING |
| **toll\_free**<br><br><br>BOOLEAN |
| **transcription**<br><br><br>BOOLEAN |
| **voice\_enabled**<br><br><br>BOOLEAN |

### ticket\_audits

The `ticket_audits` table contains info about the activity associated with a ticket. An audit is a history of all updates to a given ticket. When a ticket is updated in Zendesk Support, an audit record is created. Each audit represents a single update to a ticket.

A single audit record may include multiple event types. For example: A ticket comment, satisfaction rating, and a change event. For a full list of Zendesk Support audit event types, [refer to Zendesk Support’s documentation](https://developer.zendesk.com/rest_api/docs/support/ticket_audits#audit-events).

#### Replication

This table uses Append-Only Incremental Replication. This means that new audit records, or updates made to existing audits, are appended as new rows to the end of the table.

| **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)** | Append-Only 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)** | created\_at |
| **Useful links** | [Zendesk Support documentation](https://developer.zendesk.com/rest_api/docs/support/ticket_audits "Opens in new tab: Zendesk Support documentation")<br><br><br>[ticket_audits schema on GitHub](https://github.com/singer-io/tap-zendesk/blob/master/tap_zendesk/schemas/ticket_audits.json "Opens in new tab: ticket_audits schema on GitHub")<br><br><br>[Zendesk Support API method](https://developer.zendesk.com/rest_api/support/core/ticket_audits#list-all-ticket-audits "Opens in new tab: Zendesk Support API method") |

ticket\_audits table foreign keys

| Join ticket\_audits with | on |
| --- | --- |
| [macros](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#macros) | ```<br>ticket_audits.events.macro_id = macros.id<br>``` |
| [ticket_comments](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#ticket-comments) | ```<br>ticket_audits.id = ticket_comments.audit_id<br>```<br><br>```<br>ticket_audits.events.audit_id = ticket_comments.audit_id<br>```<br><br>```<br>ticket_audits.ticket_id = ticket_comments.ticket_id<br>```<br><br>```<br>ticket_audits.author_id = ticket_comments.author_id<br>``` |
| [satisfaction_ratings](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#satisfaction-ratings) | ```<br>ticket_audits.ticket_id = satisfaction_ratings.ticket_id<br>```<br><br>```<br>ticket_audits.author_id = satisfaction_ratings.assignee_id<br>```<br><br>```<br>ticket_audits.author_id = satisfaction_ratings.requester_id<br>``` |
| [tickets](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#tickets) | ```<br>ticket_audits.ticket_id = tickets.id<br>```<br><br>```<br>ticket_audits.author_id = tickets.requester_id<br>```<br><br>```<br>ticket_audits.author_id = tickets.follower_ids<br>```<br><br>```<br>ticket_audits.author_id = tickets.submitter_id<br>```<br><br>```<br>ticket_audits.author_id = tickets.collaborator_ids<br>```<br><br>```<br>ticket_audits.author_id = tickets.assignee_id<br>``` |
| [ticket_metrics](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#ticket-metrics) | ```<br>ticket_audits.ticket_id = ticket_metrics.ticket_id<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#users) | ```<br>ticket_audits.author_id = users.id<br>``` |

ticket\_audits table schema

| **author\_id**<br><br><br>INTEGER |
| --- |
| **created\_at**<br><br><br>DATE-TIME |
| **events**<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 events<br><br><table> <tr> <td> <p> <strong>								attachments							</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>								audit_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								author_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								body							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								created_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								data							</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 data</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								answered_by_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								answered_by_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								call_duration							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								from							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								recording_url							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								started_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								to							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								transcription_status							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								transcription_text							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								field_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								formatted_from							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								formatted_to							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								html_body							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								macro_deleted							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								macro_id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								macro_title							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								plain_body							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								previous_value							</strong> </p> <p>							ARRAY, STRING																							</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>								public							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								recipients							</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>								resource							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								subject							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								trusted							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								type							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								value							</strong> </p> <p>							ARRAY, STRING																							</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>								via							</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 via</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								channel							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								source							</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 source</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								from							</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 from</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								address							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								deleted							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								original_recipients							</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>								revision_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								subject							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								ticket_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								title							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								rel							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								to							</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 to</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								address							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> </table></div></div></div> </div></div> </td> </tr> </table></div></div></div> </div></div> </td> </tr> </table> |
| **id**<br><br><br>INTEGER |
| **metadata**<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 metadata<br><br><table> <tr> <td> <p> <strong>								flags							</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>								flags_options							</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 flags_options</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								11							</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 11</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								message							</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 message</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								user							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								trusted							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								2							</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 2</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								trusted							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								notifications_suppressed_for							</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>								system							</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 system</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								client							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								ip_address							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								json_email_identifier							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								latitude							</strong> </p> <p>							NUMBER													</p> </td> </tr> <tr> <td> <p> <strong>								location							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								longitude							</strong> </p> <p>							NUMBER													</p> </td> </tr> <tr> <td> <p> <strong>								message_id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								raw_email_identifier							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								trusted							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> </table> |
| **ticket\_id**<br><br><br>INTEGER |
| **via**<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 via<br><br><table> <tr> <td> <p> <strong>								channel							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								source							</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 source</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								from							</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 from</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								address							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								deleted							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								original_recipients							</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>								subject							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								ticket_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								ticket_ids							</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>								title							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								rel							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								to							</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 to</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								address							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> </table></div></div></div> </div></div> </td> </tr> </table> |

### ticket\_comments

The `ticket_comments` table contains info about the comments on tickets, which is the conversation between requesters, collaborators, and agents. Comments can be public or private.

| **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)** | created\_at |
| **Useful links** | [Zendesk Support documentation](https://developer.zendesk.com/rest_api/docs/support/ticket_comments "Opens in new tab: Zendesk Support documentation")<br><br><br>[ticket_comments schema on GitHub](https://github.com/singer-io/tap-zendesk/blob/master/tap_zendesk/schemas/ticket_comments.json "Opens in new tab: ticket_comments schema on GitHub")<br><br><br>[Zendesk Support API method](https://developer.zendesk.com/rest_api/docs/support/ticket_comments#list-comments "Opens in new tab: Zendesk Support API method") |

ticket\_comments table foreign keys

| Join ticket\_comments with | on |
| --- | --- |
| [ticket_audits](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#ticket-audits) | ```<br>ticket_comments.audit_id = ticket_audits.id<br>```<br><br>```<br>ticket_comments.audit_id = ticket_audits.events.audit_id<br>```<br><br>```<br>ticket_comments.ticket_id = ticket_audits.ticket_id<br>```<br><br>```<br>ticket_comments.author_id = ticket_audits.author_id<br>``` |
| [satisfaction_ratings](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#satisfaction-ratings) | ```<br>ticket_comments.ticket_id = satisfaction_ratings.ticket_id<br>```<br><br>```<br>ticket_comments.author_id = satisfaction_ratings.assignee_id<br>```<br><br>```<br>ticket_comments.author_id = satisfaction_ratings.requester_id<br>``` |
| [tickets](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#tickets) | ```<br>ticket_comments.ticket_id = tickets.id<br>```<br><br>```<br>ticket_comments.author_id = tickets.requester_id<br>```<br><br>```<br>ticket_comments.author_id = tickets.follower_ids<br>```<br><br>```<br>ticket_comments.author_id = tickets.submitter_id<br>```<br><br>```<br>ticket_comments.author_id = tickets.collaborator_ids<br>```<br><br>```<br>ticket_comments.author_id = tickets.assignee_id<br>``` |
| [ticket_metrics](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#ticket-metrics) | ```<br>ticket_comments.ticket_id = ticket_metrics.ticket_id<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#users) | ```<br>ticket_comments.author_id = users.id<br>``` |

ticket\_comments table schema

| **attachments**<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;. |
| --- |
| **audit\_id**<br><br><br>INTEGER |
| **author\_id**<br><br><br>INTEGER |
| **body**<br><br><br>STRING |
| **created\_at**<br><br><br>DATE-TIME |
| **html\_body**<br><br><br>STRING |
| **id**<br><br><br>INTEGER |
| **metadata**<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 metadata<br><br><table> <tr> <td> <p> <strong>								flags							</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>								flags_options							</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 flags_options</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								11							</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 11</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								message							</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 message</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								user							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								trusted							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								2							</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 2</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								trusted							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								notifications_suppressed_for							</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>								system							</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 system</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								client							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								ip_address							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								json_email_identifier							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								latitude							</strong> </p> <p>							NUMBER													</p> </td> </tr> <tr> <td> <p> <strong>								location							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								longitude							</strong> </p> <p>							NUMBER													</p> </td> </tr> <tr> <td> <p> <strong>								message_id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								raw_email_identifier							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								trusted							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> </table> |
| **plain\_body**<br><br><br>STRING |
| **public**<br><br><br>BOOLEAN |
| **ticket\_id**<br><br><br>INTEGER |
| **type**<br><br><br>STRING |
| **via**<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 via<br><br><table> <tr> <td> <p> <strong>								channel							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								source							</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 source</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								from							</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 from</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								address							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								deleted							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								original_recipients							</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>								subject							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								ticket_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								ticket_ids							</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>								title							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								rel							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								to							</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 to</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								address							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> </table></div></div></div> </div></div> </td> </tr> </table> |

### ticket\_fields

The `ticket_fields` table contains info about the basic text and custom ticket fields in your Zendesk Support account.

**Note**: Retrieving ticket metric data requires Zendesk Support Agent or Admin permissions.

| **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)** | updated\_at |
| **Useful links** | [Zendesk Support documentation](https://developer.zendesk.com/rest_api/docs/support/ticket_fields "Opens in new tab: Zendesk Support documentation")<br><br><br>[ticket_fields schema on GitHub](https://github.com/singer-io/tap-zendesk/blob/master/tap_zendesk/schemas/ticket_fields.json "Opens in new tab: ticket_fields schema on GitHub")<br><br><br>[Zendesk Support API method](https://developer.zendesk.com/rest_api/docs/support/ticket_fields#list-ticket-fields "Opens in new tab: Zendesk Support API method") |

ticket\_fields table foreign keys

| Join ticket\_fields with | on |
| --- | --- |
| [ticket_forms](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#ticket-forms) | ```<br>ticket_fields.id = ticket_forms.ticket_field_ids<br>``` |
| [tickets](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#tickets) | ```<br>ticket_fields.id = tickets.custom_fields.id<br>``` |

ticket\_fields table schema

| **active**<br><br><br>BOOLEAN |
| --- |
| **agent\_description**<br><br><br>STRING |
| **collapsed\_for\_agents**<br><br><br>BOOLEAN |
| **created\_at**<br><br><br>DATE-TIME |
| **custom\_field\_options**<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 custom\_field\_options<br><br><table> <tr> <td> <p> <strong>								default							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								raw_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								value							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **description**<br><br><br>STRING |
| **editable\_in\_portal**<br><br><br>BOOLEAN |
| **id**<br><br><br>INTEGER |
| **position**<br><br><br>INTEGER |
| **raw\_description**<br><br><br>STRING |
| **raw\_title**<br><br><br>STRING |
| **raw\_title\_in\_portal**<br><br><br>STRING |
| **regexp\_for\_validation**<br><br><br>STRING |
| **removable**<br><br><br>BOOLEAN |
| **required**<br><br><br>BOOLEAN |
| **required\_in\_portal**<br><br><br>BOOLEAN |
| **sub\_type\_id**<br><br><br>INTEGER |
| **system\_field\_options**<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;. |
| **tag**<br><br><br>STRING |
| **title**<br><br><br>STRING |
| **title\_in\_portal**<br><br><br>STRING |
| **type**<br><br><br>STRING |
| **updated\_at**<br><br><br>DATE-TIME |
| **url**<br><br><br>STRING |
| **visible\_in\_portal**<br><br><br>BOOLEAN |

### ticket\_forms

The `ticket_forms` table contains info about the ticket forms in your Zendesk Support account.

**Note**: Replicating ticket forms requires that you be on an Enterprise Zendesk Support plan or a Professional plan with the corresponding add-on, and have Admin permissions in Zendesk Support.

| **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)** | updated\_at |
| **Useful links** | [Zendesk Support documentation](https://developer.zendesk.com/rest_api/docs/support/ticket_forms "Opens in new tab: Zendesk Support documentation")<br><br><br>[ticket_forms schema on GitHub](https://github.com/singer-io/tap-zendesk/blob/master/tap_zendesk/schemas/ticket_forms.json "Opens in new tab: ticket_forms schema on GitHub")<br><br><br>[Zendesk Support API method](https://developer.zendesk.com/rest_api/docs/support/ticket_forms#list-ticket-forms "Opens in new tab: Zendesk Support API method") |

ticket\_forms table foreign keys

| Join ticket\_forms with | on |
| --- | --- |
| [ticket_fields](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#ticket-fields) | ```<br>ticket_forms.ticket_field_ids = ticket_fields.id<br>``` |
| [tickets](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#tickets) | ```<br>ticket_forms.ticket_field_ids = tickets.custom_fields.id<br>```<br><br>```<br>ticket_forms.id = tickets.ticket_form_id<br>``` |

ticket\_forms table schema

| **active**<br><br><br>BOOLEAN |
| --- |
| **created\_at**<br><br><br>DATE-TIME |
| **default**<br><br><br>BOOLEAN |
| **display\_name**<br><br><br>STRING |
| **end\_user\_visible**<br><br><br>BOOLEAN |
| **id**<br><br><br>INTEGER |
| **in\_all\_brands**<br><br><br>BOOLEAN |
| **name**<br><br><br>STRING |
| **position**<br><br><br>INTEGER |
| **raw\_display\_name**<br><br><br>STRING |
| **raw\_name**<br><br><br>STRING |
| **restricted\_brand\_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;. |
| **ticket\_field\_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;. |
| **updated\_at**<br><br><br>DATE-TIME |
| **url**<br><br><br>STRING |

### ticket\_metric\_events

This table contains data about reply times, agent work times, and requester wait times.

| **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)** | time |
| **Useful links** | [ticket_metric_events schema on GitHub](https://github.com/singer-io/tap-zendesk/blob/master/tap_zendesk/schemas/ticket_metric_events.json "Opens in new tab: ticket_metric_events schema on GitHub")<br><br><br>[Zendesk Support API method](https://developer.zendesk.com/api-reference/ticketing/tickets/ticket_metric_events/ "Opens in new tab: Zendesk Support API method") |

ticket\_metric\_events table schema

| **deleted**<br><br><br>BOOLEAN |
| --- |
| **id**<br><br><br>INTEGER |
| **instance\_id**<br><br><br>INTEGER |
| **metric**<br><br><br>STRING |
| **sla**<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 sla<br><br><table> <tr> <td> <p> <strong>								business_hours							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								policy							</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 policy</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								description							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								title							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								target							</strong> </p> <p>							INTEGER													</p> </td> </tr> </table> |
| **status**<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 status<br><br><table> <tr> <td> <p> <strong>								business							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								calendar							</strong> </p> <p>							INTEGER													</p> </td> </tr> </table> |
| **ticket\_id**<br><br><br>INTEGER |
| **time**<br><br><br>DATE-TIME |
| **type**<br><br><br>STRING |

### ticket\_metrics

The `ticket_metrics` table contains info about the metrics associated with Zendesk Support tickets. **This table will not include records for deleted tickets.**

**Note**: Retrieving ticket metric data requires Zendesk Support Admin permissions.

#### Deleted ticket metrics

As Zendesk Support’s API doesn’t currently support returning metrics for deleted tickets, this table will not contain any metrics for deleted tickets.

If you believe you’re missing records, check in your Zendesk Support account to see if the missing records are for deleted tickets.

For more info on how Zendesk Support handles deleting tickets, [refer to their documentation](https://support.zendesk.com/hc/en-us/articles/203690936).

| **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)** | updated\_at |
| **Useful links** | [Zendesk Support documentation](https://developer.zendesk.com/rest_api/docs/support/ticket_metrics "Opens in new tab: Zendesk Support documentation")<br><br><br>[ticket_metrics schema on GitHub](https://github.com/singer-io/tap-zendesk/blob/master/tap_zendesk/schemas/ticket_metrics.json "Opens in new tab: ticket_metrics schema on GitHub")<br><br><br>[Zendesk Support API method](https://developer.zendesk.com/rest_api/docs/support/ticket_metrics#list-ticket-metrics "Opens in new tab: Zendesk Support API method") |

ticket\_metrics table foreign keys

| Join ticket\_metrics with | on |
| --- | --- |
| [satisfaction_ratings](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#satisfaction-ratings) | ```<br>ticket_metrics.ticket_id = satisfaction_ratings.ticket_id<br>``` |
| [tickets](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#tickets) | ```<br>ticket_metrics.ticket_id = tickets.id<br>``` |
| [ticket_audits](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#ticket-audits) | ```<br>ticket_metrics.ticket_id = ticket_audits.ticket_id<br>``` |
| [ticket_comments](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#ticket-comments) | ```<br>ticket_metrics.ticket_id = ticket_comments.ticket_id<br>``` |

ticket\_metrics table schema

| **agent\_wait\_time\_in\_minutes**<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 agent\_wait\_time\_in\_minutes<br><br><table> <tr> <td> <p> <strong>								business							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								calendar							</strong> </p> <p>							INTEGER													</p> </td> </tr> </table> |
| --- |
| **assigned\_at**<br><br><br>DATE-TIME |
| **assignee\_stations**<br><br><br>INTEGER |
| **assignee\_updated\_at**<br><br><br>DATE-TIME |
| **created\_at**<br><br><br>DATE-TIME |
| **first\_resolution\_time\_in\_minutes**<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 first\_resolution\_time\_in\_minutes<br><br><table> <tr> <td> <p> <strong>								business							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								calendar							</strong> </p> <p>							INTEGER													</p> </td> </tr> </table> |
| **full\_resolution\_time\_in\_minutes**<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 full\_resolution\_time\_in\_minutes<br><br><table> <tr> <td> <p> <strong>								business							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								calendar							</strong> </p> <p>							INTEGER													</p> </td> </tr> </table> |
| **group\_stations**<br><br><br>INTEGER |
| **id**<br><br><br>INTEGER |
| **initially\_assigned\_at**<br><br><br>DATE-TIME |
| **instance\_id**<br><br><br>INTEGER |
| **latest\_comment\_added\_at**<br><br><br>DATE-TIME |
| **metric**<br><br><br>STRING |
| **on\_hold\_time\_in\_minutes**<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 on\_hold\_time\_in\_minutes<br><br><table> <tr> <td> <p> <strong>								business							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								calendar							</strong> </p> <p>							INTEGER													</p> </td> </tr> </table> |
| **reopens**<br><br><br>INTEGER |
| **replies**<br><br><br>INTEGER |
| **reply\_time\_in\_minutes**<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 reply\_time\_in\_minutes<br><br><table> <tr> <td> <p> <strong>								business							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								calendar							</strong> </p> <p>							INTEGER													</p> </td> </tr> </table> |
| **requester\_updated\_at**<br><br><br>DATE-TIME |
| **requester\_wait\_time\_in\_minutes**<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 requester\_wait\_time\_in\_minutes<br><br><table> <tr> <td> <p> <strong>								business							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								calendar							</strong> </p> <p>							INTEGER													</p> </td> </tr> </table> |
| **solved\_at**<br><br><br>DATE-TIME |
| **status**<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 status<br><br><table> <tr> <td> <p> <strong>								business							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								calendar							</strong> </p> <p>							INTEGER													</p> </td> </tr> </table> |
| **status\_updated\_at**<br><br><br>DATE-TIME |
| **ticket\_id**<br><br><br>INTEGER |
| **time**<br><br><br>STRING |
| **type**<br><br><br>STRING |
| **updated\_at**<br><br><br>DATE-TIME |
| **url**<br><br><br>STRING |

### tickets

The `tickets` table contains info about the tickets in your Zendesk Support account. Tickets are the means through which your end users (customers) communicate with your Zendesk Support agents.

**Note**: Retrieving ticket data requires Zendesk Support Admin permissions.

#### Custom ticket fields

Stitch’s Zendesk Support integration will replicate all custom ticket fields.

| **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)** | generated\_timestamp |
| **Useful links** | [Zendesk Support documentation](https://developer.zendesk.com/rest_api/docs/support/tickets "Opens in new tab: Zendesk Support documentation")<br><br><br>[tickets schema on GitHub](https://github.com/singer-io/tap-zendesk/blob/master/tap_zendesk/schemas/tickets.json "Opens in new tab: tickets schema on GitHub")<br><br><br>[Zendesk Support API method](https://developer.zendesk.com/rest_api/docs/support/incremental_export#incremental-ticket-export "Opens in new tab: Zendesk Support API method") |

tickets table foreign keys

| Join tickets with | on |
| --- | --- |
| [groups](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#groups) | ```<br>tickets.group_id = groups.id<br>``` |
| [group_memberships](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#group-memberships) | ```<br>tickets.group_id = group_memberships.group_id<br>``` |
| [organizations](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#organizations) | ```<br>tickets.group_id = organizations.group_id<br>```<br><br>```<br>tickets.organization_id = organizations.id<br>```<br><br>```<br>tickets.tags = organizations.tags<br>``` |
| [satisfaction_ratings](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#satisfaction-ratings) | ```<br>tickets.group_id = satisfaction_ratings.group_id<br>```<br><br>```<br>tickets.id = satisfaction_ratings.ticket_id<br>```<br><br>```<br>tickets.requester_id = satisfaction_ratings.assignee_id<br>```<br><br>```<br>tickets.follower_ids = satisfaction_ratings.assignee_id<br>```<br><br>```<br>tickets.submitter_id = satisfaction_ratings.assignee_id<br>```<br><br>```<br>tickets.collaborator_ids = satisfaction_ratings.assignee_id<br>```<br><br>```<br>tickets.assignee_id = satisfaction_ratings.assignee_id<br>```<br><br>```<br>tickets.requester_id = satisfaction_ratings.requester_id<br>```<br><br>```<br>tickets.follower_ids = satisfaction_ratings.requester_id<br>```<br><br>```<br>tickets.submitter_id = satisfaction_ratings.requester_id<br>```<br><br>```<br>tickets.collaborator_ids = satisfaction_ratings.requester_id<br>```<br><br>```<br>tickets.assignee_id = satisfaction_ratings.requester_id<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#users) | ```<br>tickets.group_id = users.default_group_id<br>```<br><br>```<br>tickets.organization_id = users.organization_id<br>```<br><br>```<br>tickets.tags = users.tags<br>```<br><br>```<br>tickets.requester_id = users.id<br>```<br><br>```<br>tickets.follower_ids = users.id<br>```<br><br>```<br>tickets.submitter_id = users.id<br>```<br><br>```<br>tickets.collaborator_ids = users.id<br>```<br><br>```<br>tickets.assignee_id = users.id<br>``` |
| [tags](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#tags) | ```<br>tickets.tags = tags.name<br>``` |
| [ticket_fields](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#ticket-fields) | ```<br>tickets.custom_fields.id = ticket_fields.id<br>``` |
| [ticket_forms](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#ticket-forms) | ```<br>tickets.custom_fields.id = ticket_forms.ticket_field_ids<br>```<br><br>```<br>tickets.ticket_form_id = ticket_forms.id<br>``` |
| [ticket_audits](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#ticket-audits) | ```<br>tickets.id = ticket_audits.ticket_id<br>```<br><br>```<br>tickets.requester_id = ticket_audits.author_id<br>```<br><br>```<br>tickets.follower_ids = ticket_audits.author_id<br>```<br><br>```<br>tickets.submitter_id = ticket_audits.author_id<br>```<br><br>```<br>tickets.collaborator_ids = ticket_audits.author_id<br>```<br><br>```<br>tickets.assignee_id = ticket_audits.author_id<br>``` |
| [ticket_comments](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#ticket-comments) | ```<br>tickets.id = ticket_comments.ticket_id<br>```<br><br>```<br>tickets.requester_id = ticket_comments.author_id<br>```<br><br>```<br>tickets.follower_ids = ticket_comments.author_id<br>```<br><br>```<br>tickets.submitter_id = ticket_comments.author_id<br>```<br><br>```<br>tickets.collaborator_ids = ticket_comments.author_id<br>```<br><br>```<br>tickets.assignee_id = ticket_comments.author_id<br>``` |
| [ticket_metrics](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#ticket-metrics) | ```<br>tickets.id = ticket_metrics.ticket_id<br>``` |

tickets table schema

| **allow\_attachments**<br><br><br>BOOLEAN |
| --- |
| **allow\_channelback**<br><br><br>BOOLEAN |
| **assignee\_id**<br><br><br>INTEGER |
| **brand\_id**<br><br><br>INTEGER |
| **collaborator\_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;. |
| **created\_at**<br><br><br>DATE-TIME |
| **custom\_fields**<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 custom\_fields<br><br><table> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> </table> |
| **description**<br><br><br>STRING |
| **due\_at**<br><br><br>DATE-TIME |
| **email\_cc\_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;. |
| **external\_id**<br><br><br>STRING |
| **follower\_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;. |
| **followup\_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;. |
| **forum\_topic\_id**<br><br><br>INTEGER |
| **generated\_timestamp**<br><br><br>INTEGER |
| **group\_id**<br><br><br>INTEGER |
| **has\_incidents**<br><br><br>BOOLEAN |
| **id**<br><br><br>INTEGER |
| **is\_public**<br><br><br>BOOLEAN |
| **organization\_id**<br><br><br>INTEGER |
| **priority**<br><br><br>STRING |
| **problem\_id**<br><br><br>INTEGER |
| **raw\_subject**<br><br><br>STRING |
| **recipient**<br><br><br>STRING |
| **requester\_id**<br><br><br>INTEGER |
| **satisfaction\_rating**<br><br><br>OBJECT, STRING<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 satisfaction\_rating<br><br><table> <tr> <td> <p> <strong>								assignee_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								comment							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								created_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								group_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								reason							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								reason_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								requester_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								score							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								ticket_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								updated_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								url							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **sharing\_agreement\_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;. |
| **status**<br><br><br>STRING |
| **subject**<br><br><br>STRING |
| **submitter\_id**<br><br><br>INTEGER |
| **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;. |
| **ticket\_form\_id**<br><br><br>INTEGER |
| **type**<br><br><br>STRING |
| **updated\_at**<br><br><br>DATE-TIME |
| **url**<br><br><br>STRING |
| **via**<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 via<br><br><table> <tr> <td> <p> <strong>								channel							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								source							</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 source</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								from							</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 from</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								address							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								subject							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								ticket_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								rel							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								to							</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 to</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								address							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> </table></div></div></div> </div></div> </td> </tr> </table> |

### users

The `users` table contains info about the users associated with your Zendesk Support account. This includes agents, admins, and end-users (customers).

**Note**: Retrieving user data requires Zendesk Support Admin permissions.

#### Custom user fields

Stitch’s Zendesk Support integration will replicate any custom fields associated with user records.

**Note**: Replicating user custom fields requires that you be on a Team, Professional, or Enterprise Zendesk Support plan.

| **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)** | updated\_at |
| **Useful links** | [Zendesk Support documentation](https://developer.zendesk.com/rest_api/docs/support/users "Opens in new tab: Zendesk Support documentation")<br><br><br>[users schema on GitHub](https://github.com/singer-io/tap-zendesk/blob/master/tap_zendesk/schemas/users.json "Opens in new tab: users schema on GitHub")<br><br><br>[Zendesk Support API method](https://developer.zendesk.com/rest_api/docs/support/incremental_export#incremental-user-export "Opens in new tab: Zendesk Support API method") |

users table foreign keys

| Join users with | on |
| --- | --- |
| [groups](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#groups) | ```<br>users.default_group_id = groups.id<br>```<br><br>```<br>users.id = groups.id<br>``` |
| [group_memberships](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#group-memberships) | ```<br>users.default_group_id = group_memberships.group_id<br>``` |
| [organizations](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#organizations) | ```<br>users.default_group_id = organizations.group_id<br>```<br><br>```<br>users.organization_id = organizations.id<br>```<br><br>```<br>users.tags = organizations.tags<br>``` |
| [satisfaction_ratings](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#satisfaction-ratings) | ```<br>users.default_group_id = satisfaction_ratings.group_id<br>```<br><br>```<br>users.id = satisfaction_ratings.assignee_id<br>```<br><br>```<br>users.id = satisfaction_ratings.requester_id<br>``` |
| [tickets](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#tickets) | ```<br>users.default_group_id = tickets.group_id<br>```<br><br>```<br>users.organization_id = tickets.organization_id<br>```<br><br>```<br>users.tags = tickets.tags<br>```<br><br>```<br>users.id = tickets.requester_id<br>```<br><br>```<br>users.id = tickets.follower_ids<br>```<br><br>```<br>users.id = tickets.submitter_id<br>```<br><br>```<br>users.id = tickets.collaborator_ids<br>```<br><br>```<br>users.id = tickets.assignee_id<br>``` |
| [macros](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#macros) | ```<br>users.id = macros.restriction.id<br>``` |
| [tags](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#tags) | ```<br>users.tags = tags.name<br>``` |
| [ticket_audits](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#ticket-audits) | ```<br>users.id = ticket_audits.author_id<br>``` |
| [ticket_comments](https://help.qlik.com/en-US/stitch/integrations/saas/zendesk#ticket-comments) | ```<br>users.id = ticket_comments.author_id<br>``` |

users table schema

| **active**<br><br><br>BOOLEAN |
| --- |
| **alias**<br><br><br>STRING |
| **chat\_only**<br><br><br>BOOLEAN |
| **created\_at**<br><br><br>DATE-TIME |
| **custom\_role\_id**<br><br><br>INTEGER |
| **default\_group\_id**<br><br><br>INTEGER |
| **details**<br><br><br>STRING |
| **email**<br><br><br>STRING |
| **external\_id**<br><br><br>STRING |
| **id**<br><br><br>INTEGER |
| **last\_login\_at**<br><br><br>DATE-TIME |
| **locale**<br><br><br>STRING |
| **locale\_id**<br><br><br>INTEGER |
| **moderator**<br><br><br>BOOLEAN |
| **name**<br><br><br>STRING |
| **notes**<br><br><br>STRING |
| **only\_private\_comments**<br><br><br>BOOLEAN |
| **organization\_id**<br><br><br>INTEGER |
| **permanently\_deleted**<br><br><br>BOOLEAN |
| **phone**<br><br><br>STRING |
| **photo**<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;. |
| **report\_csv**<br><br><br>BOOLEAN |
| **restricted\_agent**<br><br><br>BOOLEAN |
| **role**<br><br><br>STRING |
| **role\_type**<br><br><br>INTEGER |
| **shared**<br><br><br>BOOLEAN |
| **shared\_agent**<br><br><br>BOOLEAN |
| **shared\_phone\_number**<br><br><br>BOOLEAN |
| **signature**<br><br><br>STRING |
| **suspended**<br><br><br>BOOLEAN |
| **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;. |
| **ticket\_restriction**<br><br><br>STRING |
| **time\_zone**<br><br><br>STRING |
| **two\_factor\_auth\_enabled**<br><br><br>BOOLEAN |
| **updated\_at**<br><br><br>DATE-TIME |
| **url**<br><br><br>STRING |
| **user\_fields**<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;. |
| **verified**<br><br><br>BOOLEAN |