Blocks
SendGrid
Send emails and manage contacts with SendGrid.
Connect to SendGrid API v3 to send transactional emails, use dynamic templates, and manage marketing contacts.
Block Preview
SendGrid
Send emails and manage contacts with SendGrid.
Usage
- Add the block to your workflow and connect it to the upstream step.
- Configure any required credentials or tokens in the inputs.
- Fill in required inputs and optional parameters for the run.
- Run a test execution, inspect outputs, and iterate before deploying.
- Deploy the sendgrid block with monitoring enabled in production.
Inputs (UI)
API Key
short-inputPlaceholder: SG.xxxxxxxx
Layout: full
Operation
dropdownLayout: full
Options: Send Email, Send Template Email, List Contacts, Add Contact
From Email
short-inputPlaceholder: sender@example.com
Layout: half
Condition: operation = ["send_email","send_template"]
From Name
short-inputPlaceholder: Sender Name
Layout: half
Condition: operation = ["send_email","send_template"]
To Email(s)
short-inputPlaceholder: recipient@example.com (comma-separated for multiple)
Layout: full
Condition: operation = ["send_email","send_template"]
Subject
short-inputPlaceholder: Email subject line
Layout: full
Condition: operation = "send_email"
HTML Content
codePlaceholder: <h1>Hello!</h1><p>Your message here...</p>
Layout: full
Condition: operation = "send_email"
Plain Text (optional)
long-inputPlaceholder: Plain text version of your email
Layout: full
Condition: operation = "send_email"
Template ID
short-inputPlaceholder: d-xxxxxxxxxxxxxxxx
Layout: full
Condition: operation = "send_template"
Template Data (JSON)
codePlaceholder: {"name": "John", "orderNumber": "12345"}
Layout: full
Condition: operation = "send_template"
Contact Email
short-inputPlaceholder: contact@example.com
Layout: full
Condition: operation = "add_contact"
First Name
short-inputPlaceholder: John
Layout: half
Condition: operation = "add_contact"
Last Name
short-inputPlaceholder: Doe
Layout: half
Condition: operation = "add_contact"
Inputs (API)
operation
stringRequired
apiKey
stringRequired
to
stringOptional
from
stringOptional
fromName
stringOptional
subject
stringOptional
htmlContent
stringOptional
textContent
stringOptional
templateId
stringOptional
dynamicTemplateData
jsonOptional
Optional
firstName
stringOptional
lastName
stringOptional
Outputs
Primary response type:
{
"success": "boolean",
"messageId": "string",
"data": "any"
}