Set up SendGrid
SendGrid connects to Mailrith with an API key — configure the Event Webhook to keep subscriber statuses in sync when bounces or spam complaints occur.
4 min read
Before you start
Before connecting SendGrid to Mailrith, complete the following in your SendGrid account:
- Verify your sender identity. In SendGrid, verify either a single sender email address or a full domain. Domain authentication is strongly recommended — it improves deliverability and allows you to send from any address on that domain.
- Create an API key with send permission. In SendGrid, go to Settings → API Keys and create a key with at minimum Mail Send access. A restricted key scoped only to mail sending is safer than using a full-access key.
- Note your Event Webhook signing key (optional). If you want to validate webhook payloads for security, you can find this in SendGrid's Event Webhook settings after you configure the endpoint.
Mailrith fields
When creating a SendGrid connection in Mailrith, fill in the following fields:
- API Key: the SendGrid API key you created with Mail Send permission.
- From name: the display name that appears in the recipient's inbox — for example, "Acme Team".
- From email: the email address in the From field. Must match your verified sender identity in SendGrid (either a verified single sender or an address on a domain-authenticated domain).
SendGrid setup
- In SendGrid, go to Settings → API Keys and create or copy an API key with Mail Send permission.
- In Mailrith, create a new connection, select SendGrid, and enter the API key, From name, and From email.
- Save the connection and use Send test email to verify credentials and inbox delivery before going live.
Event webhook
SendGrid uses a single Event Webhook that delivers all delivery events — including bounces, spam reports, unsubscribes, opens, and clicks — to one endpoint. Mailrith only processes the bounce and spam report events to update subscriber statuses.
To configure the webhook:
- In Mailrith, open the connection row and click View webhooks. Copy the webhook URL.
- In SendGrid, go to Settings → Mail Settings → Event Webhook.
- Paste the Mailrith URL as the HTTP Post URL. Enable at minimum the Bounce and Spam Report event types.
- Save the settings. SendGrid will start sending events to Mailrith immediately.
SendGrid sends events for all messages sent through your account, not just those sent from Mailrith. Mailrith only processes events that match outgoing emails it initiated — events from other SendGrid senders are ignored.
Need help?
Reach the Mailrith team if you need help planning a workflow or troubleshooting a setup.
Related guides
Connect your email sending provider, configure sender identity, test delivery, and set up webhooks for bounce and complaint tracking.
Compose one-off email campaigns, define the audience with tags and segments, preview the result, and send immediately or schedule for later.
Build timed email series with individual delays, per-email audience filters, draft and publish controls, and step-level engagement analytics.