> ## Documentation Index
> Fetch the complete documentation index at: https://auth0.generaltranslation.app/llms.txt
> Use this file to discover all available pages before exploring further.

> Learn how to configure your SendGrid flow actions to send emails.

# SendGrid

## Configure your Vault connection

To configure a Vault connection for your SendGrid actions, you will need an **API key:**

<Frame>
  <img src="https://mintcdn.com/generaltranslationinc/IhLUvTv5J5eZ1VeH/docs/images/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?fit=max&auto=format&n=IhLUvTv5J5eZ1VeH&q=85&s=40043009b1a3a27b6642b1ea34f10a30" alt="Dashboard > Actions > Forms > Flows > actions > SendGrid" data-og-width="1404" width="1404" data-og-height="545" height="545" data-path="docs/images/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/generaltranslationinc/IhLUvTv5J5eZ1VeH/docs/images/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?w=280&fit=max&auto=format&n=IhLUvTv5J5eZ1VeH&q=85&s=2c5a4264416db2b209367301305a5c6d 280w, https://mintcdn.com/generaltranslationinc/IhLUvTv5J5eZ1VeH/docs/images/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?w=560&fit=max&auto=format&n=IhLUvTv5J5eZ1VeH&q=85&s=e21ef65b1e72fba61feefbbde62fc3a0 560w, https://mintcdn.com/generaltranslationinc/IhLUvTv5J5eZ1VeH/docs/images/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?w=840&fit=max&auto=format&n=IhLUvTv5J5eZ1VeH&q=85&s=71c61b6024b1f3b2fbe3c6ac94c977ae 840w, https://mintcdn.com/generaltranslationinc/IhLUvTv5J5eZ1VeH/docs/images/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?w=1100&fit=max&auto=format&n=IhLUvTv5J5eZ1VeH&q=85&s=772587877cd2bc5cf68565d161216ba9 1100w, https://mintcdn.com/generaltranslationinc/IhLUvTv5J5eZ1VeH/docs/images/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?w=1650&fit=max&auto=format&n=IhLUvTv5J5eZ1VeH&q=85&s=626d38642ec3d8683b29aa67c7ca83d1 1650w, https://mintcdn.com/generaltranslationinc/IhLUvTv5J5eZ1VeH/docs/images/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?w=2500&fit=max&auto=format&n=IhLUvTv5J5eZ1VeH&q=85&s=aaf2d89b3a7d186840564b3106c56567 2500w" />
</Frame>

It can be found at [SendGrid dashboard's](https://app.sendgrid.com/settings/api_keys) Settings page under the API keys.

## Send email

Send an email using SendGrid as the email provider.

<Frame>
  <img src="https://mintcdn.com/generaltranslationinc/ZBZaCyGCDGYmrL4v/docs/images/cdy7uua7fh8z/3pT7MZCTVhcL9ueeke0HqQ/8583aedc27af021fe6a62430c6d59adf/sendGrid.png?fit=max&auto=format&n=ZBZaCyGCDGYmrL4v&q=85&s=5dfee138c948099df6a4708187caa0f1" alt="" width="1398" height="1229" data-path="docs/images/cdy7uua7fh8z/3pT7MZCTVhcL9ueeke0HqQ/8583aedc27af021fe6a62430c6d59adf/sendGrid.png" />
</Frame>

### Input settings

<table class="table">
  <thead>
    <tr>
      <th><b>Parameter</b></th>
      <th><b>Description</b></th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>Sender name</td>
      <td>The sender's name</td>
    </tr>

    <tr>
      <td>Sender email (required)</td>
      <td>The sender's email</td>
    </tr>

    <tr>
      <td>Recipient name</td>
      <td>The recipient's name</td>
    </tr>

    <tr>
      <td>Recipient email (required)</td>
      <td>The recipient's email</td>
    </tr>

    <tr>
      <td>Subject (required)</td>
      <td>The email subject</td>
    </tr>

    <tr>
      <td>Email type (required)</td>
      <td>Send email with HTML content or using a saved template (optional)</td>
    </tr>

    <tr>
      <td>Message (required)</td>
      <td>Email message in HTML format or a template (optional).</td>
    </tr>

    <tr>
      <td>Template ID (optional)</td>
      <td>If using a template, its ID can be found at <a href="https://mc.sendgrid.com/dynamic-templates"> SendGrid dashboard </a>. </td>
    </tr>

    <tr>
      <td>Custom variables (optional)</td>
      <td>Add custom variables to be inserted in your template. </td>
    </tr>
  </tbody>
</table>

### Output object

You can find the expected response and status codes at [SendGrid's documentation](https://www.twilio.com/docs/sendgrid/api-reference/mail-send/mail-send).
