SendGrid
App · Email · 6 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. |
| Create marketing list | Create a marketing list for SendGrid contacts. |
| Get email stats | Retrieve SendGrid email statistics for a date range. |
| List templates | List SendGrid email templates. |
| Send email | Send an email through SendGrid. |
| Send template email | Send an email built from a saved SendGrid template. |
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"
}
}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"
}
}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 templates
List SendGrid email templates.
Inputs
None.
Outputs
resultobject
Example output
{
"result": {
"result": [
{
"id": "tmpl_123",
"name": "Welcome Email"
}
]
}
}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
}
}