SendGrid
Learn how to integrate Anedot with SendGrid Marketing Campaigns. Step-by-step guide to syncing donor data, adding contacts to lists, and managing relays.
SendGrid—also known as Twilio SendGrid—is a customer communication platform that provides powerful tools for transactional and marketing email. Anedot integrates directly with SendGrid Marketing Campaigns to help you grow your contact lists based on donor activity.
When connected, Anedot can automatically send donor information from donations to SendGrid as marketing contacts. You can optionally subscribe those contacts to specific marketing lists using List IDs.
Table of Contents
- Connecting Anedot to SendGrid
- SendGrid List IDs: Where to Find Them
- Data Relays
- Viewing Contacts in SendGrid
- Field Mapping
- Payload Data
Connecting Anedot to SendGrid
-
In your Anedot account, go to Settings > Integrations > Directory.
-
Click the blue + New Connection button.
-
Select SendGrid.
-
Select Action Pages: Choose which pages to sync (default: all Action Pages).
-
-
To exclude pages, enter a comma-separated list of Action Page IDs.
-
-
- Optionally, scope the integration to a specific Team.
-
Enter Your SendGrid API Key.
-
Generate an API key in SendGrid with Marketing Campaigns permissions only.
-
You may disable all other permissions.
-
Once the API key is displayed, copy it and paste it into the Anedot integration form.
-
-
-
Optionally, Add List IDs.
-
Click the Add button to include SendGrid List IDs.
-
These control which marketing lists donors are automatically subscribed to.
-
You can include multiple List IDs—or none at all (contacts will be added without list subscriptions).
-
-
Click Save to complete setup.
You can edit your Action Pages, Team filters, List IDs, or API credentials at any time.
SendGrid List IDs: Where to Find Them
To get a List ID in SendGrid:
-
Go to Marketing > Contacts > Lists.
-
Click the list you want.
-
The List ID is the last part of the URL in your browser.
Data Relays
-
Pages Supported:
We send relays for both financial and non-financial Action Pages. -
What’s Included:
Donor contact data only.
Custom fields are not currently relayed. -
Unsent Relay Tools:
Use the Push Unsent feature to retry failed or unsent relays with a selected date range. -
Failure Handling:
After five failed relay attempts, the integration will be marked inactive, and no further relays will occur until reactivated.
Viewing Contacts in SendGrid
To find relayed donor data:
-
Go to Marketing > Contacts.
-
You’ll see contacts in two places:
-
All Contacts: A full list of all relayed contacts.
-
Contact Lists: Shows only those added to specific lists via List IDs in your integration settings.
-
Field Mapping
The Anedot Fields match the Submission’s Raw Data and the Fields match the Request Body relay.
Anedot Field | SendGrid Field |
---|---|
address {city} | city |
address {country} | country |
lastName | last_name |
firstName | first_name |
address {postalCode} | postal_code |
address {line1} | address_line_1 |
address {line2} | address_line_2 |
address {region} | state_province_region |
list_id (SendGrid field) | list_ids |
Payload Data
Request Headers
{ }
Request Body
{
"contacts": [{
"city": "New Orleans",
"email": "admin@anedot.com",
"country": "US",
"last_name": "Dot",
"first_name": "Annie",
"postal_code": "70112",
"address_line_1": "1340 Poydras Street",
"address_line_2": "Suite 1770",
"state_province_region": "LA"
}],
"list_ids": ["Test"]
}
Response Body (Success)
{
"job_id": "01f0a230-b384-4125-aad2-c29513ae11e3"
}
Response Body (Failure)
{
"errors": [{
"field": null,
"message": "unauthorized"
}]
}
Response Status (Success)
202
Response Status (Failure)
401