1

Add email module

opengb module add email
2

Configure API key

backend.json
{
  "modules": {
    "email": {
      "config": {
        "provider": {
          "sendgrid": {
            "apiKeyVariable": "SENDGRID_API_KEY"
          }
        }
      }
    }
    // ...
  }
  // ...
}
3

Run with env var

export SENDGRID_API_KEY=your-api-key
opengb dev

We recommend using Infisical to manage your API key. See here for more information.