# 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="https://2867423571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfJjIdV9cuW6K8asJjTPJ%2Fuploads%2F7VQALZ7bijadz2G6W3xa%2Fimage.png?alt=media&#x26;token=e67e62c8-50b5-4fa8-b7c5-c5b811a220e4" alt=""><figcaption><p>Navigate to Settings > Click on API Keys<br></p></figcaption></figure>
3. Click on **Create API Key**<br>

   <figure><img src="https://2867423571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfJjIdV9cuW6K8asJjTPJ%2Fuploads%2FQjo1W5ZR6RI9ZKUcQQNV%2Fimage.png?alt=media&#x26;token=32d30e4d-10f6-417c-b814-f5a8be513a75" 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="https://2867423571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfJjIdV9cuW6K8asJjTPJ%2Fuploads%2FKURtriSZfqImiwb8rMrN%2Fimage.png?alt=media&#x26;token=88e5381d-60af-443b-9c67-4fe4ba142379" 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="https://2867423571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfJjIdV9cuW6K8asJjTPJ%2Fuploads%2FkOHA6NsTawWDlA1iy8HG%2Fimage.png?alt=media&#x26;token=cf335f4a-ec23-4c16-b634-15e32812424c" 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="https://2867423571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfJjIdV9cuW6K8asJjTPJ%2Fuploads%2FUVy0aJspaAVhkJRySk4u%2Fimage.png?alt=media&#x26;token=4abf55c7-e9a3-4f3c-9e8e-b4b7bff85c9d" alt=""><figcaption><p>Click on SendGrid Connector<br></p></figcaption></figure>

   <figure><img src="https://2867423571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfJjIdV9cuW6K8asJjTPJ%2Fuploads%2Fwbx9e4wdRcneNxwSNazf%2Fimage.png?alt=media&#x26;token=cc650738-1cfb-4619-8767-29c5c47218e5" 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!
