SendGrid
SendGrid
Definition: A transactional and marketing email API platform built for developers who need to send email programmatically at scale with predictable deliverability, acquired by Twilio in 2019 for roughly $3 billion and now operated as Twilio’s email product line. Founded in 2009, it was one of the first companies to treat “send an email” as a proper API-first developer product rather than a marketing-suite feature bolted on top of a campaign builder.
Core Services & Concepts
- REST API — REST API, plus SMTP relay support for apps that just want to point an existing mail client at SendGrid’s servers instead of integrating the API directly
- Event Webhook — Webhook, notifies your app of email opens, bounces, spam reports, and clicks, essential for tracking deliverability and pruning bad addresses over time
- Dynamic Templates — server-side templates with Handlebars-style variable substitution, so application code sends a template ID plus data rather than building raw HTML per email
- Domain authentication (SPF/DKIM/DMARC) — SendGrid requires verifying sending domains via these DNS records to maintain sender reputation and land in inboxes instead of spam folders
- IP warm-up / dedicated IPs — high-volume senders can get a dedicated IP, but it must be “warmed up” with gradually increasing volume or its reputation tanks and mail gets filtered
- Rate limiting & suppression lists — Rate Limiting, SendGrid automatically maintains bounce/spam-report/unsubscribe suppression lists per account, silently dropping sends to suppressed addresses unless explicitly overridden
How Pricing Works
- Tiered primarily by monthly email volume (a fixed number of emails per month per tier) rather than contact/profile count, unlike Mailchimp or Klaviyo
- A limited free tier exists for very low-volume testing and small projects, mainly a funnel into paid usage-based tiers
- Overage charges apply once an account exceeds its plan’s monthly send allotment, which can produce unpredictable bills for spiky-traffic applications
- Marketing Campaigns (the non-transactional side) and dedicated IPs are priced as separate add-ons layered on top of core API sending
- Enterprise-volume senders negotiate custom contracts, similar to Stripe/Twilio’s broader pattern of a public rate card that large customers don’t actually pay
Pros
- Built for developers, with SDKs and a clean API-first workflow that fits directly into application code
- Reliable deliverability infrastructure, backed by Twilio’s broader messaging reputation systems
- Handles both transactional (password resets, receipts) and marketing email from the same platform
- Dynamic Templates and the Event Webhook give a fairly complete send-and-track workflow without needing custom infrastructure
- Strong SMTP relay fallback for legacy apps that can’t easily add API-based sending
Cons
- Less friendly UI for non-technical marketers compared to Mailchimp; the marketing-campaign side of the product feels secondary to the transactional API
- Pricing model can be confusing, tiered by monthly email volume with overage charges that differ from simple per-contact pricing
- Deliverability still depends heavily on the sender doing domain authentication and list hygiene correctly, SendGrid can’t fully compensate for a poorly maintained list
- Weaker native behavioral segmentation and e-commerce data integration than Klaviyo, since it’s built around sending mechanics rather than customer/order data
- Some reported reliability incidents and support responsiveness complaints since the Twilio acquisition, a common gripe as the product scaled across Twilio’s broader customer base
Comparison: SendGrid vs Mailchimp vs Klaviyo
| SendGrid | Mailchimp | Klaviyo | |
|---|---|---|---|
| Primary strength | Developer-first transactional email at scale | Ease of use for non-technical marketers | E-commerce-native behavioral data and revenue attribution |
| Typical pricing model | Tiered by monthly email volume, with overages | Tiered by audience/contact count | Tiered by profile count, scales fast at high volumes |
| Best fit | Developers sending transactional + programmatic marketing email | Small businesses sending newsletters without developer involvement | E-commerce/DTC brands wanting behavior-driven email and SMS |
| API or product style | REST API plus SMTP relay, API-first developer tool | REST API organized around audiences/campaigns, UI-first | REST API plus dedicated Track/Identify event API, deep e-commerce integrations |
Best For
- Developers needing to send transactional emails programmatically, like signup confirmations or password resets
- Applications needing both transactional and bulk marketing email from a single API without adopting two separate vendors
Real Examples
- Used by countless SaaS products for password reset, receipt, and notification emails
- Airbnb and Spotify are commonly cited as large-scale senders that have used SendGrid infrastructure for transactional mail
- Positioned as part of Twilio’s broader communications platform alongside SMS and voice APIs, often adopted by teams already using Twilio for other channels
Use Cases
- Transactional email (receipts, password resets)
- Programmatic marketing email at scale
- Notification and alerting systems (application errors, account activity)
- Multi-tenant SaaS platforms sending on behalf of many customer sub-accounts
- Cold outbound or bulk-send infrastructure for teams building their own marketing tooling on top of a raw sending API
Integration Notes & Common Pitfalls
- Domain authentication (SPF/DKIM/DMARC) is not optional in practice, unauthenticated sending domains get throttled or filtered by major inbox providers within days
- New accounts and dedicated IPs need a gradual warm-up schedule, sending full volume immediately from a cold IP tanks deliverability and can trigger account review
- The suppression list is automatic and silent, a contact who bounced or marked spam once won’t receive future sends even if your application logic thinks the send succeeded
- Event Webhook payloads can arrive out of order or be retried, treat delivery/bounce/open events idempotently rather than assuming a single authoritative sequence (see Webhook)
Code Example
// Sending a transactional email via the SendGrid API
const sgMail = require('@sendgrid/mail');
sgMail.setApiKey(process.env.SENDGRID_API_KEY);
await sgMail.send({
to: 'customer@example.com',
from: 'no-reply@yourapp.com', // must be a verified/authenticated sender
templateId: 'd-abc123456789',
dynamicTemplateData: { firstName: 'Jane', resetLink: 'https://...' },
});
Code Example: Handling the Event Webhook
// Express endpoint receiving SendGrid's Event Webhook payload (an array of events)
app.post('/webhooks/sendgrid', express.json(), (req, res) => {
for (const event of req.body) {
if (event.event === 'bounce' || event.event === 'spamreport') {
// Suppress this address in your own database too — don't assume
// SendGrid's suppression list alone protects every future send path
}
}
res.sendStatus(200);
});
FAQ
Should password-reset emails use SendGrid’s transactional API or its marketing tools?
The transactional API (mail.send) — marketing campaigns are batch sends meant for newsletters, while transactional sends are individual, triggered by application events, and expected to arrive within seconds.
Why did my emails suddenly start landing in spam? Almost always domain authentication or reputation related — missing/broken SPF-DKIM-DMARC records, a spike in bounce/spam-report rate, or sending high volume from an unwarmed IP are the most common causes.
Is SendGrid the same product as Twilio SMS? No — they’re separate products under the same parent company; SendGrid handles email while Twilio’s core platform handles SMS/voice, though many teams use both from a single Twilio account.
History
- Founded in 2009, among the earliest companies to offer email delivery as a dedicated API product rather than a marketing-suite feature
- Grew primarily by serving developers directly, becoming a common default recommendation in “how do I send email from my app” developer discussions
- IPO’d on the NYSE in 2017 before being acquired
- Acquired by Twilio in 2019 for roughly $3 billion, folding SendGrid’s email infrastructure into Twilio’s broader communications platform