Skip to content

Twilio SendGrid

Twilio SendGrid — send transactional and marketing emails, manage contacts and templates.

PropertyValue
Typehttp
Authenticationbearer
CategoryCommunication
FieldTypeRequiredDescription
api_keystringYesSendGrid API key (starts with SG.)

Send a transactional or marketing email via SendGrid.

EndpointPOST /mail/send
MethodPOST

Retrieve all contacts from the SendGrid Marketing Contacts database.

EndpointGET /marketing/contacts
MethodGET

Add or update contacts in the SendGrid Marketing Contacts database. Upserts by email address.

EndpointPUT /marketing/contacts
MethodPUT

Retrieve a single contact by ID.

EndpointGET /marketing/contacts/{contactId}
MethodGET

Delete one or more contacts by ID. This is a bulk operation.

EndpointDELETE /marketing/contacts
MethodDELETE

List email templates (transactional and marketing).

EndpointGET /templates
MethodGET
name: new-user-welcome-email
description: Add new signups to SendGrid and send a welcome email
trigger:
connector: webhook
event: user.signup
steps:
- name: add-contact
action: sendgrid.add-contacts
params:
contacts:
- email: "{{ trigger.payload.email }}"
first_name: "{{ trigger.payload.first_name }}"
last_name: "{{ trigger.payload.last_name }}"
- name: list-welcome-templates
action: sendgrid.list-templates
params:
generations: dynamic
- name: send-welcome-email
action: sendgrid.send-email
params:
personalizations:
- to:
- email: "{{ trigger.payload.email }}"
name: "{{ trigger.payload.first_name }} {{ trigger.payload.last_name }}"
dynamic_template_data:
first_name: "{{ trigger.payload.first_name }}"
from:
email: welcome@acmecorp.com
name: Acme Corp
template_id: "{{ steps.list-welcome-templates.output.result[0].id }}"