SendGrid

Send emails and manage contacts, lists, and templates with SendGrid

Configuration

Send Mail

Operation
Send Mail
SendGrid API Key*
••••••••
From Email*
sender@yourdomain.com
From Name
Sender Name
To Email*
recipient@example.com
To Name
Recipient Name
Subject
Email subject (required unless using template)
Content
Email body content (required unless using template)
Content Type
Plain Text
CC
cc@example.com
BCC
bcc@example.com
Reply To
replyto@example.com
Reply To Name
Reply To Name
Template ID
SendGrid template ID
Dynamic Template Data
json
{"name": "John", "order_id": "12345"}
Attachments
Upload files to attach
Attachments
Reference files from previous blocks
Send Mail (sendgrid_send_mail)

Send an email using SendGrid API

Input
ParameterTypeRequiredDescription
apiKeystringYesSendGrid API key
fromstringYesSender email address (must be verified in SendGrid)
fromNamestringNoSender name
tostringYesRecipient email address
toNamestringNoRecipient name
subjectstringNoEmail subject (required unless using a template with pre-defined subject)
contentstringNoEmail body content (required unless using a template with pre-defined content)
contentTypestringNoContent type (text/plain or text/html)
ccstringNoCC email address
bccstringNoBCC email address
replyTostringNoReply-to email address
replyToNamestringNoReply-to name
attachmentsfile[]NoFiles to attach to the email
templateIdstringNoSendGrid template ID to use
dynamicTemplateDatajsonNoJSON object of dynamic template data
Output
ParameterTypeDescription
successbooleanWhether the email was sent successfully
messageIdstringSendGrid message ID
tostringRecipient email address
subjectstringEmail subject

Add Contact

Operation
Add Contact
SendGrid API Key*
••••••••
Email*
contact@example.com
First Name
John
Last Name
Doe
Custom Fields
json
{"custom_field_1": "value1"}
List IDs
Comma-separated list IDs
Add Contact (sendgrid_add_contact)

Add a new contact to SendGrid

Input
ParameterTypeRequiredDescription
apiKeystringYesSendGrid API key
emailstringYesContact email address
firstNamestringNoContact first name
lastNamestringNoContact last name
customFieldsjsonNoJSON object of custom field key-value pairs (use field IDs like e1_T, e2_N, e3_D, not field names)
listIdsstringNoComma-separated list IDs to add the contact to
Output
ParameterTypeDescription
jobIdstringJob ID for tracking the async contact creation
emailstringContact email address
firstNamestringContact first name
lastNamestringContact last name
messagestringStatus message

Get Contact

Operation
Get Contact
SendGrid API Key*
••••••••
Contact ID*
Contact ID
Get Contact (sendgrid_get_contact)

Get a specific contact by ID from SendGrid

Input
ParameterTypeRequiredDescription
apiKeystringYesSendGrid API key
contactIdstringYesContact ID
Output
ParameterTypeDescription
idstringContact ID
emailstringContact email address
firstNamestringContact first name
lastNamestringContact last name
createdAtstringCreation timestamp
updatedAtstringLast update timestamp
listIdsjsonArray of list IDs the contact belongs to
customFieldsjsonCustom field values

Search Contacts

Operation
Search Contacts
SendGrid API Key*
••••••••
Search Query*
email LIKE '%example.com%'
Search Contacts (sendgrid_search_contacts)

Search for contacts in SendGrid using a query

Input
ParameterTypeRequiredDescription
apiKeystringYesSendGrid API key
querystringYesSearch query (e.g., "email LIKE '%example.com%' AND CONTAINS(list_ids, 'list-id')")
Output
ParameterTypeDescription
contactsjsonArray of matching contacts
contactCountnumberTotal number of contacts found

Delete Contacts

Operation
Delete Contacts
SendGrid API Key*
••••••••
Contact IDs*
Comma-separated contact IDs
Delete Contacts (sendgrid_delete_contacts)

Delete one or more contacts from SendGrid

Input
ParameterTypeRequiredDescription
apiKeystringYesSendGrid API key
contactIdsstringYesComma-separated contact IDs to delete
Output
ParameterTypeDescription
jobIdstringJob ID for the deletion request

Create List

Operation
Create List
SendGrid API Key*
••••••••
List Name*
List name
Create List (sendgrid_create_list)

Create a new contact list in SendGrid

Input
ParameterTypeRequiredDescription
apiKeystringYesSendGrid API key
namestringYesList name
Output
ParameterTypeDescription
idstringList ID
namestringList name
contactCountnumberNumber of contacts in the list

Get List

Operation
Get List
SendGrid API Key*
••••••••
List ID*
List ID
Get List (sendgrid_get_list)

Get a specific list by ID from SendGrid

Input
ParameterTypeRequiredDescription
apiKeystringYesSendGrid API key
listIdstringYesList ID
Output
ParameterTypeDescription
idstringList ID
namestringList name
contactCountnumberNumber of contacts in the list

List All Lists

Operation
List All Lists
SendGrid API Key*
••••••••
Page Size
100
List All Lists (sendgrid_list_all_lists)

Get all contact lists from SendGrid

Input
ParameterTypeRequiredDescription
apiKeystringYesSendGrid API key
pageSizenumberNoNumber of lists to return per page (default: 100)
Output
ParameterTypeDescription
listsjsonArray of lists

Delete List

Operation
Delete List
SendGrid API Key*
••••••••
List ID*
List ID
Delete List (sendgrid_delete_list)

Delete a contact list from SendGrid

Input
ParameterTypeRequiredDescription
apiKeystringYesSendGrid API key
listIdstringYesList ID to delete
Output
ParameterTypeDescription
messagestringSuccess message

Add Contacts to List

Operation
Add Contacts to List
SendGrid API Key*
••••••••
Contacts (JSON Array)*
json
[{"email": "user@example.com", "first_name": "John"}]
List ID*
List ID
Add Contacts to List (sendgrid_add_contacts_to_list)

Add or update contacts and assign them to a list in SendGrid (uses PUT /v3/marketing/contacts)

Input
ParameterTypeRequiredDescription
apiKeystringYesSendGrid API key
listIdstringYesList ID to add contacts to
contactsjsonYesJSON array of contact objects. Each contact must have at least: email (or phone_number_id/external_id/anonymous_id). Example: [{"email": "user@example.com", "first_name": "John"}]
Output
ParameterTypeDescription
jobIdstringJob ID for tracking the async operation
messagestringStatus message

Remove Contacts from List

Operation
Remove Contacts from List
SendGrid API Key*
••••••••
Contact IDs*
Comma-separated contact IDs
List ID*
List ID
Remove Contacts from List (sendgrid_remove_contacts_from_list)

Remove contacts from a specific list in SendGrid

Input
ParameterTypeRequiredDescription
apiKeystringYesSendGrid API key
listIdstringYesList ID
contactIdsstringYesComma-separated contact IDs to remove from the list
Output
ParameterTypeDescription
jobIdstringJob ID for the request

Create Template

Operation
Create Template
SendGrid API Key*
••••••••
Template Name*
Template name
Template Generation
Dynamic
Create Template (sendgrid_create_template)

Create a new email template in SendGrid

Input
ParameterTypeRequiredDescription
apiKeystringYesSendGrid API key
namestringYesTemplate name
generationstringNoTemplate generation type (legacy or dynamic, default: dynamic)
Output
ParameterTypeDescription
idstringTemplate ID
namestringTemplate name
generationstringTemplate generation
updatedAtstringLast update timestamp
versionsjsonArray of template versions

Get Template

Operation
Get Template
SendGrid API Key*
••••••••
Template ID*
Template ID
Get Template (sendgrid_get_template)

Get a specific template by ID from SendGrid

Input
ParameterTypeRequiredDescription
apiKeystringYesSendGrid API key
templateIdstringYesTemplate ID
Output
ParameterTypeDescription
idstringTemplate ID
namestringTemplate name
generationstringTemplate generation
updatedAtstringLast update timestamp
versionsjsonArray of template versions

List Templates

Operation
List Templates
SendGrid API Key*
••••••••
Filter by Generation
legacy, dynamic, or both
Page Size
20
List Templates (sendgrid_list_templates)

Get all email templates from SendGrid

Input
ParameterTypeRequiredDescription
apiKeystringYesSendGrid API key
generationsstringNoFilter by generation (legacy, dynamic, or both)
pageSizenumberNoNumber of templates to return per page (default: 20)
Output
ParameterTypeDescription
templatesjsonArray of templates

Delete Template

Operation
Delete Template
SendGrid API Key*
••••••••
Template ID*
Template ID
Delete Template (sendgrid_delete_template)

Delete an email template from SendGrid

Input
ParameterTypeRequiredDescription
apiKeystringYesSendGrid API key
templateIdstringYesTemplate ID to delete
Output (block-level contract)
ParameterTypeDescription
successbooleanOperation success status
messagestringStatus or success message
messageIdstringEmail message ID (send_mail)
tostringRecipient email address (send_mail)
subjectstringEmail subject (send_mail, create_template_version)
idstringResource ID
jobIdstringJob ID for async operations
emailstringContact email address
firstNamestringContact first name
lastNamestringContact last name
createdAtstringCreation timestamp
updatedAtstringLast update timestamp
listIdsjsonArray of list IDs the contact belongs to
customFieldsjsonCustom field values
contactsjsonArray of contacts
contactCountnumberNumber of contacts
listsjsonArray of lists
namestringResource name
templatesjsonArray of templates
generationstringTemplate generation
versionsjsonArray of template versions
templateIdstringTemplate ID
activebooleanWhether template version is active
htmlContentstringHTML content
plainContentstringPlain text content

Create Template Version

Operation
Create Template Version
SendGrid API Key*
••••••••
Template ID*
Template ID
Version Name*
Version name
Template Subject*
Email subject
HTML Content
html
<html><body>{{name}}</body></html>
Plain Text Content
Plain text content
Active
Yes
Create Template Version (sendgrid_create_template_version)

Create a new version of an email template in SendGrid

Input
ParameterTypeRequiredDescription
apiKeystringYesSendGrid API key
templateIdstringYesTemplate ID
namestringYesVersion name
subjectstringYesEmail subject line
htmlContentstringNoHTML content of the template
plainContentstringNoPlain text content of the template
activebooleanNoWhether this version is active (default: true)
Output
ParameterTypeDescription
idstringVersion ID
templateIdstringTemplate ID
namestringVersion name
subjectstringEmail subject
activebooleanWhether this version is active
htmlContentstringHTML content
plainContentstringPlain text content
updatedAtstringLast update timestamp

Usage Instructions

Integrate SendGrid into your workflow. Send transactional emails, manage marketing contacts and lists, and work with email templates. Supports dynamic templates, attachments, and comprehensive contact management.

Notes

  • Category: tools
  • Type: sendgrid