## Related terms

- campaign
- event
- profile

See the [glossary](/glossary.md) for definitions.

---

# Enabling the SendGrid integration


In this article, you will find out how to enable the SendGrid integration in Synerise which will let you send text messages to your profiles (for example, customers).

## Prerequisites
---
- Create an account in SendGrid.
- In the SendGrid documentation, check the message limits imposed by SendGrid. While planning email campaigns and sending email batches, take these limits into consideration.

## Enabling integration
---
1. Go to <img src="/api/docs/image/1f259bfffcc725db385aae0958fd8b1c76b4f9a8/icons/settings-icon.svg" alt="Settings icon" class="icon">**Settings > Apps & Services**.
2. In the list of integrations, find **Sendgrid** and next to the integration name, click **Show**.
    - If there is a connection, you may proceed to [configuring a sender account](/docs/campaign/e-mail/configuring-email-account#configure-a-sender-account)
    - If there is no connection or you want a new one, proceed to the next step.
3. Click **Add connection**.  
    **Result**: A pop-up appears.
4. From the **Security** dropdown list, select one of the following options:  
    - **No security**
    - **SSL**
    - **TSL**
5. In the **Port** field, enter the port number you'll use. If you're not sure which port you use, refer to the [SendGrid documentation](https://docs.sendgrid.com/for-developers/sending-email/integrating-with-the-smtp-api#smtp-ports).
5. In the **Password** field, enter the password to your SendGrid account.
4. Click **Apply**.  
6. Proceed to [configuring a sender account](/docs/campaign/e-mail/configuring-email-account#configure-a-sender-account)

## Tracking bounce events
---
Follow the instructions below to start collecting the following events in Synerise:
- [`newsletter.dropped`](/docs/assets/events/event-reference/email#newsletterdropped),
- [`newsletter.hardbounce`](/docs/assets/events/event-reference/email#newsletterhardbounce), 
- [`newsletter.spambounce`](/docs/assets/events/event-reference/email#newsletterspambounce);

1. In your SendGrid account, perform the [Enable the Signed Event Webhook procedure](https://docs.sendgrid.com/for-developers/tracking-events/getting-started-event-webhook-security-features#enable-the-signed-event-webhook).
2. Provide the key to the Synerise support.
3. In your SendGrid account, proceed to Settings > Mail Settings > Event webhook. 
4. In the **HTTP POST URL** field, enter `https://{SYNERISE_API_BASE_PATH}/webhook-handler/sendgrid.` Depending on the cloud where your workspace is hosted, replace `{SYNERISE_API_BASE_PATH}` with:
    - `https://api.synerise.com` for Microsoft Azure
    - `https://api.geb.synerise.com` for Google Cloud Platform
5. Select **Event notifications**.
6. Select dropped, bounced, and spam reports. These are the only possible options.
7. Save the settings. 