Skip to content

Connections

SendGrid

Support email in Slack with SendGrid Inbound Parse. Emails become conversations, replies go back through SendGrid, and signed Event Webhook bounces become alerts.

On this page

With SendGrid, emails parsed by Inbound Parse become Slack conversations, thread replies are sent through SendGrid, and bounces, drops and spam reports from the Event Webhook become alerts.

Setup

About five minutes in your DNS and SendGrid. Inbound emails become conversations. In Channlize, Connections → New connection → SendGrid. The setup screen shows the connection URL (the Destination URL with key) above these steps, with the secret fields and buttons at the step that needs them. Inbound Parse can't sign requests, so this URL carries a generated ?key=.

  1. Point a subdomain at SendGrid: add an MX record for a receiving subdomain (e.g. parse.your-domain.com) pointing to mx.sendgrid.net, priority 10.
  2. Add an Inbound Parse host: Settings → Inbound Parse → Add Host & URL.
  3. Paste the URL: pick the subdomain and domain, and paste the URL with key as the Destination URL. Leave POST the raw, full MIME message unchecked (raw mode is rejected), then click Add.

Optional:

  • Bounce, drop and spam report alerts: Settings → Mail Settings → Event Webhooks → Create new webhook. Paste the URL as the Post URL, select Bounced, Dropped and Spam Reports, turn on Enable Signed Event Webhook and save. Then open the webhook again and paste its Verification Key into Channlize.
  • Reply by email: Settings → API Keys → Create API Key (Open SendGrid API keys). Restricted Access with Mail Send set to Full Access. Paste it, then turn on Reply by email under Settings; the from address must be a verified sender or on an authenticated domain.

First event: the screen shows Waiting for the first event… until one arrives. Send an email to an address on your parse subdomain. Then click Done to keep the connection. Cancel deletes the draft and its URL.

Authentication

  • Inbound Parse (multipart form data): the generated key, as ?key= or HTTP basic auth.
  • Event Webhook: an ECDSA (P-256, SHA-256) signature of the timestamp and body, in X-Twilio-Email-Event-Webhook-Signature and X-Twilio-Email-Event-Webhook-Timestamp, verified with your Verification Key.

Default mappings

EventAction
inboundConversation
bounce, dropped, spamreportAlert
deferred, delivered, processedLog

Event Webhook batches are split into one event each (up to 1,000 per batch), deduplicated on sg_event_id. Inbound emails can be up to 5 MB.

Two-way replies

Turn on replies and set a from address on a verified sender. Replies are sent through SendGrid's Mail Send API (the EU region is supported), threaded with the customer's email.