Frontegg allows you to configure SendGrid as your email provider either via the portal or API. The integration breakdown is outlined below.
Portal configuration
The SendGrid configuration relies on obtaining a SendGrid Secret from your account and filling it in the relevant place of your Frontegg account.
Step 1: Access the Frontegg Portal
Navigate to your specific environment within the Frontegg portal, then go to the "Emails" section and select "Providers."
Step 2: Connect to SendGrid
Click on the connect button to initiate the connection process with SendGrid.
Step 3: Obtain the SendGrid Secret
Log into your SendGrid account, navigate to Settings -> API Keys, and either create a new API key or use an existing one. Ensure the API key has a 'Send email' permission.
Step 4: Enter the Secret in Frontegg
Return to the Frontegg portal and fill in the secret field with the API key obtained from SendGrid. This secret is necessary for authenticating the connection.
API configuration
Prerequisites
- A vendor token from the authentication route is required to use this API. Check out the Getting Started With Frontegg APIs topc to learn more.
When configuring SendGrid via API, you will need your request's payload
to include the provider
(sendgrid
) and secret
fields in your POST call. To generate your secret, please follow the instructions indicated in this link.
Note that your sample request's structure should resemble the following:
curl --request POST \
--url https://api.frontegg.com/identity/resources/mail/v2/configurations \
--header 'content-type: application/json' \
--data '
{
"payload": {
"provider": "sendgrid",
"secret": "string"
}
}
Updated 1 day ago