Skip to main content

SendGrid Component

Send emails through SendGrid

Component key: sendgrid

Description#

SendGrid is an email delivery service. This component allows you to send of emails through the SendGrid platform.

Authorization Methods#

SendGrid requires one of the following authorization methods:

Auth TypeKeyDescriptionFields
API Keyapi_keyAPI authorization based on an API key

API Key |  api_key

Information about getting started and creating API keys with SendGrid can be found on their developer documentation site.

Actions#

Send Email#

Send a single email to one or more recipients | key: sendEmail

InputKeyNotesExample

From

string
/ Required
fromThe sender's email addresssusan.smith@progix.io

HTML

text
htmlThe optional HTML body of the emailHello from <b>Prismatic!</b>

Subject

string
/ Required
subjectThe email subject lineHello from Prismatic!

Text

text
/ Required
textThe text body of the emailHere's the body of a notification.

To

string
/ Required
toThe recipient's email address, or a comma-separated list of recipient email addressesalex.cooper@progix.io,kristin.henry@progix.io

Output Example Payload#

{  "data": [    {      "body": {        "message": "Example"      },      "headers": {},      "statusCode": 200    },    {}  ]}

Send Multiple Emails#

Send a separate email to each recipient | key: sendMultipleEmails

InputKeyNotesExample

From

string
/ Required
fromThe sender's email addresssusan.smith@progix.io

HTML

text
htmlThe optional HTML body of the emailHello from <b>Prismatic!</b>

Subject

string
/ Required
subjectThe email subject lineHello from Prismatic!

Text

text
/ Required
textThe text body of the emailHere's the body of a notification.

To

string
/ Required
toThe recipient's email address, or a comma-separated list of recipient email addressesalex.cooper@progix.io,kristin.henry@progix.io

Output Example Payload#

{  "data": [    {      "body": {        "message": "Example"      },      "headers": {},      "statusCode": 200    },    {}  ]}