Linking SendGrid as a source

Alpha release

This source is currently in alpha. The interface and available tables may change.

Enter your SendGrid API key to pull your SendGrid data into the PostHog data warehouse.

Adding a data source

  1. Go to the sources tab of the data pipeline section in PostHog.
  2. Click + New source and then click Link next to SendGrid.
  3. You need an API key from SendGrid. Create one in your SendGrid account settings under Settings → API Keys. Grant the following read access (Restricted Access) so the key can reach the data you want to sync:
    • Suppressions — bounces, blocks, invalid emails, spam reports, global unsubscribes, unsubscribe groups
    • Marketing — marketing lists
    • Template Engine — templates
  4. Back in PostHog, paste the key in the API key field and click Next.
  5. Select the tables you want to sync, set the sync method and frequency, then click Import.

Once the syncs are complete, you can start using SendGrid data in PostHog.

Available tables

TableDescriptionSync method
bouncesSuppressed addresses that hard or soft bouncedIncremental
blocksAddresses blocked from receiving mailIncremental
invalid_emailsAddresses rejected as invalidIncremental
spam_reportsRecipients who marked your mail as spamIncremental
global_unsubscribesGlobally unsubscribed addressesIncremental
unsubscribe_groupsUnsubscribe (suppression) groupsFull refresh
marketing_listsMarketing contact listsFull refresh
templatesEmail templates (legacy and dynamic)Full refresh

Incremental tables sync only new or updated records on each run. Full refresh tables reload all data on each sync.

Configuration

OptionTypeRequired
API keypasswordYes

Supported tables

TableDescriptionSync methodIncremental fieldPrimary key
bounces

Email addresses that bounced — the receiving server rejected the message.

Incremental, Full refreshcreated
blocks

Email addresses blocked due to temporary delivery issues such as a full mailbox or server outage.

Incremental, Full refreshcreated
invalid_emails

Email addresses that are invalid or malformed and cannot receive mail.

Incremental, Full refreshcreated
spam_reports

Email addresses of recipients who marked your mail as spam.

Incremental, Full refreshcreated
global_unsubscribes

Email addresses on the global unsubscribe list, suppressed from all future mail.

Incremental, Full refreshcreated
unsubscribe_groups

Suppression (unsubscribe) groups used to let recipients opt out of specific categories of mail.

Full refresh
marketing_lists

Marketing contact lists used to segment recipients for campaigns.

Full refresh
templates

Email templates (legacy and dynamic) used to compose messages.

Full refresh

Community questions

Was this page useful?

Questions about this page? or post a community question.