# SendGrid Core (v1)

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

## SendGrid Core integration summary

Stitch’s SendGrid Core integration replicates data using the [SendGrid v3 API](https://docs.sendgrid.com/api-reference/how-to-use-the-sendgrid-v3-api). Refer to the [Schema](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#schema) section for a list of objects available for replication.

## SendGrid Core feature snapshot

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

| **STITCH** |  |  |  |
| --- | --- | --- | --- |
| **[Release status](https://help.qlik.com/en-US/stitch/integrations/identify-an-integration-version)** | Released on June 27, 2018 | **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-sendgrid](https://github.com/singer-io/tap-sendgrid) |  |  |
| **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 SendGrid Core

### SendGrid Core setup requirements

To set up SendGrid Core in Stitch, you need:

* **Access to the objects you want to replicate from SendGrid.** This is required to grant the required permissions to the API key Stitch uses to connect to your SendGrid account.

  For example: If you want to replicate campaign data, you need to be able to access campaigns in your SendGrid account.

### Step 1: Create a SendGrid general API key for Stitch

![](https://help.qlik.com/en-US/stitch/images/integrations/sendgrid-core-api-key.png)

**Note:** You can’t assign an API key greater permissions than you currently have in SendGrid.

1. Sign into your SendGrid account.
2. On the dashboard page, click **Settings &gt; API Keys**.
3. Click **Create API Key**.
4. In the **API Key Name** field, enter a name for the key. For example: `Stitch API key`
5. In the **API Key Permissions** section, select **Restricted Access**.
6. In the **Access Details** section, enable the following:
   * **Email Activity** - Read Access
   * **Marketing Campaigns** - Full Access (**Note**: SendGrid doesn’t currently provide a read-only level for this object.)
   * **Suppressions** - Read Access
   * **Template Engine** - Read Access
   * **Tracking** - Read Access
7. Click **Create & View**.
8. The API key will display. **Copy the key before closing the page**, as SendGrid won’t display it again.

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

5. In the **SendGrid API Key** field, paste your SendGrid API key.

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

The Sync Historical Data setting defines the starting date for your SendGrid Core 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 SendGrid Core’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.

SendGrid Core 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.

### Initial and historical replication jobs

After you finish setting up SendGrid Core, 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.

## SendGrid Core 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 SendGrid Core 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.

### blocks

The `blocks` table contains info about the email addresses currently on your blocks list. There are several causes for blocked emails: A mail server IP address being on an ISP blacklist, blocked by an ISP, or if the receiving server flags the message content.

| **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)** | email |
| **Useful links** | [blocks schema on GitHub](https://github.com/singer-io/tap-sendgrid/blob/master/tap_sendgrid/schemas/blocks.json "Opens in new tab: blocks schema on GitHub")<br><br><br>[SendGrid Core API method](https://sendgrid.com/docs/API_Reference/Web_API_v3/blocks.html#List-all-blocks-GET "Opens in new tab: SendGrid Core API method") |

blocks table foreign keys

| Join blocks with | on |
| --- | --- |
| [bounces](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#bounces) | ```<br>blocks.email = bounces.email<br>``` |
| [contacts](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#contacts) | ```<br>blocks.email = contacts.email<br>``` |
| [groups_members](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#groups-members) | ```<br>blocks.email = groups_members.email<br>``` |
| [invalids](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#invalids) | ```<br>blocks.email = invalids.email<br>``` |
| [lists_members](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#lists-members) | ```<br>blocks.email = lists_members.email<br>``` |
| [segments_members](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#segments-members) | ```<br>blocks.email = segments_members.email<br>``` |
| [spam_reports](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#spam-reports) | ```<br>blocks.email = spam_reports.email<br>``` |

blocks table schema

| **created**<br><br><br>INTEGER |
| --- |
| **email**<br><br><br>STRING |
| **reason**<br><br><br>STRING |
| **status**<br><br><br>STRING |

### bounces

The `bounces` table contains info about bounced emails. A bounced email is when the message is undeliverable and returned to the server that sent it.

| **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)** | email |
| **Useful links** | [bounces schema on GitHub](https://github.com/singer-io/tap-sendgrid/blob/master/tap_sendgrid/schemas/bounces.json "Opens in new tab: bounces schema on GitHub")<br><br><br>[SendGrid Core API method](https://sendgrid.com/docs/API_Reference/Web_API_v3/bounces.html#List-all-bounces-GET "Opens in new tab: SendGrid Core API method") |

bounces table foreign keys

| Join bounces with | on |
| --- | --- |
| [blocks](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#blocks) | ```<br>bounces.email = blocks.email<br>``` |
| [contacts](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#contacts) | ```<br>bounces.email = contacts.email<br>``` |
| [groups_members](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#groups-members) | ```<br>bounces.email = groups_members.email<br>``` |
| [invalids](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#invalids) | ```<br>bounces.email = invalids.email<br>``` |
| [lists_members](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#lists-members) | ```<br>bounces.email = lists_members.email<br>``` |
| [segments_members](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#segments-members) | ```<br>bounces.email = segments_members.email<br>``` |
| [spam_reports](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#spam-reports) | ```<br>bounces.email = spam_reports.email<br>``` |

bounces table schema

| **created**<br><br><br>INTEGER |
| --- |
| **email**<br><br><br>STRING |
| **reason**<br><br><br>STRING |
| **status**<br><br><br>STRING |

### campaigns

| **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** | [campaigns schema on GitHub](https://github.com/singer-io/tap-sendgrid/blob/master/tap_sendgrid/schemas/campaigns.json "Opens in new tab: campaigns schema on GitHub") |

campaigns table foreign keys

| Join campaigns with | on |
| --- | --- |
| [lists_all](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#lists-all) | ```<br>campaigns.list_ids = lists_all.id<br>``` |
| [segments_all](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#segments-all) | ```<br>campaigns.segment_ids = segments_all.id<br>``` |
| [segments_members](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#segments-members) | ```<br>campaigns.segment_ids = segments_members.segment_id<br>``` |
| [groups_members](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#groups-members) | ```<br>campaigns.suppression_group_id = groups_members.group_id<br>``` |

campaigns table schema

| **categories**<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;. |
| --- |
| **custom\_unsubscribe\_url**<br><br><br>STRING |
| **html\_content**<br><br><br>STRING |
| **id**<br><br><br>INTEGER |
| **ip\_pool**<br><br><br>STRING |
| **list\_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;. |
| **plain\_content**<br><br><br>STRING |
| **segment\_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;. |
| **sender\_id**<br><br><br>INTEGER |
| **status**<br><br><br>STRING |
| **subject**<br><br><br>STRING |
| **suppression\_group\_id**<br><br><br>INTEGER |
| **title**<br><br><br>STRING |

### contacts

The `contacts` table contains info about the contacts in your SendGrid account.

#### Contact custom fields

Stitch’s SendGrid Core integration will replicate any custom fields associated with contact records.

| **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 |
| **Useful links** | [contacts schema on GitHub](https://github.com/singer-io/tap-sendgrid/blob/master/tap_sendgrid/schemas/contacts.json "Opens in new tab: contacts schema on GitHub")<br><br><br>[SendGrid Core API method](https://sendgrid.com/docs/API_Reference/Web_API_v3/Marketing_Campaigns/contactdb.html#Get-Recipients-Matching-Search-Criteria-GET "Opens in new tab: SendGrid Core API method") |

contacts table foreign keys

| Join contacts with | on |
| --- | --- |
| [blocks](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#blocks) | ```<br>contacts.email = blocks.email<br>``` |
| [bounces](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#bounces) | ```<br>contacts.email = bounces.email<br>``` |
| [groups_members](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#groups-members) | ```<br>contacts.email = groups_members.email<br>``` |
| [invalids](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#invalids) | ```<br>contacts.email = invalids.email<br>``` |
| [lists_members](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#lists-members) | ```<br>contacts.email = lists_members.email<br>``` |
| [segments_members](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#segments-members) | ```<br>contacts.email = segments_members.email<br>``` |
| [spam_reports](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#spam-reports) | ```<br>contacts.email = spam_reports.email<br>``` |

contacts table schema

| **created\_at**<br><br><br>INTEGER |
| --- |
| **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;. |
| **email**<br><br><br>STRING |
| **first\_name**<br><br><br>STRING |
| **id**<br><br><br>STRING |
| **last\_clicked**<br><br><br>INTEGER |
| **last\_emailed**<br><br><br>INTEGER |
| **last\_name**<br><br><br>STRING |
| **last\_opened**<br><br><br>INTEGER |
| **updated\_at**<br><br><br>INTEGER |

### global\_suppressions

The `global_suppressions` table contains info about global suppressions, or global unsubscribes. Recipients who are globally suppressed will be removed from any email you send.

| **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)** | email |
| **Useful links** | [global_suppressions schema on GitHub](https://github.com/singer-io/tap-sendgrid/blob/master/tap_sendgrid/schemas/global_suppressions.json "Opens in new tab: global_suppressions schema on GitHub")<br><br><br>[SendGrid Core API method](https://sendgrid.com/docs/API_Reference/Web_API_v3/Suppression_Management/global_suppressions.html#-Global-Unsubscribes "Opens in new tab: SendGrid Core API method") |

global\_suppressions table schema

| **created**<br><br><br>INTEGER |
| --- |
| **email**<br><br><br>STRING |

### groups\_all

The `groups_all` table contains info about the groups in your SendGrid account. Groups are specific types of email you want your recipients to be able to unsubscribe from or subscribe to. For example: Newsletters, Invoices, Alerts, etc.

| **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** | [groups_all schema on GitHub](https://github.com/singer-io/tap-sendgrid/blob/master/tap_sendgrid/schemas/groups_all.json "Opens in new tab: groups_all schema on GitHub")<br><br><br>[SendGrid Core API method](https://sendgrid.com/docs/API_Reference/Web_API_v3/Suppression_Management/groups.html#-GET "Opens in new tab: SendGrid Core API method") |

groups\_all table schema

| **description**<br><br><br>STRING |
| --- |
| **id**<br><br><br>INTEGER |
| **is\_default**<br><br><br>BOOLEAN |
| **last\_email\_sent\_at**<br><br><br>INTEGER |
| **name**<br><br><br>STRING |
| **unsubscribes**<br><br><br>INTEGER |

### groups\_members

The `groups_members` table contains a list of `email` and `group_id` pairs, allowing you to identify recipients and the groups they are members of.

| **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)** | email |
| **Useful links** | [groups_members schema on GitHub](https://github.com/singer-io/tap-sendgrid/blob/master/tap_sendgrid/schemas/groups_members.json "Opens in new tab: groups_members schema on GitHub")<br><br><br>[SendGrid Core API method](https://sendgrid.com/docs/API_Reference/Web_API_v3/Suppression_Management/suppressions.html#-GET "Opens in new tab: SendGrid Core API method") |

groups\_members table foreign keys

| Join groups\_members with | on |
| --- | --- |
| [blocks](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#blocks) | ```<br>groups_members.email = blocks.email<br>``` |
| [bounces](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#bounces) | ```<br>groups_members.email = bounces.email<br>``` |
| [contacts](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#contacts) | ```<br>groups_members.email = contacts.email<br>``` |
| [invalids](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#invalids) | ```<br>groups_members.email = invalids.email<br>``` |
| [lists_members](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#lists-members) | ```<br>groups_members.email = lists_members.email<br>``` |
| [segments_members](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#segments-members) | ```<br>groups_members.email = segments_members.email<br>``` |
| [spam_reports](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#spam-reports) | ```<br>groups_members.email = spam_reports.email<br>``` |
| [campaigns](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#campaigns) | ```<br>groups_members.group_id = campaigns.suppression_group_id<br>``` |

groups\_members table schema

| **email**<br><br><br>STRING |
| --- |
| **group\_id**<br><br><br>INTEGER |

### invalids

| **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)** | email |
| **Useful links** | [invalids schema on GitHub](https://github.com/singer-io/tap-sendgrid/blob/master/tap_sendgrid/schemas/invalids.json "Opens in new tab: invalids schema on GitHub") |

invalids table foreign keys

| Join invalids with | on |
| --- | --- |
| [blocks](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#blocks) | ```<br>invalids.email = blocks.email<br>``` |
| [bounces](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#bounces) | ```<br>invalids.email = bounces.email<br>``` |
| [contacts](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#contacts) | ```<br>invalids.email = contacts.email<br>``` |
| [groups_members](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#groups-members) | ```<br>invalids.email = groups_members.email<br>``` |
| [lists_members](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#lists-members) | ```<br>invalids.email = lists_members.email<br>``` |
| [segments_members](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#segments-members) | ```<br>invalids.email = segments_members.email<br>``` |
| [spam_reports](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#spam-reports) | ```<br>invalids.email = spam_reports.email<br>``` |

invalids table schema

| **created**<br><br><br>INTEGER |
| --- |
| **email**<br><br><br>STRING |
| **reason**<br><br><br>STRING |

### lists\_all

| **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** | [lists_all schema on GitHub](https://github.com/singer-io/tap-sendgrid/blob/master/tap_sendgrid/schemas/lists_all.json "Opens in new tab: lists_all schema on GitHub") |

lists\_all table foreign keys

| Join lists\_all with | on |
| --- | --- |
| [campaigns](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#campaigns) | ```<br>lists_all.id = campaigns.list_ids<br>``` |

lists\_all table schema

| **id**<br><br><br>INTEGER |
| --- |
| **name**<br><br><br>STRING |
| **recipient\_count**<br><br><br>INTEGER |

### lists\_members

| **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** | [lists_members schema on GitHub](https://github.com/singer-io/tap-sendgrid/blob/master/tap_sendgrid/schemas/lists_members.json "Opens in new tab: lists_members schema on GitHub") |

lists\_members table foreign keys

| Join lists\_members with | on |
| --- | --- |
| [blocks](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#blocks) | ```<br>lists_members.email = blocks.email<br>``` |
| [bounces](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#bounces) | ```<br>lists_members.email = bounces.email<br>``` |
| [contacts](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#contacts) | ```<br>lists_members.email = contacts.email<br>``` |
| [groups_members](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#groups-members) | ```<br>lists_members.email = groups_members.email<br>``` |
| [invalids](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#invalids) | ```<br>lists_members.email = invalids.email<br>``` |
| [segments_members](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#segments-members) | ```<br>lists_members.email = segments_members.email<br>``` |
| [spam_reports](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#spam-reports) | ```<br>lists_members.email = spam_reports.email<br>``` |

lists\_members table schema

| **created\_at**<br><br><br>INTEGER |
| --- |
| **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;. |
| **email**<br><br><br>STRING |
| **first\_name**<br><br><br>STRING |
| **id**<br><br><br>STRING |
| **last\_clicked**<br><br><br>INTEGER |
| **last\_emailed**<br><br><br>INTEGER |
| **last\_name**<br><br><br>STRING |
| **last\_opened**<br><br><br>INTEGER |
| **list\_id**<br><br><br>INTEGER |
| **updated\_at**<br><br><br>INTEGER |

### segments\_all

| **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** | [segments_all schema on GitHub](https://github.com/singer-io/tap-sendgrid/blob/master/tap_sendgrid/schemas/segments_all.json "Opens in new tab: segments_all schema on GitHub") |

segments\_all table foreign keys

| Join segments\_all with | on |
| --- | --- |
| [campaigns](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#campaigns) | ```<br>segments_all.id = campaigns.segment_ids<br>``` |
| [segments_members](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#segments-members) | ```<br>segments_all.id = segments_members.segment_id<br>``` |

segments\_all table schema

| **conditions**<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 |
| **name**<br><br><br>STRING |
| **recipient\_count**<br><br><br>INTEGER |

### segments\_members

| **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 |
| **Useful links** | [segments_members schema on GitHub](https://github.com/singer-io/tap-sendgrid/blob/master/tap_sendgrid/schemas/segments_members.json "Opens in new tab: segments_members schema on GitHub") |

segments\_members table foreign keys

| Join segments\_members with | on |
| --- | --- |
| [blocks](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#blocks) | ```<br>segments_members.email = blocks.email<br>``` |
| [bounces](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#bounces) | ```<br>segments_members.email = bounces.email<br>``` |
| [contacts](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#contacts) | ```<br>segments_members.email = contacts.email<br>``` |
| [groups_members](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#groups-members) | ```<br>segments_members.email = groups_members.email<br>``` |
| [invalids](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#invalids) | ```<br>segments_members.email = invalids.email<br>``` |
| [lists_members](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#lists-members) | ```<br>segments_members.email = lists_members.email<br>``` |
| [spam_reports](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#spam-reports) | ```<br>segments_members.email = spam_reports.email<br>``` |
| [segments_all](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#segments-all) | ```<br>segments_members.segment_id = segments_all.id<br>``` |
| [campaigns](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#campaigns) | ```<br>segments_members.segment_id = campaigns.segment_ids<br>``` |

segments\_members table schema

| **created\_at**<br><br><br>INTEGER |
| --- |
| **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;. |
| **email**<br><br><br>STRING |
| **first\_name**<br><br><br>STRING |
| **id**<br><br><br>STRING |
| **last\_clicked**<br><br><br>INTEGER |
| **last\_emailed**<br><br><br>INTEGER |
| **last\_name**<br><br><br>STRING |
| **last\_opened**<br><br><br>INTEGER |
| **segment\_id**<br><br><br>INTEGER |
| **updated\_at**<br><br><br>INTEGER |

### spam\_reports

| **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)** | email |
| **Useful links** | [spam_reports schema on GitHub](https://github.com/singer-io/tap-sendgrid/blob/master/tap_sendgrid/schemas/spam_reports.json "Opens in new tab: spam_reports schema on GitHub") |

spam\_reports table foreign keys

| Join spam\_reports with | on |
| --- | --- |
| [blocks](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#blocks) | ```<br>spam_reports.email = blocks.email<br>``` |
| [bounces](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#bounces) | ```<br>spam_reports.email = bounces.email<br>``` |
| [contacts](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#contacts) | ```<br>spam_reports.email = contacts.email<br>``` |
| [groups_members](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#groups-members) | ```<br>spam_reports.email = groups_members.email<br>``` |
| [invalids](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#invalids) | ```<br>spam_reports.email = invalids.email<br>``` |
| [lists_members](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#lists-members) | ```<br>spam_reports.email = lists_members.email<br>``` |
| [segments_members](https://help.qlik.com/en-US/stitch/integrations/saas/sendgrid-core#segments-members) | ```<br>spam_reports.email = segments_members.email<br>``` |

spam\_reports table schema

| **created**<br><br><br>INTEGER |
| --- |
| **email**<br><br><br>STRING |
| **status**<br><br><br>STRING |

### templates\_all

| **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** | [templates_all schema on GitHub](https://github.com/singer-io/tap-sendgrid/blob/master/tap_sendgrid/schemas/templates_all.json "Opens in new tab: templates_all schema on GitHub") |

templates\_all table schema

| **id**<br><br><br>STRING |
| --- |
| **name**<br><br><br>STRING |
| **versions**<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;. |