0% found this document useful (0 votes)
186 views2 pages

SendGrid Setup

1. Create a SendGrid account and verify your email address. 2. Verify a single sender email address. 3. Generate an API key with full access permissions that can be used to authenticate SendGrid requests. Save the key for later use in sending emails through the SendGrid API or connector apps.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
186 views2 pages

SendGrid Setup

1. Create a SendGrid account and verify your email address. 2. Verify a single sender email address. 3. Generate an API key with full access permissions that can be used to authenticate SendGrid requests. Save the key for later use in sending emails through the SendGrid API or connector apps.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

SendGrid (Email)

1. Create a SendGrid account here.


2. After creating an account and verifying your email address, setup and verify your single sender.
3. Once the single sender email has been verified, create a new API Key.
a. From the Navigation Menu select Settings then API Keys.

b. Click on the “Create API Key” on the upper right corner of the screen.

c. A pop-up should appear. Give your API Key a name and select Full Access.

d. Click “Create & View”.


e. Copy the API Key that appears on the following screen and click Done. Remember to save it as
there is no other way to recover that key once you proceed.
Note: From here, you may also opt to create an email template, From the Navigation Menu
select Design Library then click “Create Email Design”. After creating an email design, from the
Navigation Menu, select Email API > Dynamic Templates then click “Create a Dynamic
Template”. Use the template Id generated on the API request.
4. In OutSystems, either install the SendGrid Connector app from the forge or consume the SendGrid
REST APIs on your application.
5. To use this component, add your API Key to the header then fill the rest of the request as needed.

Sample Send Email POST Request (via Postman)


Endpoint:
https://api.sendgrid.com/v3/mail/send

Headers:
Authorization: Bearer SG.FsqrVQlsRDGyCPCWsgrR8Q.2fv-
yLlRdIGJx_xqRBOthgKwy0uJ6GM01l4tKM0AmV0

Body:
{

"personalizations": [
{
"to": [
{
"email": "[email protected]",
"name": "Aeron"
}
],
"subject": "Hello, World!"
}
],
"content": [
{
"type": "text/plain",
"value": "Heya!"
}
],
"from": {
"email": "[email protected]",
"name": "Aeron"
},
"reply_to": {
"email": "[email protected]",
"name": "Aeron"
}
}

You might also like