Skip to content

Prerequisites SendGrid

amccook edited this page Aug 17, 2023 · 7 revisions

Introduction

In order to use Turbonomic Webhooks with SendGrid, the following prerequisites must be configured. This outlines the bare-minimum steps required to integrate Turbonomic Webhooks with SendGrid. For more advanced usage of SendGrid, please refer to their docs.

  • Create a SendGrid Account
  • Generate your SendGrid API key
  • Create a Dynamic Template

1. Create a SendGrid Account

If you don't already have one, configure a SendGrid account. This can be done via IBM Cloud or via SendGrid. In these instructions we'll setup SendGrid via IBM Cloud and use the free tier which allows you send 3000 emails/month.

  1. Login to IBM Cloud and navigate to: https://cloud.ibm.com/catalog/infrastructure/email-delivery
  2. Click Create.
  3. Provide an email address and choose the Free Package. Click Create.
  4. From the Email Delivery page, click the Vendor Portal link to login to your SendGrid account.

2. Generate your SendGrid API key

  1. In the SendGrid portal, go to Email API > Integration Guide > Web API > Choose
  2. When asked to "Choose the language you want to use," locate cURL and select Choose
  3. In section 2, provide a name for your API Key. Click Create Key
  4. Record your API key for use later on.
  5. To verify your SendGrid API is working, follow instructions in section 4 to Run the code. Then click Next: Verify Integration

3. Create a Dynamic Template

  1. Go to Email API > Dynamic Templates > Create a Dynamic Template
  2. Provide a name for your template. In this example, name it TurboResizeEmail > Click Create
  3. Locate the template you just created and click Add Version
  4. Hover over Blank Template and click Select
  5. Locate Design Editor and click Select
  6. In the Dynamic Version Settings, provide a Version Name. In the Subject field, write: Turbonomic: VM Resize Notification - {{displayName}}