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

# SendGrid

## Configure your Vault connection

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

<Frame>![Dashboard > Actions > Forms > Flows > actions > SendGrid](https://images.ctfassets.net/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png)</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>![](https://images.ctfassets.net/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 settings

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).
