Sendgrid is an email delivery and marketing tool that lets you build and deliver personalized experiences through their API and marketing automation flows.
This document guides you in setting up Sendgrid as a source in RudderStack. Once configured, RudderStack automatically ingests your specified Sendgrid data, which can then be routed to your RudderStack-supported data warehouse destination.
To set up Sendgrid as a source in RudderStack, follow these steps:
- Log into your RudderStack dashboard.
- Go to Sources > New source > Cloud Extract and select Sendgrid from the list of sources.
- Assign a name to your source and click on Next.
- Click on Create Credentials from Scratch. You will then see the following screen:
- Enter the following connection credentials to authenticate your Sendgrid account with RudderStack:
- Account Name: Enter your Sendgrid account name (the email you used to sign up for Sendgrid).
- API Key: Enter your Sendgrid API key by going to your Sendgrid dashboard and navigating to Settings > API Keys.
For more information on the required permissions for the API key, refer to the FAQ section below.
The following settings specify how RudderStack sends the data ingested from Sendgrid to the connected warehouse destination:
- Table prefix: RudderStack uses this prefix to create a table in your data warehouse and loads all your Sendgrid data into it.
- Schedule Settings: RudderStack gives you three options to ingest the data from Sendgrid:
- Basic: Runs the syncs at the specified time interval.
- CRON: Runs the syncs based on the user-defined CRON expression.
- Manual: You are required to run the syncs manually.
For more information on the schedule types, refer to the Common Settings guide.
Choose the Sendgrid data that you wish to ingest via RudderStack. You can either select all the data or choose specific Sendgrid data attributes as per your requirement.
Sendgrid is now configured as a source. RudderStack will start ingesting data from Sendgrid as per your specified schedule and frequency.
You can further connect this source to your data warehouse by clicking on Add Destination, as shown:
Use the Use Existing Destination option if you have an already-configured data warehouse destination in RudderStack. To configure a data warehouse destination from scratch, select the Create New Destination button.
To obtain the API key for configuring the Sendgrid Cloud Extract source, follow these steps:
- Log into your Sendgrid dashboard.
- Go to Settings > API keys.
- Click on the Create API key option, as shown:
- Enter the name of the API key under the API Key Name field. In API Key Permissions, select Restricted Access.
- Set the permissions as shown below:
- Finally, click on Create & View. Use these credentials to configure the source.
Copy the API key and store it securely. Sendgrid will not display the API key again once you click on Done.
Upon configuring the source, RudderStack first connects to your SendGrid instance and pulls all the historical data. Subsequently, RudderStack syncs the Sendgrid data based on your specified sync schedule and frequency.
Yes, it is.
RudderStack associates a table prefix for every Cloud Extract source writing to a warehouse schema. This way, multiple Cloud Extract sources can write to the same schema with different table prefixes.