SendGrid migration guide

Migrate from SendGrid without a rewrite

Postscale covers the SendGrid pieces most product teams depend on: REST sending, SMTP relay, event webhooks, inbound parse, templates, suppressions, and domain authentication.

Migration scope

  • Replace SendGrid Mail Send with POST /v1/send.
  • Map categories and custom_args to Postscale tags and metadata.
  • Replace Inbound Parse with structured inbound email webhooks.
  • Keep API and SMTP cutover paths available for rollback.

What changes when you move

SendGridPostscaleMigration note
Mail Send APIPOST /v1/sendNormalize personalizations into to, cc, bcc arrays and move custom_args into metadata.
Event WebhookPostscale webhooksSubscribe to delivery, bounce, complaint, open, click, and received events per endpoint.
Inbound ParseInbound Email APIPoint MX at Postscale and receive parsed JSON with headers, body, and attachments.
Dynamic TemplatesPostscale templatesImport HTML and Handlebars variables, then send by template slug or ID.
SuppressionsSuppression APIExport bounces, complaints, unsubscribes, and global suppressions separately before import.

Cut over in controlled steps

1

Mirror DNS

Add Postscale verification, DKIM, return-path, and optional MX records while the old provider keeps sending.

2

Convert code

Swap API credentials and normalize the send payload. Keep the old provider path behind a feature flag for rollback.

3

Move state

Import suppressions and template HTML, then configure delivery, bounce, complaint, and inbound webhooks.

4

Ramp traffic

Start at 10 percent, watch bounces and complaints by ISP, then increase volume as warming limits allow.

Send call conversion

SendGrid
import sgMail from "@sendgrid/mail";

sgMail.setApiKey(process.env.SENDGRID_API_KEY);

await sgMail.send({
  from: "Acme <alerts@example.com>",
  to: "user@example.com",
  subject: "Welcome",
  html: "<p>Hello from Acme</p>",
  categories: ["onboarding"],
  customArgs: { user_id: "usr_123" },
});
Postscale
await fetch("https://api.postscale.io/v1/send", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.POSTSCALE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    from: "Acme <alerts@example.com>",
    to: ["user@example.com"],
    subject: "Welcome",
    html_body: "<p>Hello from Acme</p>",
    tags: ["onboarding"],
    metadata: { user_id: "usr_123" },
  }),
});

Production checklist

Lower DNS TTL to 300 seconds at least 24 hours before cutover.
Keep both DKIM selectors published during the transition.
Import hard bounces, complaints, unsubscribes, and manual suppressions before the first production send.
Run webhook handlers in dual-shape mode until all old-provider events have drained.
Send seed tests to Gmail, Outlook, Yahoo, iCloud, and a corporate Microsoft 365 tenant.
Cut over early in the week and avoid final traffic moves on Friday.
Monitor delivery, bounce, deferred, and complaint rates by ISP after each traffic increase.
Keep the old account active until delayed events and user replies have stopped arriving.

Frequently asked questions

Can SendGrid and Postscale run at the same time?

Yes. Publish both DKIM selectors, keep SendGrid active, and split traffic in your application until Postscale delivery metrics are stable.

What replaces SendGrid Inbound Parse?

Postscale inbound email webhooks receive parsed message metadata, bodies, headers, and attachments after you point MX records at Postscale.

Do I need to rewrite all templates?

No. Keep rendering HTML in your app or import template HTML and variables into Postscale templates.