# Slack (v1)

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

Information note **Slack is supported by the Singer community**   
This integration is powered by [Singer's](https://www.singer.io/) Slack tap. For support, [visit the GitHub repo](https://github.com/singer-io/tap-slack) or [join the Singer Slack](https://singer-slackin.herokuapp.com/).

## Slack integration summary

Stitch’s Slack integration replicates data from a single Slack workspace using the [Slack Web API](https://api.slack.com/web). To replicate data from multiple workspaces, create an additional Slack integration for each workspace.

Refer to the [Schema](https://help.qlik.com/en-US/stitch/integrations/saas/slack#schema) section for a list of objects available for replication.

## Slack feature snapshot

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

| **STITCH** |  |  |  |
| --- | --- | --- | --- |
| **[Release status](https://help.qlik.com/en-US/stitch/integrations/identify-an-integration-version)** | Beta | **Supported by**<br><br>the Info icon<br><br>Indicates if the integration is supported by Stitch or the Singer community. | [Singer Community](https://www.singer.io/) |
| **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-slack](https://github.com/singer-io/tap-slack) |  |  |
| **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 Slack

### Step 1: Create a Slack app and retrieve a verification token

Information note **Connecting multiple workspaces?** You’ll need to create a new Slack app and Stitch Slack integration for each workspace. Follow this guide in its entirety for each workspace you want to replicate data from.

* [Step 1.1: Create the app](https://help.qlik.com/en-US/stitch/integrations/saas/slack#create-the-app)

* [Step 1.2: Grant relevant scopes to the app](https://help.qlik.com/en-US/stitch/integrations/saas/slack#assign-scopes)

* [Step 1.3: Install the app to your workspace](https://help.qlik.com/en-US/stitch/integrations/saas/slack#install-app-workspace)

* [Step 1.4: Retrieve the app’s bot user OAuth access token](https://help.qlik.com/en-US/stitch/integrations/saas/slack#bot-user-oauth-access-token)

#### Step 1.1: Create the app

1. Navigate to the [Slack App site](https://api.slack.com/apps).
2. Click **Create an App**.
3. Enter a name for the app and select the workspace you want to replicate data from.
4. Click **Create App**.

#### Step 1.2: Grant relevant scopes to the app

Next, you’ll grant the required permissions to the app you created in [the previous step](https://help.qlik.com/en-US/stitch/integrations/saas/slack#create-the-app).

![The add permission by scope or API method menu, expanded, in the Bot Token Scopes section of the Slack App Scopes page](https://help.qlik.com/en-US/stitch/images/integrations/slack-bot-token-scopes.png)The add permission by scope or API method menu, expanded, in the Bot Token Scopes section of the Slack App Scopes pageThe add permission by scope or API method menu, expanded, in the Bot Token Scopes section of the Slack App Scopes page

1. The app you created should be selected in the drop-down menu near the top-left corner of the page. If it isn’t, select it.

2. Click **Features &gt; OAuth & Permissions** in the left side menu.

3. Scroll to the **Scopes** section.

4. In the **Bot Token Scopes** section, click the **Add an OAuth Scope** button.

5. In the field that appears, search for the following scopes:

   * `channels:history`
   * `channels:join`
   * `channels:read`
   * `files:read`
   * `groups:read`
   * `links:read`
   * `reactions:read`
   * `remote_files:read`
   * `remote_files:write`
   * `team:read`
   * `useergroups:read`
   * `users.profile:read`
   * `users:read`
   * `users:read.email`

   Slack will automatically save the changes each time a scope is added.

6. Repeat steps 4 and 5 until all the scopes have been added.

#### Step 1.3: Install the app to your workspace

Information note **If app approval is enabled for your workspace** and you don’t have the required permissions to install apps, you may need to contact a Workspace Owner or App Manager in your workspace to complete this step. Refer to [Slack’s documentation](https://slack.com/help/articles/222386767-Manage-app-installation-settings-for-your-workspace) for more info.

After the [required scopes](https://help.qlik.com/en-US/stitch/integrations/saas/slack#assign-scopes) are added to the app, you’ll need to install it to your Slack workspace. This is required to successfully connect to Stitch.

1. Scroll up to the **OAuth Tokens & Redirect URLs** section of the **OAuth & Permissions** page.
2. In this section, click the **Install App to Workspace** button.
3. Complete the steps that follow to install the app or submit a request to your Workspace Owner(s) for approval.

#### Step 1.4: Retrieve the app's bot user OAuth access token

After the app is successfully installed to your Slack workspace, a **Tokens for Your Workspace** section containing a **Bot User OAuth Access Token** field will display on the page:

![The Bot User OAuth Access Token in the Tokens for Your Workspace section of the OAuth Tokens & Redirect URLs App page in Slack](https://help.qlik.com/en-US/stitch/images/integrations/slack-bot-oauth-access-token.png)The Bot User OAuth Access Token in the Tokens for Your Workspace section of the OAuth Tokens & Redirect URLs App page in SlackThe Bot User OAuth Access Token in the Tokens for Your Workspace section of the OAuth Tokens & Redirect URLs App page in Slack

Keep the token readily available for the next step.

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

5. In the **Token** field, paste the bot user OAuth access token you copied from [Step 1.4](https://help.qlik.com/en-US/stitch/integrations/saas/slack#bot-user-oauth-access-token).

6. Check the **Join public channels** box if you’d like to replicate data for all public channels in the workspace you’re connecting. Otherwise, only data for channels you’ve personally joined will be replicated.

7. Check the **Include private channels** box if you’d like to replicate data for private channels in the workspace.

8. Check the **Exclude archived channels** box if you don’t want to replicate data from archived channels.

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

The Sync Historical Data setting defines the starting date for your Slack 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 Slack’s default setting of **1 year**. For a detailed look at historical replication jobs, check out the [Syncing Historical SaaS Data](https://help.qlik.com/en-US/stitch/replication/syncing-historical-saas-data-resetting-replication-keys) guide.

### Step 4: Create a replication schedule

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

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

Slack integrations support the following replication scheduling methods:

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

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

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

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

### Step 5: Set objects to replicate

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

The last step is to select the tables and columns you want to replicate. [Learn about the available tables for this integration.](https://help.qlik.com/en-US/stitch/integrations/saas/slack#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 Slack 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 Slack, 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.

## Slack replication

### Workspace replication

Stitch can only replicate data from one Slack workspace at a time. In order to replicate multiple workspaces, you will need to create integrations for each workspace.

## Slack table reference

Information note

**Schemas and versioning**

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

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

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

### channel\_members

The `channel_members` table contain info about members of channels in your Slack workspace. Channels include conversations, channels, and direct messages in your Slack workspace.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Full Table |
| --- | --- |
| **Primary Keys ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | channel\_id<br><br>user\_id |
| **Useful links** | [Slack documentation](https://api.slack.com/docs/conversations-api "Opens in new tab: Slack documentation")<br><br><br>[channel_members schema on GitHub](https://github.com/singer-io/tap-slack/blob/master/tap_slack/schemas/channel_members.json "Opens in new tab: channel_members schema on GitHub")<br><br><br>[Slack API method](https://api.slack.com/methods/conversations.members "Opens in new tab: Slack API method") |

channel\_members table foreign keys

| Join channel\_members with | on |
| --- | --- |
| [channels](https://help.qlik.com/en-US/stitch/integrations/saas/slack#channels) | ```<br>channel_members.channel_id = channels.id<br>```<br><br>```<br>channel_members.user_id = channels.creator<br>```<br><br>```<br>channel_members.user_id = channels.members<br>``` |
| [files](https://help.qlik.com/en-US/stitch/integrations/saas/slack#files) | ```<br>channel_members.channel_id = files.channels<br>```<br><br>```<br>channel_members.channel_id = files.pinned_to<br>```<br><br>```<br>channel_members.user_id = files.user<br>``` |
| [messages](https://help.qlik.com/en-US/stitch/integrations/saas/slack#messages) | ```<br>channel_members.channel_id = messages.channel_id<br>```<br><br>```<br>channel_members.channel_id = messages.pinned_to<br>```<br><br>```<br>channel_members.user_id = messages.reply_users<br>```<br><br>```<br>channel_members.user_id = messages.reactions.users<br>```<br><br>```<br>channel_members.user_id = messages.user<br>``` |
| [remote_files](https://help.qlik.com/en-US/stitch/integrations/saas/slack#remote-files) | ```<br>channel_members.channel_id = remote_files.channels<br>```<br><br>```<br>channel_members.channel_id = remote_files.pinned_to<br>```<br><br>```<br>channel_members.user_id = remote_files.user<br>``` |
| [threads](https://help.qlik.com/en-US/stitch/integrations/saas/slack#threads) | ```<br>channel_members.channel_id = threads.channel_id<br>```<br><br>```<br>channel_members.user_id = threads.user<br>```<br><br>```<br>channel_members.user_id = threads.reply_users<br>``` |
| [user_groups](https://help.qlik.com/en-US/stitch/integrations/saas/slack#user-groups) | ```<br>channel_members.user_id = user_groups.members<br>```<br><br>```<br>channel_members.user_id = user_groups.purpose.creator<br>```<br><br>```<br>channel_members.user_id = user_groups.topic.creator<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/slack#users) | ```<br>channel_members.user_id = users.id<br>``` |

channel\_members table schema

| **channel\_id**<br><br><br>STRING |
| --- |
| **user\_id**<br><br><br>STRING |

### channels

The `channels` table contains info about the channels in your Slack workspace. This includes conversations, channels, and direct messages.

**Note**: Some types of channels - for example, private or archived channels - will be replicated only if the appropriate settings are configured in the integration’s settings. Refer to the Slack [setup steps](https://help.qlik.com/en-US/stitch/integrations/saas/slack#add-integration) for more info.

| **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** | [Slack documentation](https://api.slack.com/types/channel "Opens in new tab: Slack documentation")<br><br><br>[channels schema on GitHub](https://github.com/singer-io/tap-slack/blob/master/tap_slack/schemas/channels.json "Opens in new tab: channels schema on GitHub")<br><br><br>[Slack API method](https://api.slack.com/methods/conversations.list "Opens in new tab: Slack API method") |

channels table foreign keys

| Join channels with | on |
| --- | --- |
| [channel_members](https://help.qlik.com/en-US/stitch/integrations/saas/slack#channel-members) | ```<br>channels.id = channel_members.channel_id<br>```<br><br>```<br>channels.creator = channel_members.user_id<br>```<br><br>```<br>channels.members = channel_members.user_id<br>``` |
| [files](https://help.qlik.com/en-US/stitch/integrations/saas/slack#files) | ```<br>channels.id = files.channels<br>```<br><br>```<br>channels.id = files.pinned_to<br>```<br><br>```<br>channels.pending_connected_team_ids = files.source_team<br>```<br><br>```<br>channels.pending_connected_team_ids = files.user_team<br>```<br><br>```<br>channels.creator = files.user<br>```<br><br>```<br>channels.members = files.user<br>``` |
| [messages](https://help.qlik.com/en-US/stitch/integrations/saas/slack#messages) | ```<br>channels.id = messages.channel_id<br>```<br><br>```<br>channels.id = messages.pinned_to<br>```<br><br>```<br>channels.pending_connected_team_ids = messages.bot_profile.team_id<br>```<br><br>```<br>channels.pending_connected_team_ids = messages.team<br>```<br><br>```<br>channels.pending_connected_team_ids = messages.source_team<br>```<br><br>```<br>channels.pending_connected_team_ids = messages.user_team<br>```<br><br>```<br>channels.creator = messages.reply_users<br>```<br><br>```<br>channels.members = messages.reply_users<br>```<br><br>```<br>channels.creator = messages.reactions.users<br>```<br><br>```<br>channels.members = messages.reactions.users<br>```<br><br>```<br>channels.creator = messages.user<br>```<br><br>```<br>channels.members = messages.user<br>``` |
| [remote_files](https://help.qlik.com/en-US/stitch/integrations/saas/slack#remote-files) | ```<br>channels.id = remote_files.channels<br>```<br><br>```<br>channels.id = remote_files.pinned_to<br>```<br><br>```<br>channels.pending_connected_team_ids = remote_files.source_team<br>```<br><br>```<br>channels.pending_connected_team_ids = remote_files.user_team<br>```<br><br>```<br>channels.creator = remote_files.user<br>```<br><br>```<br>channels.members = remote_files.user<br>``` |
| [threads](https://help.qlik.com/en-US/stitch/integrations/saas/slack#threads) | ```<br>channels.id = threads.channel_id<br>```<br><br>```<br>channels.pending_connected_team_ids = threads.team<br>```<br><br>```<br>channels.creator = threads.user<br>```<br><br>```<br>channels.members = threads.user<br>```<br><br>```<br>channels.creator = threads.reply_users<br>```<br><br>```<br>channels.members = threads.reply_users<br>``` |
| [teams](https://help.qlik.com/en-US/stitch/integrations/saas/slack#teams) | ```<br>channels.pending_connected_team_ids = teams.id<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/slack#users) | ```<br>channels.pending_connected_team_ids = users.team_id<br>```<br><br>```<br>channels.creator = users.id<br>```<br><br>```<br>channels.members = users.id<br>``` |
| [user_groups](https://help.qlik.com/en-US/stitch/integrations/saas/slack#user-groups) | ```<br>channels.creator = user_groups.members<br>```<br><br>```<br>channels.members = user_groups.members<br>```<br><br>```<br>channels.creator = user_groups.purpose.creator<br>```<br><br>```<br>channels.members = user_groups.purpose.creator<br>```<br><br>```<br>channels.creator = user_groups.topic.creator<br>```<br><br>```<br>channels.members = user_groups.topic.creator<br>``` |

channels table schema

| **channel\_id**<br><br><br>STRING |
| --- |
| **created**<br><br><br>DATE-TIME |
| **creator**<br><br><br>STRING |
| **id**<br><br><br>STRING |
| **is\_archived**<br><br><br>BOOLEAN |
| **is\_channel**<br><br><br>BOOLEAN |
| **is\_ext\_shared**<br><br><br>BOOLEAN |
| **is\_general**<br><br><br>BOOLEAN |
| **is\_group**<br><br><br>BOOLEAN |
| **is\_im**<br><br><br>BOOLEAN |
| **is\_member**<br><br><br>BOOLEAN |
| **is\_mpim**<br><br><br>BOOLEAN |
| **is\_org\_shared**<br><br><br>BOOLEAN |
| **is\_pending\_ext\_shared**<br><br><br>BOOLEAN |
| **is\_private**<br><br><br>BOOLEAN |
| **is\_shared**<br><br><br>BOOLEAN |
| **members**<br><br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;. |
| **name**<br><br><br>STRING |
| **name\_normalized**<br><br><br>STRING |
| **num\_members**<br><br><br>INTEGER |
| **parent\_conversation**<br><br><br>STRING |
| **pending\_connected\_team\_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;. |
| **pending\_shared**<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;. |
| **previous\_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;. |
| **purpose**<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 purpose<br><br><table> <tr> <td> <p> <strong>								creator							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								last_set							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								value							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **shared\_team\_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;. |
| **topic**<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 topic<br><br><table> <tr> <td> <p> <strong>								creator							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								last_set							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								value							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **unlinked**<br><br><br>DATE-TIME |

### files

The `files` table contains info about Slack team files.

| **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 |
| **Useful links** | [Slack documentation](https://api.slack.com/types/file "Opens in new tab: Slack documentation")<br><br><br>[files schema on GitHub](https://github.com/singer-io/tap-slack/blob/master/tap_slack/schemas/files.json "Opens in new tab: files schema on GitHub")<br><br><br>[Slack API method](https://api.slack.com/methods/files.list "Opens in new tab: Slack API method") |

files table foreign keys

| Join files with | on |
| --- | --- |
| [channels](https://help.qlik.com/en-US/stitch/integrations/saas/slack#channels) | ```<br>files.channels = channels.id<br>```<br><br>```<br>files.pinned_to = channels.id<br>```<br><br>```<br>files.source_team = channels.pending_connected_team_ids<br>```<br><br>```<br>files.user_team = channels.pending_connected_team_ids<br>```<br><br>```<br>files.user = channels.creator<br>```<br><br>```<br>files.user = channels.members<br>``` |
| [channel_members](https://help.qlik.com/en-US/stitch/integrations/saas/slack#channel-members) | ```<br>files.channels = channel_members.channel_id<br>```<br><br>```<br>files.pinned_to = channel_members.channel_id<br>```<br><br>```<br>files.user = channel_members.user_id<br>``` |
| [messages](https://help.qlik.com/en-US/stitch/integrations/saas/slack#messages) | ```<br>files.channels = messages.channel_id<br>```<br><br>```<br>files.pinned_to = messages.channel_id<br>```<br><br>```<br>files.channels = messages.pinned_to<br>```<br><br>```<br>files.pinned_to = messages.pinned_to<br>```<br><br>```<br>files.id = messages.file_ids<br>```<br><br>```<br>files.source_team = messages.bot_profile.team_id<br>```<br><br>```<br>files.user_team = messages.bot_profile.team_id<br>```<br><br>```<br>files.source_team = messages.team<br>```<br><br>```<br>files.user_team = messages.team<br>```<br><br>```<br>files.source_team = messages.source_team<br>```<br><br>```<br>files.user_team = messages.source_team<br>```<br><br>```<br>files.source_team = messages.user_team<br>```<br><br>```<br>files.user_team = messages.user_team<br>```<br><br>```<br>files.user = messages.reply_users<br>```<br><br>```<br>files.user = messages.reactions.users<br>```<br><br>```<br>files.user = messages.user<br>``` |
| [remote_files](https://help.qlik.com/en-US/stitch/integrations/saas/slack#remote-files) | ```<br>files.channels = remote_files.channels<br>```<br><br>```<br>files.pinned_to = remote_files.channels<br>```<br><br>```<br>files.channels = remote_files.pinned_to<br>```<br><br>```<br>files.pinned_to = remote_files.pinned_to<br>```<br><br>```<br>files.groups = remote_files.groups<br>```<br><br>```<br>files.source_team = remote_files.source_team<br>```<br><br>```<br>files.user_team = remote_files.source_team<br>```<br><br>```<br>files.source_team = remote_files.user_team<br>```<br><br>```<br>files.user_team = remote_files.user_team<br>```<br><br>```<br>files.user = remote_files.user<br>``` |
| [threads](https://help.qlik.com/en-US/stitch/integrations/saas/slack#threads) | ```<br>files.channels = threads.channel_id<br>```<br><br>```<br>files.pinned_to = threads.channel_id<br>```<br><br>```<br>files.source_team = threads.team<br>```<br><br>```<br>files.user_team = threads.team<br>```<br><br>```<br>files.user = threads.user<br>```<br><br>```<br>files.user = threads.reply_users<br>``` |
| [user_groups](https://help.qlik.com/en-US/stitch/integrations/saas/slack#user-groups) | ```<br>files.groups = user_groups.id<br>```<br><br>```<br>files.groups = user_groups.parent_group<br>```<br><br>```<br>files.user = user_groups.members<br>```<br><br>```<br>files.user = user_groups.purpose.creator<br>```<br><br>```<br>files.user = user_groups.topic.creator<br>``` |
| [teams](https://help.qlik.com/en-US/stitch/integrations/saas/slack#teams) | ```<br>files.source_team = teams.id<br>```<br><br>```<br>files.user_team = teams.id<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/slack#users) | ```<br>files.source_team = users.team_id<br>```<br><br>```<br>files.user_team = users.team_id<br>```<br><br>```<br>files.user = users.id<br>``` |

files table schema

| **channels**<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;. |
| --- |
| **comments\_count**<br><br><br>INTEGER |
| **created**<br><br><br>DATE-TIME |
| **date\_delete**<br><br><br>DATE-TIME |
| **display\_as\_bot**<br><br><br>BOOLEAN |
| **editable**<br><br><br>BOOLEAN |
| **editor**<br><br><br>STRING |
| **external\_id**<br><br><br>STRING |
| **external\_type**<br><br><br>STRING |
| **external\_url**<br><br><br>STRING |
| **filetype**<br><br><br>STRING |
| **groups**<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;. |
| **has\_rich\_preview**<br><br><br>BOOLEAN |
| **id**<br><br><br>STRING |
| **image\_exif\_rotation**<br><br><br>INTEGER |
| **ims**<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;. |
| **is\_external**<br><br><br>BOOLEAN |
| **is\_public**<br><br><br>BOOLEAN |
| **is\_starred**<br><br><br>BOOLEAN |
| **is\_tombstoned**<br><br><br>BOOLEAN |
| **last\_editor**<br><br><br>STRING |
| **mimetype**<br><br><br>STRING |
| **mode**<br><br><br>STRING |
| **name**<br><br><br>STRING |
| **non\_owner\_editable**<br><br><br>BOOLEAN |
| **num\_stars**<br><br><br>INTEGER |
| **original\_h**<br><br><br>INTEGER |
| **original\_w**<br><br><br>INTEGER |
| **permalink**<br><br><br>STRING |
| **permalink\_public**<br><br><br>STRING |
| **pinned\_info**<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;. |
| **pinned\_to**<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;. |
| **pretty\_type**<br><br><br>STRING |
| **preview**<br><br><br>STRING |
| **public\_url\_shared**<br><br><br>BOOLEAN |
| **size**<br><br><br>INTEGER |
| **source\_team**<br><br><br>STRING |
| **state**<br><br><br>STRING |
| **thumb\_1024**<br><br><br>STRING |
| **thumb\_1024\_h**<br><br><br>INTEGER |
| **thumb\_1024\_w**<br><br><br>INTEGER |
| **thumb\_160**<br><br><br>STRING |
| **thumb\_360**<br><br><br>STRING |
| **thumb\_360\_h**<br><br><br>INTEGER |
| **thumb\_360\_w**<br><br><br>INTEGER |
| **thumb\_480**<br><br><br>STRING |
| **thumb\_480\_h**<br><br><br>INTEGER |
| **thumb\_480\_w**<br><br><br>INTEGER |
| **thumb\_64**<br><br><br>STRING |
| **thumb\_720**<br><br><br>STRING |
| **thumb\_720\_h**<br><br><br>INTEGER |
| **thumb\_720\_w**<br><br><br>INTEGER |
| **thumb\_80**<br><br><br>STRING |
| **thumb\_800**<br><br><br>STRING |
| **thumb\_800\_h**<br><br><br>INTEGER |
| **thumb\_800\_w**<br><br><br>INTEGER |
| **thumb\_960**<br><br><br>STRING |
| **thumb\_960\_h**<br><br><br>INTEGER |
| **thumb\_960\_w**<br><br><br>INTEGER |
| **thumb\_tiny**<br><br><br>STRING |
| **timestamp**<br><br><br>DATE-TIME |
| **title**<br><br><br>STRING |
| **updated**<br><br><br>DATE-TIME |
| **url\_private**<br><br><br>STRING |
| **url\_private\_download**<br><br><br>STRING |
| **user**<br><br><br>STRING |
| **user\_team**<br><br><br>STRING |
| **username**<br><br><br>STRING |

### messages

The `messages` table contains the history of messages and events in conversations in your Slack workspace.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Keys ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | channel\_id<br><br>ts |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | ts |
| **Useful links** | [Slack documentation](https://api.slack.com/types/conversation "Opens in new tab: Slack documentation")<br><br><br>[messages schema on GitHub](https://github.com/singer-io/tap-slack/blob/master/tap_slack/schemas/messages.json "Opens in new tab: messages schema on GitHub")<br><br><br>[Slack API method](https://api.slack.com/methods/conversations.history "Opens in new tab: Slack API method") |

messages table foreign keys

| Join messages with | on |
| --- | --- |
| [channels](https://help.qlik.com/en-US/stitch/integrations/saas/slack#channels) | ```<br>messages.channel_id = channels.id<br>```<br><br>```<br>messages.pinned_to = channels.id<br>```<br><br>```<br>messages.bot_profile.team_id = channels.pending_connected_team_ids<br>```<br><br>```<br>messages.team = channels.pending_connected_team_ids<br>```<br><br>```<br>messages.source_team = channels.pending_connected_team_ids<br>```<br><br>```<br>messages.user_team = channels.pending_connected_team_ids<br>```<br><br>```<br>messages.reply_users = channels.creator<br>```<br><br>```<br>messages.reactions.users = channels.creator<br>```<br><br>```<br>messages.user = channels.creator<br>```<br><br>```<br>messages.reply_users = channels.members<br>```<br><br>```<br>messages.reactions.users = channels.members<br>```<br><br>```<br>messages.user = channels.members<br>``` |
| [channel_members](https://help.qlik.com/en-US/stitch/integrations/saas/slack#channel-members) | ```<br>messages.channel_id = channel_members.channel_id<br>```<br><br>```<br>messages.pinned_to = channel_members.channel_id<br>```<br><br>```<br>messages.reply_users = channel_members.user_id<br>```<br><br>```<br>messages.reactions.users = channel_members.user_id<br>```<br><br>```<br>messages.user = channel_members.user_id<br>``` |
| [files](https://help.qlik.com/en-US/stitch/integrations/saas/slack#files) | ```<br>messages.channel_id = files.channels<br>```<br><br>```<br>messages.pinned_to = files.channels<br>```<br><br>```<br>messages.channel_id = files.pinned_to<br>```<br><br>```<br>messages.pinned_to = files.pinned_to<br>```<br><br>```<br>messages.file_ids = files.id<br>```<br><br>```<br>messages.bot_profile.team_id = files.source_team<br>```<br><br>```<br>messages.team = files.source_team<br>```<br><br>```<br>messages.source_team = files.source_team<br>```<br><br>```<br>messages.user_team = files.source_team<br>```<br><br>```<br>messages.bot_profile.team_id = files.user_team<br>```<br><br>```<br>messages.team = files.user_team<br>```<br><br>```<br>messages.source_team = files.user_team<br>```<br><br>```<br>messages.user_team = files.user_team<br>```<br><br>```<br>messages.reply_users = files.user<br>```<br><br>```<br>messages.reactions.users = files.user<br>```<br><br>```<br>messages.user = files.user<br>``` |
| [remote_files](https://help.qlik.com/en-US/stitch/integrations/saas/slack#remote-files) | ```<br>messages.channel_id = remote_files.channels<br>```<br><br>```<br>messages.pinned_to = remote_files.channels<br>```<br><br>```<br>messages.channel_id = remote_files.pinned_to<br>```<br><br>```<br>messages.pinned_to = remote_files.pinned_to<br>```<br><br>```<br>messages.bot_profile.team_id = remote_files.source_team<br>```<br><br>```<br>messages.team = remote_files.source_team<br>```<br><br>```<br>messages.source_team = remote_files.source_team<br>```<br><br>```<br>messages.user_team = remote_files.source_team<br>```<br><br>```<br>messages.bot_profile.team_id = remote_files.user_team<br>```<br><br>```<br>messages.team = remote_files.user_team<br>```<br><br>```<br>messages.source_team = remote_files.user_team<br>```<br><br>```<br>messages.user_team = remote_files.user_team<br>```<br><br>```<br>messages.reply_users = remote_files.user<br>```<br><br>```<br>messages.reactions.users = remote_files.user<br>```<br><br>```<br>messages.user = remote_files.user<br>``` |
| [threads](https://help.qlik.com/en-US/stitch/integrations/saas/slack#threads) | ```<br>messages.channel_id = threads.channel_id<br>```<br><br>```<br>messages.pinned_to = threads.channel_id<br>```<br><br>```<br>messages.bot_profile.team_id = threads.team<br>```<br><br>```<br>messages.team = threads.team<br>```<br><br>```<br>messages.source_team = threads.team<br>```<br><br>```<br>messages.user_team = threads.team<br>```<br><br>```<br>messages.reply_users = threads.user<br>```<br><br>```<br>messages.reactions.users = threads.user<br>```<br><br>```<br>messages.user = threads.user<br>```<br><br>```<br>messages.reply_users = threads.reply_users<br>```<br><br>```<br>messages.reactions.users = threads.reply_users<br>```<br><br>```<br>messages.user = threads.reply_users<br>``` |
| [teams](https://help.qlik.com/en-US/stitch/integrations/saas/slack#teams) | ```<br>messages.bot_profile.team_id = teams.id<br>```<br><br>```<br>messages.team = teams.id<br>```<br><br>```<br>messages.source_team = teams.id<br>```<br><br>```<br>messages.user_team = teams.id<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/slack#users) | ```<br>messages.bot_profile.team_id = users.team_id<br>```<br><br>```<br>messages.team = users.team_id<br>```<br><br>```<br>messages.source_team = users.team_id<br>```<br><br>```<br>messages.user_team = users.team_id<br>```<br><br>```<br>messages.reply_users = users.id<br>```<br><br>```<br>messages.reactions.users = users.id<br>```<br><br>```<br>messages.user = users.id<br>``` |
| [user_groups](https://help.qlik.com/en-US/stitch/integrations/saas/slack#user-groups) | ```<br>messages.reply_users = user_groups.members<br>```<br><br>```<br>messages.reactions.users = user_groups.members<br>```<br><br>```<br>messages.user = user_groups.members<br>```<br><br>```<br>messages.reply_users = user_groups.purpose.creator<br>```<br><br>```<br>messages.reactions.users = user_groups.purpose.creator<br>```<br><br>```<br>messages.user = user_groups.purpose.creator<br>```<br><br>```<br>messages.reply_users = user_groups.topic.creator<br>```<br><br>```<br>messages.reactions.users = user_groups.topic.creator<br>```<br><br>```<br>messages.user = user_groups.topic.creator<br>``` |

messages table schema

| **blocks**<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 blocks<br><br><table> <tr> <td> <p> <strong>								type							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| --- |
| **bot\_id**<br><br><br>STRING |
| **bot\_profile**<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 bot\_profile<br><br><table> <tr> <td> <p> <strong>								app_id							</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>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								team_id							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								updated							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> </table> |
| **channel\_id**<br><br><br>STRING |
| **client\_msg\_id**<br><br><br>STRING |
| **display\_as\_bot**<br><br><br>BOOLEAN |
| **file\_id**<br><br><br>STRING |
| **file\_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;. |
| **icons**<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 icons<br><br><table> <tr> <td> <p> <strong>								emoji							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **inviter**<br><br><br>STRING |
| **is\_delayed\_message**<br><br><br>BOOLEAN |
| **is\_intro**<br><br><br>BOOLEAN |
| **is\_starred**<br><br><br>BOOLEAN |
| **last\_read**<br><br><br>DATE-TIME |
| **latest\_reply**<br><br><br>STRING |
| **name**<br><br><br>STRING |
| **old\_name**<br><br><br>STRING |
| **parent\_user\_id**<br><br><br>STRING |
| **permalink**<br><br><br>STRING |
| **pinned\_to**<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;. |
| **purpose**<br><br><br>STRING |
| **reactions**<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 reactions<br><br><table> <tr> <td> <p> <strong>								count							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								users							</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> </table> |
| **reply\_count**<br><br><br>INTEGER |
| **reply\_users**<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;. |
| **reply\_users\_count**<br><br><br>INTEGER |
| **source\_team**<br><br><br>STRING |
| **subscribed**<br><br><br>BOOLEAN |
| **subtype**<br><br><br>STRING |
| **team**<br><br><br>STRING |
| **text**<br><br><br>STRING |
| **thread\_ts**<br><br><br>STRING |
| **topic**<br><br><br>STRING |
| **ts**<br><br><br>DATE-TIME |
| **type**<br><br><br>STRING |
| **unread\_count**<br><br><br>INTEGER |
| **upload**<br><br><br>BOOLEAN |
| **user**<br><br><br>STRING |
| **user\_team**<br><br><br>STRING |
| **username**<br><br><br>STRING |

### remote\_files

The `remote_files` table contains info about remote files added to Slack.

| **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 |
| **Useful links** | [remote_files schema on GitHub](https://github.com/singer-io/tap-slack/blob/master/tap_slack/schemas/remote_files.json "Opens in new tab: remote_files schema on GitHub")<br><br><br>[Slack API method](https://api.slack.com/methods/files.remote.list "Opens in new tab: Slack API method") |

remote\_files table foreign keys

| Join remote\_files with | on |
| --- | --- |
| [channels](https://help.qlik.com/en-US/stitch/integrations/saas/slack#channels) | ```<br>remote_files.channels = channels.id<br>```<br><br>```<br>remote_files.pinned_to = channels.id<br>```<br><br>```<br>remote_files.source_team = channels.pending_connected_team_ids<br>```<br><br>```<br>remote_files.user_team = channels.pending_connected_team_ids<br>```<br><br>```<br>remote_files.user = channels.creator<br>```<br><br>```<br>remote_files.user = channels.members<br>``` |
| [channel_members](https://help.qlik.com/en-US/stitch/integrations/saas/slack#channel-members) | ```<br>remote_files.channels = channel_members.channel_id<br>```<br><br>```<br>remote_files.pinned_to = channel_members.channel_id<br>```<br><br>```<br>remote_files.user = channel_members.user_id<br>``` |
| [files](https://help.qlik.com/en-US/stitch/integrations/saas/slack#files) | ```<br>remote_files.channels = files.channels<br>```<br><br>```<br>remote_files.pinned_to = files.channels<br>```<br><br>```<br>remote_files.channels = files.pinned_to<br>```<br><br>```<br>remote_files.pinned_to = files.pinned_to<br>```<br><br>```<br>remote_files.groups = files.groups<br>```<br><br>```<br>remote_files.source_team = files.source_team<br>```<br><br>```<br>remote_files.user_team = files.source_team<br>```<br><br>```<br>remote_files.source_team = files.user_team<br>```<br><br>```<br>remote_files.user_team = files.user_team<br>```<br><br>```<br>remote_files.user = files.user<br>``` |
| [messages](https://help.qlik.com/en-US/stitch/integrations/saas/slack#messages) | ```<br>remote_files.channels = messages.channel_id<br>```<br><br>```<br>remote_files.pinned_to = messages.channel_id<br>```<br><br>```<br>remote_files.channels = messages.pinned_to<br>```<br><br>```<br>remote_files.pinned_to = messages.pinned_to<br>```<br><br>```<br>remote_files.source_team = messages.bot_profile.team_id<br>```<br><br>```<br>remote_files.user_team = messages.bot_profile.team_id<br>```<br><br>```<br>remote_files.source_team = messages.team<br>```<br><br>```<br>remote_files.user_team = messages.team<br>```<br><br>```<br>remote_files.source_team = messages.source_team<br>```<br><br>```<br>remote_files.user_team = messages.source_team<br>```<br><br>```<br>remote_files.source_team = messages.user_team<br>```<br><br>```<br>remote_files.user_team = messages.user_team<br>```<br><br>```<br>remote_files.user = messages.reply_users<br>```<br><br>```<br>remote_files.user = messages.reactions.users<br>```<br><br>```<br>remote_files.user = messages.user<br>``` |
| [threads](https://help.qlik.com/en-US/stitch/integrations/saas/slack#threads) | ```<br>remote_files.channels = threads.channel_id<br>```<br><br>```<br>remote_files.pinned_to = threads.channel_id<br>```<br><br>```<br>remote_files.source_team = threads.team<br>```<br><br>```<br>remote_files.user_team = threads.team<br>```<br><br>```<br>remote_files.user = threads.user<br>```<br><br>```<br>remote_files.user = threads.reply_users<br>``` |
| [user_groups](https://help.qlik.com/en-US/stitch/integrations/saas/slack#user-groups) | ```<br>remote_files.groups = user_groups.id<br>```<br><br>```<br>remote_files.groups = user_groups.parent_group<br>```<br><br>```<br>remote_files.user = user_groups.members<br>```<br><br>```<br>remote_files.user = user_groups.purpose.creator<br>```<br><br>```<br>remote_files.user = user_groups.topic.creator<br>``` |
| [teams](https://help.qlik.com/en-US/stitch/integrations/saas/slack#teams) | ```<br>remote_files.source_team = teams.id<br>```<br><br>```<br>remote_files.user_team = teams.id<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/slack#users) | ```<br>remote_files.source_team = users.team_id<br>```<br><br>```<br>remote_files.user_team = users.team_id<br>```<br><br>```<br>remote_files.user = users.id<br>``` |

remote\_files table schema

| **channels**<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;. |
| --- |
| **comments\_count**<br><br><br>INTEGER |
| **created**<br><br><br>DATE-TIME |
| **date\_delete**<br><br><br>DATE-TIME |
| **display\_as\_bot**<br><br><br>BOOLEAN |
| **editable**<br><br><br>BOOLEAN |
| **editor**<br><br><br>STRING |
| **external\_id**<br><br><br>STRING |
| **external\_type**<br><br><br>STRING |
| **external\_url**<br><br><br>STRING |
| **filetype**<br><br><br>STRING |
| **groups**<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;. |
| **has\_rich\_preview**<br><br><br>BOOLEAN |
| **id**<br><br><br>STRING |
| **image\_exif\_rotation**<br><br><br>INTEGER |
| **ims**<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;. |
| **is\_external**<br><br><br>BOOLEAN |
| **is\_public**<br><br><br>BOOLEAN |
| **is\_starred**<br><br><br>BOOLEAN |
| **is\_tombstoned**<br><br><br>BOOLEAN |
| **last\_editor**<br><br><br>STRING |
| **mimetype**<br><br><br>STRING |
| **mode**<br><br><br>STRING |
| **name**<br><br><br>STRING |
| **non\_owner\_editable**<br><br><br>BOOLEAN |
| **num\_stars**<br><br><br>INTEGER |
| **original\_h**<br><br><br>INTEGER |
| **original\_w**<br><br><br>INTEGER |
| **permalink**<br><br><br>STRING |
| **permalink\_public**<br><br><br>STRING |
| **pinned\_info**<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;. |
| **pinned\_to**<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;. |
| **pretty\_type**<br><br><br>STRING |
| **preview**<br><br><br>STRING |
| **public\_url\_shared**<br><br><br>BOOLEAN |
| **size**<br><br><br>INTEGER |
| **source\_team**<br><br><br>STRING |
| **state**<br><br><br>STRING |
| **thumb\_1024**<br><br><br>STRING |
| **thumb\_1024\_h**<br><br><br>INTEGER |
| **thumb\_1024\_w**<br><br><br>INTEGER |
| **thumb\_160**<br><br><br>STRING |
| **thumb\_360**<br><br><br>STRING |
| **thumb\_360\_h**<br><br><br>INTEGER |
| **thumb\_360\_w**<br><br><br>INTEGER |
| **thumb\_480**<br><br><br>STRING |
| **thumb\_480\_h**<br><br><br>INTEGER |
| **thumb\_480\_w**<br><br><br>INTEGER |
| **thumb\_64**<br><br><br>STRING |
| **thumb\_720**<br><br><br>STRING |
| **thumb\_720\_h**<br><br><br>INTEGER |
| **thumb\_720\_w**<br><br><br>INTEGER |
| **thumb\_80**<br><br><br>STRING |
| **thumb\_800**<br><br><br>STRING |
| **thumb\_800\_h**<br><br><br>INTEGER |
| **thumb\_800\_w**<br><br><br>INTEGER |
| **thumb\_960**<br><br><br>STRING |
| **thumb\_960\_h**<br><br><br>INTEGER |
| **thumb\_960\_w**<br><br><br>INTEGER |
| **thumb\_tiny**<br><br><br>STRING |
| **timestamp**<br><br><br>DATE-TIME |
| **title**<br><br><br>STRING |
| **updated**<br><br><br>DATE-TIME |
| **url\_private**<br><br><br>STRING |
| **url\_private\_download**<br><br><br>STRING |
| **user**<br><br><br>STRING |
| **user\_team**<br><br><br>STRING |
| **username**<br><br><br>STRING |

### teams

The `teams` table contains info about teams in your Slack workspace.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Full Table |
| --- | --- |
| **Useful links** | [teams schema on GitHub](https://github.com/singer-io/tap-slack/blob/master/tap_slack/schemas/teams.json "Opens in new tab: teams schema on GitHub")<br><br><br>[Slack API method](https://api.slack.com/methods/team.info "Opens in new tab: Slack API method") |

teams table foreign keys

| Join teams with | on |
| --- | --- |
| [channels](https://help.qlik.com/en-US/stitch/integrations/saas/slack#channels) | ```<br>teams.id = channels.pending_connected_team_ids<br>``` |
| [files](https://help.qlik.com/en-US/stitch/integrations/saas/slack#files) | ```<br>teams.id = files.source_team<br>```<br><br>```<br>teams.id = files.user_team<br>``` |
| [messages](https://help.qlik.com/en-US/stitch/integrations/saas/slack#messages) | ```<br>teams.id = messages.bot_profile.team_id<br>```<br><br>```<br>teams.id = messages.team<br>```<br><br>```<br>teams.id = messages.source_team<br>```<br><br>```<br>teams.id = messages.user_team<br>``` |
| [remote_files](https://help.qlik.com/en-US/stitch/integrations/saas/slack#remote-files) | ```<br>teams.id = remote_files.source_team<br>```<br><br>```<br>teams.id = remote_files.user_team<br>``` |
| [threads](https://help.qlik.com/en-US/stitch/integrations/saas/slack#threads) | ```<br>teams.id = threads.team<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/slack#users) | ```<br>teams.id = users.team_id<br>``` |

teams table schema

| **archived**<br><br><br>BOOLEAN |
| --- |
| **avatar\_base\_url**<br><br><br>STRING |
| **created**<br><br><br>DATE-TIME |
| **date\_create**<br><br><br>DATE-TIME |
| **deleted**<br><br><br>DATE-TIME |
| **description**<br><br><br>STRING |
| **discoverable**<br><br><br>STRING |
| **domain**<br><br><br>STRING |
| **email\_domain**<br><br><br>STRING |
| **enterprise\_id**<br><br><br>STRING |
| **enterprise\_name**<br><br><br>STRING |
| **has\_compliance\_export**<br><br><br>BOOLEAN |
| **icon**<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 icon<br><br><table> <tr> <td> <p> <strong>								image_102							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								image_132							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								image_230							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								image_34							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								image_44							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								image_68							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								image_88							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								image_default							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> </table> |
| **id**<br><br><br>STRING |
| **is\_assigned**<br><br><br>BOOLEAN |
| **is\_enterprise**<br><br><br>INTEGER |
| **messages\_count**<br><br><br>INTEGER |
| **msg\_edit\_window\_mins**<br><br><br>INTEGER |
| **name**<br><br><br>STRING |
| **over\_integrations\_limit**<br><br><br>BOOLEAN |
| **over\_storage\_limit**<br><br><br>BOOLEAN |
| **plan**<br><br><br>STRING |

### threads

The `threads` table contains info about conversation threads in your Slack team.

**Note**: While this table uses Full Table, it’s not truly replicated in full during each replication job. Each time a message in a thread is updated, the entire thread and all the messages it contains will be replicated in full. This means that while only updated threads are replicated, they are replicated in full whenever they’re updated.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Full Table |
| --- | --- |
| **Primary Keys ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | channel\_id<br><br>thread\_ts |
| **Useful links** | [Slack documentation](https://api.slack.com/docs/conversations-api "Opens in new tab: Slack documentation")<br><br><br>[threads schema on GitHub](https://github.com/singer-io/tap-slack/blob/master/tap_slack/schemas/threads.json "Opens in new tab: threads schema on GitHub")<br><br><br>[Slack API method](https://api.slack.com/methods/conversations.replies "Opens in new tab: Slack API method") |

threads table foreign keys

| Join threads with | on |
| --- | --- |
| [channels](https://help.qlik.com/en-US/stitch/integrations/saas/slack#channels) | ```<br>threads.channel_id = channels.id<br>```<br><br>```<br>threads.team = channels.pending_connected_team_ids<br>```<br><br>```<br>threads.user = channels.creator<br>```<br><br>```<br>threads.reply_users = channels.creator<br>```<br><br>```<br>threads.user = channels.members<br>```<br><br>```<br>threads.reply_users = channels.members<br>``` |
| [channel_members](https://help.qlik.com/en-US/stitch/integrations/saas/slack#channel-members) | ```<br>threads.channel_id = channel_members.channel_id<br>```<br><br>```<br>threads.user = channel_members.user_id<br>```<br><br>```<br>threads.reply_users = channel_members.user_id<br>``` |
| [files](https://help.qlik.com/en-US/stitch/integrations/saas/slack#files) | ```<br>threads.channel_id = files.channels<br>```<br><br>```<br>threads.channel_id = files.pinned_to<br>```<br><br>```<br>threads.team = files.source_team<br>```<br><br>```<br>threads.team = files.user_team<br>```<br><br>```<br>threads.user = files.user<br>```<br><br>```<br>threads.reply_users = files.user<br>``` |
| [messages](https://help.qlik.com/en-US/stitch/integrations/saas/slack#messages) | ```<br>threads.channel_id = messages.channel_id<br>```<br><br>```<br>threads.channel_id = messages.pinned_to<br>```<br><br>```<br>threads.team = messages.bot_profile.team_id<br>```<br><br>```<br>threads.team = messages.team<br>```<br><br>```<br>threads.team = messages.source_team<br>```<br><br>```<br>threads.team = messages.user_team<br>```<br><br>```<br>threads.user = messages.reply_users<br>```<br><br>```<br>threads.reply_users = messages.reply_users<br>```<br><br>```<br>threads.user = messages.reactions.users<br>```<br><br>```<br>threads.reply_users = messages.reactions.users<br>```<br><br>```<br>threads.user = messages.user<br>```<br><br>```<br>threads.reply_users = messages.user<br>``` |
| [remote_files](https://help.qlik.com/en-US/stitch/integrations/saas/slack#remote-files) | ```<br>threads.channel_id = remote_files.channels<br>```<br><br>```<br>threads.channel_id = remote_files.pinned_to<br>```<br><br>```<br>threads.team = remote_files.source_team<br>```<br><br>```<br>threads.team = remote_files.user_team<br>```<br><br>```<br>threads.user = remote_files.user<br>```<br><br>```<br>threads.reply_users = remote_files.user<br>``` |
| [teams](https://help.qlik.com/en-US/stitch/integrations/saas/slack#teams) | ```<br>threads.team = teams.id<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/slack#users) | ```<br>threads.team = users.team_id<br>```<br><br>```<br>threads.user = users.id<br>```<br><br>```<br>threads.reply_users = users.id<br>``` |
| [user_groups](https://help.qlik.com/en-US/stitch/integrations/saas/slack#user-groups) | ```<br>threads.user = user_groups.members<br>```<br><br>```<br>threads.reply_users = user_groups.members<br>```<br><br>```<br>threads.user = user_groups.purpose.creator<br>```<br><br>```<br>threads.reply_users = user_groups.purpose.creator<br>```<br><br>```<br>threads.user = user_groups.topic.creator<br>```<br><br>```<br>threads.reply_users = user_groups.topic.creator<br>``` |

threads table schema

| **blocks**<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 blocks<br><br><table> <tr> <td> <p> <strong>								type							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| --- |
| **channel\_id**<br><br><br>STRING |
| **client\_msg\_id**<br><br><br>STRING |
| **latest\_reply**<br><br><br>STRING |
| **reply\_count**<br><br><br>INTEGER |
| **reply\_users**<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;. |
| **reply\_users\_count**<br><br><br>NUMBER |
| **subscribed**<br><br><br>BOOLEAN |
| **team**<br><br><br>STRING |
| **text**<br><br><br>STRING |
| **thread\_ts**<br><br><br>STRING |
| **ts**<br><br><br>DATE-TIME |
| **type**<br><br><br>STRING |
| **user**<br><br><br>STRING |

### user\_groups

The `user_groups` table contains info about user groups from your Slack team.

| **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** | [user_groups schema on GitHub](https://github.com/singer-io/tap-slack/blob/master/tap_slack/schemas/user_groups.json "Opens in new tab: user_groups schema on GitHub")<br><br><br>[Slack API method](https://api.slack.com/methods/usergroups.list "Opens in new tab: Slack API method") |

user\_groups table foreign keys

| Join user\_groups with | on |
| --- | --- |
| [files](https://help.qlik.com/en-US/stitch/integrations/saas/slack#files) | ```<br>user_groups.id = files.groups<br>```<br><br>```<br>user_groups.parent_group = files.groups<br>```<br><br>```<br>user_groups.members = files.user<br>```<br><br>```<br>user_groups.purpose.creator = files.user<br>```<br><br>```<br>user_groups.topic.creator = files.user<br>``` |
| [remote_files](https://help.qlik.com/en-US/stitch/integrations/saas/slack#remote-files) | ```<br>user_groups.id = remote_files.groups<br>```<br><br>```<br>user_groups.parent_group = remote_files.groups<br>```<br><br>```<br>user_groups.members = remote_files.user<br>```<br><br>```<br>user_groups.purpose.creator = remote_files.user<br>```<br><br>```<br>user_groups.topic.creator = remote_files.user<br>``` |
| [channel_members](https://help.qlik.com/en-US/stitch/integrations/saas/slack#channel-members) | ```<br>user_groups.members = channel_members.user_id<br>```<br><br>```<br>user_groups.purpose.creator = channel_members.user_id<br>```<br><br>```<br>user_groups.topic.creator = channel_members.user_id<br>``` |
| [channels](https://help.qlik.com/en-US/stitch/integrations/saas/slack#channels) | ```<br>user_groups.members = channels.creator<br>```<br><br>```<br>user_groups.purpose.creator = channels.creator<br>```<br><br>```<br>user_groups.topic.creator = channels.creator<br>```<br><br>```<br>user_groups.members = channels.members<br>```<br><br>```<br>user_groups.purpose.creator = channels.members<br>```<br><br>```<br>user_groups.topic.creator = channels.members<br>``` |
| [messages](https://help.qlik.com/en-US/stitch/integrations/saas/slack#messages) | ```<br>user_groups.members = messages.reply_users<br>```<br><br>```<br>user_groups.purpose.creator = messages.reply_users<br>```<br><br>```<br>user_groups.topic.creator = messages.reply_users<br>```<br><br>```<br>user_groups.members = messages.reactions.users<br>```<br><br>```<br>user_groups.purpose.creator = messages.reactions.users<br>```<br><br>```<br>user_groups.topic.creator = messages.reactions.users<br>```<br><br>```<br>user_groups.members = messages.user<br>```<br><br>```<br>user_groups.purpose.creator = messages.user<br>```<br><br>```<br>user_groups.topic.creator = messages.user<br>``` |
| [threads](https://help.qlik.com/en-US/stitch/integrations/saas/slack#threads) | ```<br>user_groups.members = threads.user<br>```<br><br>```<br>user_groups.purpose.creator = threads.user<br>```<br><br>```<br>user_groups.topic.creator = threads.user<br>```<br><br>```<br>user_groups.members = threads.reply_users<br>```<br><br>```<br>user_groups.purpose.creator = threads.reply_users<br>```<br><br>```<br>user_groups.topic.creator = threads.reply_users<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/slack#users) | ```<br>user_groups.members = users.id<br>```<br><br>```<br>user_groups.purpose.creator = users.id<br>```<br><br>```<br>user_groups.topic.creator = users.id<br>``` |

user\_groups table schema

| **created**<br><br><br>DATE-TIME |
| --- |
| **creator**<br><br><br>STRING |
| **id**<br><br><br>STRING |
| **is\_archived**<br><br><br>BOOLEAN |
| **is\_deleted**<br><br><br>BOOLEAN |
| **is\_group**<br><br><br>BOOLEAN |
| **is\_moved**<br><br><br>INTEGER |
| **is\_mpim**<br><br><br>BOOLEAN |
| **is\_open**<br><br><br>BOOLEAN |
| **is\_pending\_ext\_shared**<br><br><br>BOOLEAN |
| **is\_read\_only**<br><br><br>BOOLEAN |
| **is\_thread\_only**<br><br><br>BOOLEAN |
| **last\_read**<br><br><br>DATE-TIME |
| **members**<br><br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;. |
| **name**<br><br><br>STRING |
| **name\_normalized**<br><br><br>STRING |
| **num\_members**<br><br><br>INTEGER |
| **parent\_group**<br><br><br>STRING |
| **priority**<br><br><br>NUMBER |
| **purpose**<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 purpose<br><br><table> <tr> <td> <p> <strong>								creator							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								last_set							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								value							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **topic**<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 topic<br><br><table> <tr> <td> <p> <strong>								creator							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								last_set							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								value							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **unread\_count**<br><br><br>INTEGER |
| **unread\_count\_display**<br><br><br>INTEGER |

### users

The `users` table lists contains info about the users in your Slack team. This includes deactivated and deleted users.

| **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 |
| **Useful links** | [users schema on GitHub](https://github.com/singer-io/tap-slack/blob/master/tap_slack/schemas/users.json "Opens in new tab: users schema on GitHub")<br><br><br>[Slack API method](https://api.slack.com/methods/users.list "Opens in new tab: Slack API method") |

users table foreign keys

| Join users with | on |
| --- | --- |
| [channels](https://help.qlik.com/en-US/stitch/integrations/saas/slack#channels) | ```<br>users.team_id = channels.pending_connected_team_ids<br>```<br><br>```<br>users.id = channels.creator<br>```<br><br>```<br>users.id = channels.members<br>``` |
| [files](https://help.qlik.com/en-US/stitch/integrations/saas/slack#files) | ```<br>users.team_id = files.source_team<br>```<br><br>```<br>users.team_id = files.user_team<br>```<br><br>```<br>users.id = files.user<br>``` |
| [messages](https://help.qlik.com/en-US/stitch/integrations/saas/slack#messages) | ```<br>users.team_id = messages.bot_profile.team_id<br>```<br><br>```<br>users.team_id = messages.team<br>```<br><br>```<br>users.team_id = messages.source_team<br>```<br><br>```<br>users.team_id = messages.user_team<br>```<br><br>```<br>users.id = messages.reply_users<br>```<br><br>```<br>users.id = messages.reactions.users<br>```<br><br>```<br>users.id = messages.user<br>``` |
| [remote_files](https://help.qlik.com/en-US/stitch/integrations/saas/slack#remote-files) | ```<br>users.team_id = remote_files.source_team<br>```<br><br>```<br>users.team_id = remote_files.user_team<br>```<br><br>```<br>users.id = remote_files.user<br>``` |
| [teams](https://help.qlik.com/en-US/stitch/integrations/saas/slack#teams) | ```<br>users.team_id = teams.id<br>``` |
| [threads](https://help.qlik.com/en-US/stitch/integrations/saas/slack#threads) | ```<br>users.team_id = threads.team<br>```<br><br>```<br>users.id = threads.user<br>```<br><br>```<br>users.id = threads.reply_users<br>``` |
| [channel_members](https://help.qlik.com/en-US/stitch/integrations/saas/slack#channel-members) | ```<br>users.id = channel_members.user_id<br>``` |
| [user_groups](https://help.qlik.com/en-US/stitch/integrations/saas/slack#user-groups) | ```<br>users.id = user_groups.members<br>```<br><br>```<br>users.id = user_groups.purpose.creator<br>```<br><br>```<br>users.id = user_groups.topic.creator<br>``` |

users table schema

| **color**<br><br><br>STRING |
| --- |
| **deleted**<br><br><br>BOOLEAN |
| **has\_2fa**<br><br><br>BOOLEAN |
| **id**<br><br><br>STRING |
| **is\_admin**<br><br><br>BOOLEAN |
| **is\_app\_user**<br><br><br>BOOLEAN |
| **is\_bot**<br><br><br>BOOLEAN |
| **is\_owner**<br><br><br>BOOLEAN |
| **is\_primary\_owner**<br><br><br>BOOLEAN |
| **is\_restricted**<br><br><br>BOOLEAN |
| **is\_ultra\_restricted**<br><br><br>BOOLEAN |
| **name**<br><br><br>STRING |
| **profile**<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 profile<br><br><table> <tr> <td> <p> <strong>								email							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **real\_name**<br><br><br>STRING |
| **team\_id**<br><br><br>STRING |
| **tz**<br><br><br>STRING |
| **tz\_label**<br><br><br>STRING |
| **tz\_offset**<br><br><br>INTEGER |
| **updated**<br><br><br>DATE-TIME |