SendGrid API Key*
••••••••
From Email*
sender@yourdomain.com
To Email*
recipient@example.com
Subject
Email subject (required unless using template)
Content
Email body content (required unless using template)
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
Parameter Type Required Description apiKeystring Yes SendGrid API key fromstring Yes Sender email address (must be verified in SendGrid) fromNamestring No Sender name tostring Yes Recipient email address toNamestring No Recipient name subjectstring No Email subject (required unless using a template with pre-defined subject) contentstring No Email body content (required unless using a template with pre-defined content) contentTypestring No Content type (text/plain or text/html) ccstring No CC email address bccstring No BCC email address replyTostring No Reply-to email address replyToNamestring No Reply-to name attachmentsfile[] No Files to attach to the email templateIdstring No SendGrid template ID to use dynamicTemplateDatajson No JSON object of dynamic template data
Output
Parameter Type Description successboolean Whether the email was sent successfully messageIdstring SendGrid message ID tostring Recipient email address subjectstring Email subject
SendGrid API Key*
••••••••
Email*
contact@example.com
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
Parameter Type Required Description apiKeystring Yes SendGrid API key emailstring Yes Contact email address firstNamestring No Contact first name lastNamestring No Contact last name customFieldsjson No JSON object of custom field key-value pairs (use field IDs like e1_T, e2_N, e3_D, not field names) listIdsstring No Comma-separated list IDs to add the contact to
Output
Parameter Type Description jobIdstring Job ID for tracking the async contact creation emailstring Contact email address firstNamestring Contact first name lastNamestring Contact last name messagestring Status message
SendGrid API Key*
••••••••
Get Contact (sendgrid_get_contact)
Get a specific contact by ID from SendGrid
Input
Parameter Type Required Description apiKeystring Yes SendGrid API key contactIdstring Yes Contact ID
Output
Parameter Type Description idstring Contact ID emailstring Contact email address firstNamestring Contact first name lastNamestring Contact last name createdAtstring Creation timestamp updatedAtstring Last update timestamp listIdsjson Array of list IDs the contact belongs to customFieldsjson Custom field values
SendGrid API Key*
••••••••
Search Query*
email LIKE '%example.com%'
Search Contacts (sendgrid_search_contacts)
Search for contacts in SendGrid using a query
Input
Parameter Type Required Description apiKeystring Yes SendGrid API key querystring Yes Search query (e.g., "email LIKE '%example.com%' AND CONTAINS(list_ids, 'list-id')")
Output
Parameter Type Description contactsjson Array of matching contacts contactCountnumber Total number of contacts found
SendGrid API Key*
••••••••
Contact IDs*
Comma-separated contact IDs
Delete Contacts (sendgrid_delete_contacts)
Delete one or more contacts from SendGrid
Input
Parameter Type Required Description apiKeystring Yes SendGrid API key contactIdsstring Yes Comma-separated contact IDs to delete
Output
Parameter Type Description jobIdstring Job ID for the deletion request
SendGrid API Key*
••••••••
Create List (sendgrid_create_list)
Create a new contact list in SendGrid
Input
Parameter Type Required Description apiKeystring Yes SendGrid API key namestring Yes List name
Output
Parameter Type Description idstring List ID namestring List name contactCountnumber Number of contacts in the list
SendGrid API Key*
••••••••
Get List (sendgrid_get_list)
Get a specific list by ID from SendGrid
Input
Parameter Type Required Description apiKeystring Yes SendGrid API key listIdstring Yes List ID
Output
Parameter Type Description idstring List ID namestring List name contactCountnumber Number of contacts in the list
SendGrid API Key*
••••••••
List All Lists (sendgrid_list_all_lists)
Get all contact lists from SendGrid
Input
Parameter Type Required Description apiKeystring Yes SendGrid API key pageSizenumber No Number of lists to return per page (default: 100)
Output
Parameter Type Description listsjson Array of lists
SendGrid API Key*
••••••••
Delete List (sendgrid_delete_list)
Delete a contact list from SendGrid
Input
Parameter Type Required Description apiKeystring Yes SendGrid API key listIdstring Yes List ID to delete
Output
Parameter Type Description messagestring Success message
SendGrid API Key*
••••••••
Contacts (JSON Array)*
json
[{"email": "user@example.com", "first_name": "John"}]
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
Parameter Type Required Description apiKeystring Yes SendGrid API key listIdstring Yes List ID to add contacts to contactsjson Yes JSON 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
Parameter Type Description jobIdstring Job ID for tracking the async operation messagestring Status message
Operation
Remove Contacts from List SendGrid API Key*
••••••••
Contact IDs*
Comma-separated contact IDs
Remove Contacts from List (sendgrid_remove_contacts_from_list)
Remove contacts from a specific list in SendGrid
Input
Parameter Type Required Description apiKeystring Yes SendGrid API key listIdstring Yes List ID contactIdsstring Yes Comma-separated contact IDs to remove from the list
Output
Parameter Type Description jobIdstring Job ID for the request
SendGrid API Key*
••••••••
Template Name*
Template name
Create Template (sendgrid_create_template)
Create a new email template in SendGrid
Input
Parameter Type Required Description apiKeystring Yes SendGrid API key namestring Yes Template name generationstring No Template generation type (legacy or dynamic, default: dynamic)
Output
Parameter Type Description idstring Template ID namestring Template name generationstring Template generation updatedAtstring Last update timestamp versionsjson Array of template versions
SendGrid API Key*
••••••••
Get Template (sendgrid_get_template)
Get a specific template by ID from SendGrid
Input
Parameter Type Required Description apiKeystring Yes SendGrid API key templateIdstring Yes Template ID
Output
Parameter Type Description idstring Template ID namestring Template name generationstring Template generation updatedAtstring Last update timestamp versionsjson Array of template versions
SendGrid API Key*
••••••••
Filter by Generation
legacy, dynamic, or both
List Templates (sendgrid_list_templates)
Get all email templates from SendGrid
Input
Parameter Type Required Description apiKeystring Yes SendGrid API key generationsstring No Filter by generation (legacy, dynamic, or both) pageSizenumber No Number of templates to return per page (default: 20)
Output
Parameter Type Description templatesjson Array of templates
SendGrid API Key*
••••••••
Delete Template (sendgrid_delete_template)
Delete an email template from SendGrid
Input
Parameter Type Required Description apiKeystring Yes SendGrid API key templateIdstring Yes Template ID to delete
Output (block-level contract)
Parameter Type Description successboolean Operation success status messagestring Status or success message messageIdstring Email message ID (send_mail) tostring Recipient email address (send_mail) subjectstring Email subject (send_mail, create_template_version) idstring Resource ID jobIdstring Job ID for async operations emailstring Contact email address firstNamestring Contact first name lastNamestring Contact last name createdAtstring Creation timestamp updatedAtstring Last update timestamp listIdsjson Array of list IDs the contact belongs to customFieldsjson Custom field values contactsjson Array of contacts contactCountnumber Number of contacts listsjson Array of lists namestring Resource name templatesjson Array of templates generationstring Template generation versionsjson Array of template versions templateIdstring Template ID activeboolean Whether template version is active htmlContentstring HTML content plainContentstring Plain text content
SendGrid API Key*
••••••••
Version Name*
Version name
Template Subject*
Email subject
HTML Content
html
<html><body>{{name}}</body></html>
Plain Text Content
Plain text content
Create Template Version (sendgrid_create_template_version)
Create a new version of an email template in SendGrid
Input
Parameter Type Required Description apiKeystring Yes SendGrid API key templateIdstring Yes Template ID namestring Yes Version name subjectstring Yes Email subject line htmlContentstring No HTML content of the template plainContentstring No Plain text content of the template activeboolean No Whether this version is active (default: true)
Output
Parameter Type Description idstring Version ID templateIdstring Template ID namestring Version name subjectstring Email subject activeboolean Whether this version is active htmlContentstring HTML content plainContentstring Plain text content updatedAtstring Last update timestamp
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.
Category: tools
Type: sendgrid