SendGrid Provider

SendGridProvider is a class that implements the SendGrid API and allows email sending through Keep.

Authentication

This provider requires authentication.

  • api_key: SendGrid API key (required: True, sensitive: True)
  • from_email: From email address (required: True, sensitive: False)

Certain scopes may be required to perform specific actions or queries via the provider. Below is a summary of relevant scopes and their use cases:

  • email.send: Send emails using SendGrid (mandatory) (Documentation)

In workflows

This provider can be used in workflows.

As “action” to make changes or update data, example:

actions:
    - name: Query sendgrid
      provider: sendgrid
      config: "{{ provider.my_provider_name }}"
      with:
        to: {value}  # To email address or list of email addresses
        subject: {value}  # Email subject
        html: {value}  # Email body

Check the following workflow examples:

Connecting with the Provider

To connect with the SendGrid provider and send emails through Keep, follow these steps:

  1. Obtain a SendGrid API key: Visit SendGrid API Keys to obtain an API key if you don’t have one already.
  2. Configure the SendGrid provider in your system with the obtained API key and the from_email address.
  3. Use the following YAML example to send an email notification using the SendGrid provider: