SendGrid
App · Email · 21 actions
Send emails and manage your marketing contacts in SendGrid.
Actions
| Action | What it does |
|---|---|
| Add contact to list | Add contacts to a SendGrid marketing list. |
| Check if email address bounced | See whether email to an address has bounced, and why, such as a mailbox that doesn't exist. |
| Check if email address is unsubscribed | See whether an address has unsubscribed from all your email, before you send to it. |
| Clear email address bounce | Clear a bounce so SendGrid sends to the address again, such as once a customer has fixed their mailbox. |
| Create marketing list | Create a marketing list for SendGrid contacts. |
| Create or update contact | Add a marketing contact, or update the one with this email: their name and address, and optionally the lists they're on. |
| Delete contact | Delete a marketing contact from your account and every list, such as when a customer asks to be forgotten. |
| Delete contact list | Delete a marketing list. |
| Find contact by email | Look up a marketing contact by email address, with their name, lists and custom fields. |
| Get contact | Get a marketing contact by their SendGrid ID, with their name, address, lists and custom fields. |
| Get contact list | Get a marketing list's name and how many contacts it has, optionally with up to 50 of the contacts most recently added to it. |
| Get email stats | Retrieve SendGrid email statistics for a date range. |
| List contact lists | List your SendGrid marketing lists, with each one's ID and how many contacts it has. |
| List contacts | List up to 50 of the marketing contacts most recently added, and how many contacts the account has in all. |
| List templates | List SendGrid email templates. |
| Remove contact from list | Take a contact off a marketing list, by email. |
| Rename contact list | Change a marketing list's name. |
| Resubscribe email address | Let SendGrid send email to an address again after it was unsubscribed, such as when the person asks to hear from you again. |
| Send email | Send an email through SendGrid. |
| Send template email | Send an email built from a saved SendGrid template. |
| Unsubscribe email address | Stop SendGrid sending any more email to an address, such as when a customer asks you to stop. |
Add contact to list
Add contacts to a SendGrid marketing list.
Inputs
- Email
emailtextRequired - Contact email address to add.
- List IDS
list_idslistRequired - Marketing list IDs to add the contact to.
Outputs
resultobject
Example output
{
"result": {
"job_id": "job_987"
}
}Check if email address bounced
See whether email to an address has bounced, and why, such as a mailbox that doesn't exist. SendGrid doesn't send to an address while it has a bounce.
Inputs
- Email
emailtextRequired - The email address, such as jo@example.com.
Outputs
bouncedtrue/false- true when SendGrid has a bounce for it.
bounced_atnumber- When it bounced, in seconds since 1970; 0 if no bounce.
emailtext- The address checked.
reasontext- What the receiving mail server said, blank if no bounce.
statustext- The mail server's code, such as 5.1.1.
Example output
{
"bounced": true,
"bounced_at": 1784538000,
"email": "jo@example.com",
"reason": "550 5.1.1 The email account that you tried to reach does not exist.",
"status": "5.1.1"
}Check if email address is unsubscribed
See whether an address has unsubscribed from all your email, before you send to it.
Inputs
- Email
emailtextRequired - The email address, such as jo@example.com.
Outputs
emailtext- The address.
unsubscribedtrue/false- true when SendGrid sends it no email; false when it may.
Example output
{
"email": "jo@example.com",
"unsubscribed": false
}Clear email address bounce
Clear a bounce so SendGrid sends to the address again, such as once a customer has fixed their mailbox. An address with no bounce is left alone. The key needs Full Access to Suppressions.
Inputs
- Email
emailtextRequired - The email address, such as jo@example.com.
Outputs
emailtext- The address.
removedtrue/false- true when a bounce was cleared; false when it had none.
Example output
{
"email": "jo@example.com",
"removed": true
}Create marketing list
Create a marketing list for SendGrid contacts.
Inputs
- Name
nametextRequired - List name.
Outputs
resultobject
Example output
{
"result": {
"contact_count": 0,
"id": "list_789",
"name": "My List"
}
}Create or update contact
Add a marketing contact, or update the one with this email: their name and address, and optionally the lists they're on. Only what you fill in changes. SendGrid saves it in the background, usually within a minute.
Inputs
- Email
emailtextRequired - The contact's email address, such as jo@example.com.
- First name
first_nametext - Their first name.
- Last name
last_nametext - Their last name.
- Address line 1
address_line_1text - First line of their address.
- Address line 2
address_line_2text - Second line of their address.
- City
citytext - Their city.
- State, province or region
state_province_regiontext - Their state, province or region.
- Postal code
postal_codetext - Their postal or ZIP code.
- Country
countrytext - Their country.
- List IDs
list_idslist - Lists to add them to, by ID. Leave empty to change the contact without adding them to a list.
Outputs
emailtext- The contact's email.
job_idtext- The SendGrid job saving the contact.
Example output
{
"email": "jane_doe@example.com",
"job_id": "9e1a2e4b-4d3f-4c3a-8f2a-1b2c3d4e5f60"
}Delete contact
Delete a marketing contact from your account and every list, such as when a customer asks to be forgotten. If no contact has the email, nothing changes and the step says so.
Inputs
- Email
emailtextRequired - The email address, such as jo@example.com.
Outputs
contact_idtext- The deleted contact's ID, blank when none had the email.
deletedtrue/false- true when a contact had the email and is being deleted.
job_idtext- SendGrid finishes the deletion in the background; this names that job.
Example output
{
"contact_id": "6b2fc0a9-1b14-4ff8-9b3e-4b1c4f0d5e6a",
"deleted": true,
"job_id": "0e6ff8a9-4c3f-4d2b-9a6b-1f2e3d4c5b6a"
}Delete contact list
Delete a marketing list. The contacts on it stay in your account and on any other lists.
Inputs
- List ID
list_idtextRequired - The list to delete, such as ca7a3796-e8a8-4029-9ccb-df8937940562. 'List contact lists' shows each list's ID.
Outputs
deletedtrue/false- true once it is gone.
list_idtext- The list deleted.
Example output
{
"deleted": true,
"list_id": "ca7a3796-e8a8-4029-9ccb-df8937940562"
}Find contact by email
Look up a marketing contact by email address, with their name, lists and custom fields. Says found is false, without failing, when no contact has that address.
Inputs
- Email
emailtextRequired - The contact's email address.
Outputs
resultobject
Example output
{
"result": {
"contact": {
"created_at": "2026-03-02T15:25:47Z",
"custom_fields": {},
"email": "jane_doe@example.com",
"first_name": "Jane",
"id": "asdf-Jkl-zxCvBNm",
"last_name": "Doe",
"list_ids": [
"ca7a3796-e8a8-4029-9ccb-df8937940562"
],
"updated_at": "2026-03-30T15:26:16Z"
},
"found": true
}
}Get contact
Get a marketing contact by their SendGrid ID, with their name, address, lists and custom fields. Says found is false, without failing, when no contact has that ID.
Inputs
- Contact ID
contact_idtextRequired - The contact's SendGrid ID, from 'Find contact by email', 'List contacts' or 'Get contact list'.
Outputs
contactobject- The contact, or null when not found.
foundtrue/false- Whether a contact has this ID.
Example output
{
"contact": {
"address_line_1": "12 High Street",
"address_line_2": "",
"city": "Leeds",
"country": "United Kingdom",
"created_at": "2026-03-02T15:25:47Z",
"custom_fields": {},
"email": "jane_doe@example.com",
"first_name": "Jane",
"id": "93e8a2f8-30c3-4d4e-8c1b-7c5b1e3f2a10",
"last_name": "Doe",
"list_ids": [
"ca7a3796-e8a8-4029-9ccb-df8937940562"
],
"postal_code": "LS1 4AP",
"state_province_region": "West Yorkshire",
"updated_at": "2026-03-30T15:26:16Z"
},
"found": true
}Get contact list
Get a marketing list's name and how many contacts it has, optionally with up to 50 of the contacts most recently added to it.
Inputs
- List ID
list_idtextRequired - The list, such as ca7a3796-e8a8-4029-9ccb-df8937940562. 'List contact lists' shows each list's ID.
- Include contacts
include_contactstrue/false - Turn on to include up to 50 of its newest contacts.Default:
false.
Outputs
contact_countnumber- How many contacts are on it.
contactslist- Up to 50 of its newest contacts, or empty unless Include contacts is on.
idtext- The list's ID.
nametext- The list's name.
Example output
{
"contact_count": 120,
"contacts": [
{
"address_line_1": "12 High Street",
"address_line_2": "",
"city": "Leeds",
"country": "United Kingdom",
"created_at": "2026-03-02T15:25:47Z",
"custom_fields": {},
"email": "jane_doe@example.com",
"first_name": "Jane",
"id": "93e8a2f8-30c3-4d4e-8c1b-7c5b1e3f2a10",
"last_name": "Doe",
"list_ids": [
"ca7a3796-e8a8-4029-9ccb-df8937940562"
],
"postal_code": "LS1 4AP",
"state_province_region": "West Yorkshire",
"updated_at": "2026-03-30T15:26:16Z"
}
],
"id": "ca7a3796-e8a8-4029-9ccb-df8937940562",
"name": "Customers"
}Get email stats
Retrieve SendGrid email statistics for a date range.
Inputs
- Start date
start_datetextRequired - Start date (YYYY-MM-DD).
- End date
end_datetextRequired - End date (YYYY-MM-DD).
Outputs
resultobject
Example output
{
"result": {
"stats": [
{
"date": "2024-01-01",
"stats": [
{
"metrics": {
"clicks": 10,
"delivered": 95,
"opens": 50,
"requests": 100
}
}
]
}
]
}
}List contact lists
List your SendGrid marketing lists, with each one's ID and how many contacts it has.
Inputs
- Maximum results
page_sizenumber - The most lists to return, up to 1000. Leave blank for 100.
Outputs
countnumber- How many lists.
listslist- Each marketing list.
Example output
{
"count": 1,
"lists": [
{
"contact_count": 120,
"id": "ca7a3796-e8a8-4029-9ccb-df8937940562",
"name": "Customers"
}
]
}List contacts
List up to 50 of the marketing contacts most recently added, and how many contacts the account has in all. To look one up, use 'Find contact by email'.
Inputs
None.
Outputs
contact_countnumber- How many contacts the account has in all.
contactslist- Up to 50 recently added contacts.
countnumber- How many contacts are listed here.
Example output
{
"contact_count": 1,
"contacts": [
{
"address_line_1": "12 High Street",
"address_line_2": "",
"city": "Leeds",
"country": "United Kingdom",
"created_at": "2026-03-02T15:25:47Z",
"custom_fields": {},
"email": "jane_doe@example.com",
"first_name": "Jane",
"id": "93e8a2f8-30c3-4d4e-8c1b-7c5b1e3f2a10",
"last_name": "Doe",
"list_ids": [
"ca7a3796-e8a8-4029-9ccb-df8937940562"
],
"postal_code": "LS1 4AP",
"state_province_region": "West Yorkshire",
"updated_at": "2026-03-30T15:26:16Z"
}
],
"count": 1
}List templates
List SendGrid email templates.
Inputs
None.
Outputs
resultobject
Example output
{
"result": {
"result": [
{
"id": "tmpl_123",
"name": "Welcome Email"
}
]
}
}Remove contact from list
Take a contact off a marketing list, by email. The contact stays in SendGrid and on their other lists.
Inputs
- Email
emailtextRequired - The contact's email address.
- List ID
list_idtextRequired - The ID of the marketing list, shown in the list's web address in SendGrid or returned by Create marketing list.
Outputs
resultobject
Example output
{
"result": {
"contact_id": "asdf-Jkl-zxCvBNm",
"job_id": "job_654"
}
}Rename contact list
Change a marketing list's name. Its contacts stay on it.
Inputs
- List ID
list_idtextRequired - The list, such as ca7a3796-e8a8-4029-9ccb-df8937940562. 'List contact lists' shows each list's ID.
- New name
nametextRequired - The list's new name.
Outputs
contact_countnumber- How many contacts are on it.
idtext- The list's ID.
nametext- The list's name.
Example output
{
"contact_count": 120,
"id": "ca7a3796-e8a8-4029-9ccb-df8937940562",
"name": "Customers 2026"
}Resubscribe email address
Let SendGrid send email to an address again after it was unsubscribed, such as when the person asks to hear from you again. The key needs Full Access to Suppressions.
Inputs
- Email
emailtextRequired - The email address, such as jo@example.com.
Outputs
emailtext- The address.
unsubscribedtrue/false- true when SendGrid sends it no email; false when it may.
Example output
{
"email": "jo@example.com",
"unsubscribed": false
}Send email
Send an email through SendGrid.
Inputs
- From email
from_emailtextRequired - Sender email address.
- To email
to_emailtextRequired - Recipient email address.
- Subject
subjecttextRequired - Email subject.
- Text content
text_contenttextRequired - Plain text email content.
- HTML content
html_contenttext - Optional HTML email content.
- CC
cclist - Optional CC email addresses.
- BCC
bcclist - Optional BCC email addresses.
Outputs
resultobject
Example output
{
"result": {
"status_code": 202
}
}Send template email
Send an email built from a saved SendGrid template.
Inputs
- From email
from_emailtextRequired - Sender email address.
- To email
to_emailtextRequired - Recipient email address.
- Template ID
template_idtextRequired - The ID of the SendGrid template to use.
- Template values
dynamic_dataobject - Values to fill into the template's placeholders.
Outputs
resultobject
Example output
{
"result": {
"status_code": 202
}
}Unsubscribe email address
Stop SendGrid sending any more email to an address, such as when a customer asks you to stop. The key needs Full Access to Suppressions.
Inputs
- Email
emailtextRequired - The email address, such as jo@example.com.
Outputs
emailtext- The address.
unsubscribedtrue/false- true when SendGrid sends it no email; false when it may.
Example output
{
"email": "jo@example.com",
"unsubscribed": true
}