Skip to content
You're viewing documentation for v0.6.0. It may be out of date.Go to latest
Email SDK
Esc
↑↓navigate↵open⌘Jpreview
On this page

SendGrid

Configure the Twilio SendGrid Mail Send API adapter.

SendGrid logo
SendGrid@opencoredev/email-sdk/sendgrid
Provider docs

Before live sends

Create a SendGrid API key with Mail Send permission and verify the sender identity or domain used in from. SendGrid account review, sandbox mode, or sender verification can block delivery even when the SDK payload validates.

Configure

Send

SendGrid maps Email SDK metadata to custom_args and tag values to categories.

Send with an attachment

Options

Option Type Required Notes
apiKey string Yes SendGrid API key.
baseUrl string No Defaults to https://api.sendgrid.com.
fetch typeof fetch No Useful for tests or custom runtimes.

See field support for headers, tags, metadata, and attachments.

Response

The adapter uses body id or message_id when present, then falls back to the x-message-id response header.

CLI smoke test

Last updated on