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

# SendGrid

## What's supported

### Supported actions

This connector supports:

* [Read Actions](https://docs.ampersand.ai/read-actions.md), including full historic backfill for all supported objects below. Incremental read is not currently supported.
* [Write Actions](https://docs.ampersand.ai/write-actions.md) (create/update/delete).
* [Proxy Actions](https://docs.ampersand.ai/proxy-actions.md), using the base URL `https://api.sendgrid.com`.
* Subscribe Actions are not currently supported.

### Supported objects

<table>
  <thead>
    <tr>
      <th>Object</th>
      <th>Read</th>
      <th>Write</th>
      <th>Subscribe</th>
    </tr>
  </thead>

  <tbody>
    <tr><td>[contacts](https://www.twilio.com/docs/sendgrid/api-reference/contacts/get-sample-contacts)</td><td>✅</td><td>🚫</td><td>🚫</td></tr>
    <tr><td>[lists](https://www.twilio.com/docs/sendgrid/api-reference/lists/get-all-lists)</td><td>✅</td><td>✅</td><td>🚫</td></tr>
    <tr><td>[segments](https://www.twilio.com/docs/sendgrid/api-reference/segmenting-contacts/get-list-of-segments)</td><td>✅</td><td>🚫</td><td>🚫</td></tr>
    <tr><td>[singlesends](https://www.twilio.com/docs/sendgrid/api-reference/single-sends/get-all-single-sends)</td><td>✅</td><td>🚫</td><td>🚫</td></tr>
    <tr><td>[templates](https://www.twilio.com/docs/sendgrid/api-reference/templates-api/retrieve-all-templates)</td><td>✅</td><td>✅</td><td>🚫</td></tr>
    <tr><td>[field\_definitions](https://www.twilio.com/docs/sendgrid/api-reference/custom-fields/get-all-field-definitions)</td><td>✅</td><td>🚫</td><td>🚫</td></tr>
    <tr><td>[verified\_senders](https://www.twilio.com/docs/sendgrid/api-reference/sender-verification/get-all-verified-senders)</td><td>✅</td><td>🚫</td><td>🚫</td></tr>
    <tr><td>[senders](https://www.twilio.com/docs/sendgrid/api-reference/sender-identities-api/get-all-senders)</td><td>✅</td><td>🚫</td><td>🚫</td></tr>
    <tr><td>[bounces](https://www.twilio.com/docs/sendgrid/api-reference/bounces-api/retrieve-all-bounces)</td><td>✅</td><td>🚫</td><td>🚫</td></tr>
    <tr><td>[blocks](https://www.twilio.com/docs/sendgrid/api-reference/blocks-api/retrieve-all-blocks)</td><td>✅</td><td>🚫</td><td>🚫</td></tr>
    <tr><td>[spam\_reports](https://www.twilio.com/docs/sendgrid/api-reference/spam-reports-api/retrieve-all-spam-reports)</td><td>✅</td><td>🚫</td><td>🚫</td></tr>
    <tr><td>[unsubscribes](https://www.twilio.com/docs/sendgrid/api-reference/suppressions-global-suppressions/retrieve-all-global-suppressions)</td><td>✅</td><td>🚫</td><td>🚫</td></tr>
    <tr><td>[invalid\_emails](https://www.twilio.com/docs/sendgrid/api-reference/invalid-emails-api/retrieve-all-invalid-emails)</td><td>✅</td><td>🚫</td><td>🚫</td></tr>
    <tr><td>[asm\_groups](https://www.twilio.com/docs/sendgrid/api-reference/suppressions-unsubscribe-groups/retrieve-all-suppression-groups)</td><td>✅</td><td>✅</td><td>🚫</td></tr>
    <tr><td>[categories](https://www.twilio.com/docs/sendgrid/api-reference/categories/retrieve-all-categories)</td><td>✅</td><td>🚫</td><td>🚫</td></tr>
    <tr><td>[subusers](https://www.twilio.com/docs/sendgrid/api-reference/subusers-api/list-all-subusers)</td><td>✅</td><td>🚫</td><td>🚫</td></tr>
  </tbody>
</table>

### Example integration

For an example manifest file of a SendGrid integration, visit our [samples repo on Github](https://github.com/amp-labs/samples/blob/main/sendGrid/amp.yaml).

## Before you get started

To connect SendGrid with Ampersand, you will need a [SendGrid account](https://signup.sendgrid.com/).

This connector uses **API key** authentication. You do **not** need to create a Provider App in Ampersand before getting started (Provider apps are only required for OAuth2 Authorization Code providers).

Each customer supplies their own SendGrid API key during installation via the [InstallIntegration](https://docs.ampersand.ai/embeddable-ui-components.md#install-integration) UI component.

### Create a SendGrid API key

Follow SendGrid’s documentation to create an API key with the scopes your integration needs:

1. Log in to your [SendGrid account](https://app.sendgrid.com/).
2. Go to **Settings → API Keys**.
3. Click **Create API Key**.
4. Choose **Restricted Access** and grant the minimum scopes required for your integration (for example, Marketing Campaigns for `lists`, Template Engine for `templates`, and Suppressions for `asm_groups` and suppression reads).
5. Copy the API key — SendGrid shows the full key only once.

SendGrid documentation: [Create and manage API keys](https://www.twilio.com/docs/sendgrid/ui/account-and-settings/api-keys).

## Using the connector

To start integrating with SendGrid:

* Create a manifest file like the [example](https://github.com/amp-labs/samples/blob/main/sendGrid/amp.yaml).
* Deploy it using the [amp CLI](https://docs.ampersand.ai/cli/overview.md).
* If you are using Read Actions, create a [destination](https://docs.ampersand.ai/destinations).
* Embed the [InstallIntegration](https://docs.ampersand.ai/embeddable-ui-components.md#install-integration) UI component. The UI component will prompt the customer for their SendGrid API key.
* Start using the connector!
  * If your integration has [Read Actions](https://docs.ampersand.ai/read-actions.md), you'll start getting webhook messages.
  * If your integration has [Write Actions](https://docs.ampersand.ai/write-actions.md), you can start making API calls to our Write API.
  * If your integration has [Proxy Actions](https://docs.ampersand.ai/proxy-actions.md), you can start making Proxy API calls. Ampersand will automatically attach the customer's API key.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.