Skip to content

Instantly share code, notes, and snippets.

@DRBragg
Created December 17, 2020 15:47
Show Gist options
  • Save DRBragg/07d732c2814a1e5a0f16e34c747d5bb3 to your computer and use it in GitHub Desktop.
Save DRBragg/07d732c2814a1e5a0f16e34c747d5bb3 to your computer and use it in GitHub Desktop.
Getting an API key from Sendgrind
  • Login to sendgrid

  • From the menu on the lefthand side click on Email API > Integration Guide

  • For VAP projects:

    • Select SMTP Relay
    • Name the key (usually the short name of the VAP instance)
    • Click 'Create Key'
    • From the 'Configure your application section' copy the Password (this is actually your API key)
    • In Hatchbox (or SSH into the server for legacy versions) put the API key in your ENVs
    • The key is SENDGRID_PASSWORD and the value is the API key you just generated.
  • For Mircosites (jazz-presentation-site or jazz-mirf)

    • Select Web API
    • Select the Node.js integration
    • Name the key (something unique to the instance)
    • Click 'Create Key'
    • Copy the API key
    • In Netlify go to Site setting > Build & deploy > Environment
    • Add or edit the ENV variables with your API key
    • The key is SENDGRID_API_KEY and the value is the API key you just generated.
  • After making the proper update to your ENVs check "I've integrated the code above"

  • Click 'Next: Verify Integration'

  • You will be prompted to send an email from your app. If it is successful click 'Verify Integration'.

  • Sendgrid will confirm everything worked. If it did you will see a 'It worked!' message, otherwise you'll see some debug steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment