Send data to Sendgrid

Last updated:

|Edit this page

Send person data from PostHog into Sendgrid. You can also send person properties to custom fields in Sendgrid.

Requirements

Using this requires either PostHog Cloud with the data pipelines add-on, or a self-hosted PostHog instance running a recent version of the Docker image.

You'll also need access to the relevant Sendgrid account.

Installation

  1. In PostHog, click the "Data pipeline" tab in the left sidebar.
  2. Click the 'Destinations' tab.
  3. Search for 'Sendgrid' and select the destination.
  4. Add your Sendgrid API Key at the configuration step.
  5. Press 'Create & Enable' and watch your 'Contacts' list get populated in Sendgrid!

Configuration

OptionDescription
Sendgrid API Key
Type: string
Required: True
See https://app.sendgrid.com/settings/api_keys
The email of the user
Type: string
Required: True
Reserved fields
Type: dictionary
Required: True
The following field names are allowed: address_line_1, address_line_2, alternate_emails, anonymous_id, city, country, email, external_id, facebook, first_name, last_name, phone_number_id, postal_code, state_province_region, unique_name, whatsapp.
Custom fields
Type: dictionary
Required: False
Configure custom fields in SendGrid before using them here: https://mc.sendgrid.com/custom-fields

FAQ

Is the source code for this destination available?

PostHog is open-source and so are all the destination on the platform. The source code is available on GitHub.

Who maintains this?

This is maintained by PostHog. If you have issues with it not functioning as intended, please let us know!

What if I have feedback on this destination?

We love feature requests and feedback. Please tell us what you think.

What if my question isn't answered above?

We love answering questions. Ask us anything via our community forum.

Questions?

Was this page useful?

Next article

Send data to Zapier

Trigger Zaps in Zapier based on PostHog events. Requirements Using this requires either PostHog Cloud, or a self-hosted PostHog instance running a recent version of the docker image. You'll also need access to the relevant Zapier account. Installation In PostHog, click the " Data pipeline " tab in the left sidebar. Click the 'Destinations' tab. Search for 'Zapier' and select the destination. Add your Zapier webhook URL at the configuration step. Press 'Create & Enable' and watch your 'Zaps' get…

Read next article