Skip to main content

SendGrid Connector

SendGrid SendGrid is a cloud-based email delivery platform owned by Twilio. This component allows you to send transactional and marketing emails, manage contacts, and track email analytics.

API Documentation

This component was built using the SendGrid API v3.

Connections

SendGrid API Key

Authenticate requests to SendGrid using values obtained from the SendGrid Developer Console.

To authenticate with SendGrid, an API key is required.

Setup Steps

To generate an API key:

  1. Log in to the SendGrid Console
  2. Navigate to Settings > API Keys
  3. Click Create API Key
  4. Enter a name for the API key
  5. Select the appropriate access level:
    • Full Access - Grants all permissions (recommended for integration use)
    • Restricted Access - Grants specific permissions based on requirements
  6. Click Create & View
  7. Copy the API key value (it will only be displayed once)

For more information about creating API keys, refer to the SendGrid API Keys documentation.

Configure the Connection

  • Enter the API key into the API Key field in the connection configuration
API Key Security

The API key is only displayed once upon creation. Store it securely. If the key is lost, a new one must be generated.

InputCommentsDefault
API KeyAPI Key from your SendGrid account. Generate one in Settings > API Keys. Learn more

Triggers

Managed Webhook Events

Receive event webhook notifications from SendGrid. Automatically creates and manages a webhook subscription when the instance is deployed, and removes the subscription when the instance is deleted.

InputCommentsDefault
ConnectionThe SendGrid connection to use.
Friendly NameA friendly name to help differentiate between multiple webhooks.
EventsThe events to track.["delivered"]

Manual Webhook

Receive and validate webhook requests from SendGrid for manually configured webhooks.

Actions

Add or Update Contact

Add or update a contact. This can also be used to add contacts to a list.

InputCommentsDefault
ConnectionThe SendGrid connection to use.
List IDsComma-separated IDs of the lists to add the contact to. These lists must already exist.
ContactsAn array of contact objects to add or update. See SendGrid docs for contact object structure.

Create List

Create a new contact list

InputCommentsDefault
ConnectionThe SendGrid connection to use.
List NameThe name of the list to create.

Create Webhook

Create a new Event Webhook configuration to receive email event data.

InputCommentsDefault
ConnectionThe SendGrid connection to use.
Webhook URLThe URL where SendGrid will send event data.
Friendly NameA friendly name to help differentiate between multiple webhooks.
EnabledWhen true, enables the Event Webhook.true
EventsThe events to track.["delivered"]

Delete Webhook

Delete an Event Webhook configuration.

InputCommentsDefault
ConnectionThe SendGrid connection to use.
Webhook IDThe ID of the webhook.

Get All Field Definitions

Retrieve all custom field definitions with pagination support

InputCommentsDefault
ConnectionThe SendGrid connection to use.
Page SizeNumber of results to return per page (max 100).
Page TokenToken for fetching the next or previous page of results.
Fetch AllWhen true, fetches all pages of results using pagination.false

Get All Lists

Retrieve all contact lists with pagination support

InputCommentsDefault
ConnectionThe SendGrid connection to use.
Page SizeNumber of results to return per page (max 100).
Page TokenToken for fetching the next or previous page of results.
Fetch AllWhen true, fetches all pages of results using pagination.false

Get Contacts by Emails

Retrieve contacts by their email addresses.

InputCommentsDefault
ConnectionThe SendGrid connection to use.
EmailsComma-separated email addresses to search for.

Get Import Status

Check the status of a contact import job

InputCommentsDefault
ConnectionThe SendGrid connection to use.
Job IDThe job ID returned from Import Contacts, Add/Update Contact, or Delete Contacts operations.

Get List by ID

Retrieve a specific contact list by its ID

InputCommentsDefault
ConnectionThe SendGrid connection to use.
List IDThe ID of the list to retrieve.
Include Sample ContactsWhen true, includes a sample of contacts in the response.false

Get Webhook

Retrieve an Event Webhook configuration by ID.

InputCommentsDefault
ConnectionThe SendGrid connection to use.
Webhook IDThe ID of the webhook.

Initiate Contacts Import

Initiates a CSV contact import. Returns a URL and headers for uploading the CSV file.

InputCommentsDefault
ConnectionThe SendGrid connection to use.
List IDsComma-separated IDs of the lists to add the contact to. These lists must already exist.
Field MappingsAn array of field definition IDs to map the uploaded CSV columns. Use null to skip a column. Get IDs from 'Get All Field Definitions' action.
Is CompressedWhen true, indicates that the CSV file will be gzip-compressed.false

List Webhooks

List all Event Webhook configurations.

InputCommentsDefault
ConnectionThe SendGrid connection to use.

Raw Request

Send raw HTTP request to SendGrid

InputCommentsDefault
ConnectionThe SendGrid connection to use.
URLInput the path only (/templates), The base URL is already included (https://api.sendgrid.com/v3). For example, to connect to https://api.sendgrid.com/v3/templates, only /templates is entered in this field.
MethodThe HTTP method to use.
DataThe HTTP body payload to send to the URL.
Form DataThe Form Data to be sent as a multipart form upload.
File DataFile Data to be sent as a multipart form upload.
File Data File NamesFile names to apply to the file data inputs. Keys must match the file data keys above.
Query ParameterA list of query parameters to send with the request. This is the portion at the end of the URL similar to ?key1=value1&key2=value2.
HeaderA list of headers to send with the request.
Response TypeThe type of data you expect in the response. You can request json, text, or binary data.json
TimeoutThe maximum time that a client will await a response to its request
Retry Delay (ms)The delay in milliseconds between retries. This is used when 'Use Exponential Backoff' is disabled.0
Retry On All ErrorsIf true, retries on all erroneous responses regardless of type. This is helpful when retrying after HTTP 429 or other 3xx or 4xx errors. Otherwise, only retries on HTTP 5xx and network errors.false
Max Retry CountThe maximum number of retries to attempt. Specify 0 for no retries.0
Use Exponential BackoffSpecifies whether to use a pre-defined exponential backoff strategy for retries. When enabled, 'Retry Delay (ms)' is ignored.false

Send Email

Send a single email to one or more recipients

InputCommentsDefault
ConnectionThe SendGrid connection to use.
ToThe recipient's email address, or a comma-separated list of recipient email addresses.
From EmailThe sender's email address.
SubjectThe email subject line.
TextThe text body of the email.
CCThe recipient's email address, or a comma-separated list of recipient email addresses to CC.
BCCThe recipient's email address, or a comma-separated list of recipient email addresses to BCC.
From NameThe sender's name.
Reply To EmailEmail To Reply To.
Reply To NameName to reply to. This field is only required when you provide a value for Reply To Email.
HTMLThe optional HTML body of the email.
PersonalizationsYou can use this field to overwrite multiple properties of the email. For examples of which properties to use, checkout the SendGrid docs: https://docs.sendgrid.com/for-developers/sending-email/personalizations[]
Attachment ContentProvide attachment data to send with the email. The 'File Name' field is required when using this input and should reference the data output from a previous action.
DispositionSpecifies how you would like the attachment to be displayed.
File NameProvide a name for the file to attach. The 'Attachment Content' field is required when using this input.
File TypeThe MIME type of the content you are attaching.
Content IdProvide the content Id of the attachment. This value is only required when you select 'inline'.
Multiple AttachmentsProvide an array of attachments to send with the email. See https://www.twilio.com/docs/sendgrid/api-reference/mail-send/mail-send#request-body for more information.
Subscription TrackingWhen true, inserts a subscription management link at the bottom of the text and HTML bodies of your email.false

Send Email with Dynamic Template

Send an email using a SendGrid dynamic template with complex nested JSON data

InputCommentsDefault
ConnectionThe SendGrid connection to use.
Template IDThe ID of the dynamic template to use.
Dynamic Template DataThe data to be used for the dynamic template. Supports complex nested JSON structures including arrays and objects for order confirmations, customer data, and more.
From EmailThe sender's email address.
ToThe recipient's email address, or a comma-separated list of recipient email addresses. Required if 'Personalizations' is not provided. Will be ignored if 'Personalizations' is provided.
From NameThe sender's name.
CCThe recipient's email address, or a comma-separated list of recipient email addresses to CC. Will be ignored if 'Personalizations' is provided.
BCCThe recipient's email address, or a comma-separated list of recipient email addresses to BCC. Will be ignored if 'Personalizations' is provided.
Reply To EmailEmail To Reply To.
Reply To NameName to reply to. This field is only required when you provide a value for Reply To Email.
PersonalizationsAdvanced: Provide a personalizations array to send different variations to different recipients. When provided, this will override 'To', 'CC', and 'BCC' inputs. Each personalization will automatically include the dynamic template data.[]

Send Multiple Emails

Send a separate email to each recipient

InputCommentsDefault
ConnectionThe SendGrid connection to use.
ToThe recipient's email address, or a comma-separated list of recipient email addresses.
From EmailThe sender's email address.
SubjectThe email subject line.
TextThe text body of the email.
CCThe recipient's email address, or a comma-separated list of recipient email addresses to CC.
BCCThe recipient's email address, or a comma-separated list of recipient email addresses to BCC.
From NameThe sender's name.
Reply To EmailEmail To Reply To.
Reply To NameName to reply to. This field is only required when you provide a value for Reply To Email.
HTMLThe optional HTML body of the email.
PersonalizationsYou can use this field to overwrite multiple properties of the email. For examples of which properties to use, checkout the SendGrid docs: https://docs.sendgrid.com/for-developers/sending-email/personalizations[]
Attachment ContentProvide attachment data to send with the email. The 'File Name' field is required when using this input and should reference the data output from a previous action.
DispositionSpecifies how you would like the attachment to be displayed.
File NameProvide a name for the file to attach. The 'Attachment Content' field is required when using this input.
File TypeThe MIME type of the content you are attaching.
Content IdProvide the content Id of the attachment. This value is only required when you select 'inline'.
Multiple AttachmentsProvide an array of attachments to send with the email. See https://www.twilio.com/docs/sendgrid/api-reference/mail-send/mail-send#request-body for more information.

Test Webhook

Test an Event Webhook by sending a fake event notification.

InputCommentsDefault
ConnectionThe SendGrid connection to use.
Test URLThe URL where the test event will be sent.

Toggle Signature Verification

Enable or disable signature verification for an Event Webhook.

InputCommentsDefault
ConnectionThe SendGrid connection to use.
Webhook IDThe ID of the webhook.
Enable Signature VerificationWhen true, enables signature verification for webhook requests.true

Update Webhook

Update an existing Event Webhook configuration.

InputCommentsDefault
ConnectionThe SendGrid connection to use.
Webhook IDThe ID of the webhook.
Webhook URLThe URL where SendGrid will send event data.
Friendly NameA friendly name to help differentiate between multiple webhooks.
EnabledWhen true, enables the Event Webhook.true
EventsThe events to track.["delivered"]