> For the complete documentation index, see [llms.txt](https://docs.stacksync.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stacksync.com/connectors/sendgrid/authorize-sendgrid.md).

# Authorize SendGrid

{% hint style="info" %}
Access to **Email Activity** requires an **add-on subscription** in SendGrid. Without this add-on, the Email Activity API is not available. Retention of Email Activity data also depends on the subscription level (typically 7 days by default, extended to 30 days with the add-on).
{% endhint %}

1. Log in to your SendGrid account.<br>
2. Navigate to **Settings** > **API Keys**<br>

   <figure><img src="/files/pBpa8aHgmgZaFKF5uopB" alt=""><figcaption><p>Navigate to Settings > Click on API Keys<br></p></figcaption></figure>
3. Click on **Create API Key**<br>

   <figure><img src="/files/RRCEH0swuHcIDPmOUZHi" alt=""><figcaption><p>Click on Create API Key<br></p></figcaption></figure>
4. In the API Key Permissions, select **Custom Access** and grant **Full Access** for the objects you want to sync.<br>

   <figure><img src="/files/8OnVFW2n8saFrXh1OmZC" alt=""><figcaption><p>Choose <strong>Custom Access</strong> and grant <strong>Full Access</strong> for the objects you want to sync<br></p></figcaption></figure>
5. Copy and save the generated **API Key** (API Key begins with "SG")<br>

   <figure><img src="/files/H6qp1Mzs8n2qUW2bHwwi" alt=""><figcaption><p>Copy and save the API Key<br></p></figcaption></figure>
6. You now have all the necessary credentials to grant Stacksync access to your SendGrid Objects. Go back to the Stacksync dashboard at <https://app.stacksync.com><br>

   <figure><img src="/files/kgY5OSzddBJyco49adk1" alt=""><figcaption><p>Click on SendGrid Connector<br></p></figcaption></figure>

   <figure><img src="/files/QWAt1bwPAlYMIouWfJC3" alt=""><figcaption><p>Insert the API Key obtained from the preview steps in the SendGrid Connector<br></p></figcaption></figure>

You successfully granted Stacksync access to your SendGrid resources! :tada:\
Feel free to reach out to us at <hello@stacksync.com> if there is anything we can help with!


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.stacksync.com/connectors/sendgrid/authorize-sendgrid.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
