# 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/o9IfmuoWilz1NKFUF2QN" 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/w5rGemg4o9Mnh7nsmV1L" 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/mlC3fTyrwX6QHEdH8Knx" 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/yXgXJi9NVXB5yq8uIP11" 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/O8Go2IkFJyFOiz3Q3gbW" alt=""><figcaption><p>Click on SendGrid Connector<br></p></figcaption></figure>

   <figure><img src="/files/4KRPTpeFBjqu9YLU4PKa" 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: 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:

```
GET https://docs.stacksync.com/two-way-sync/connectors/sendgrid/authorize-sendgrid.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
