SendGrid API
External SMTP email delivery provider used by BookWorm to submit rendered order notification emails over authenticated SMTP.
Integration Purpose & Boundary
SendGrid is BookWorm’s external email delivery provider in publish environments, offloading internet mail routing, sender reputation, and downstream delivery. At runtime, only Notification APIServicev1.0.0Notification APIInternal background worker that consumes order commands from Kafka, renders MJML email templates, and submits mail over ...SubscribesPlaceOrderCommand, CancelOrderCommand +1APIsAsyncAPIOwnerplatform-engineering-teamDiagramRepositoryOpen docs integrates with SendGrid to transmit rendered order lifecycle emails.
Although SendGrid’s platform exposes a REST v3 HTTP API, BookWorm does not invoke SendGrid HTTP endpoints at runtime—Notification APIServicev1.0.0Notification APIInternal background worker that consumes order commands from Kafka, renders MJML email templates, and submits mail over ...SubscribesPlaceOrderCommand, CancelOrderCommand +1APIsAsyncAPIOwnerplatform-engineering-teamDiagramRepositoryOpen docs submits rendered MIME messages exclusively over authenticated SMTP (using a local test inbox during development).
Integration Profile
| Property | Value |
|---|---|
| Provider / Sidecar | Twilio SendGrid (SMTP relay in publish environments; local test inbox in development) |
| BookWorm Consumers | Notification APIServicev1.0.0Notification APIInternal background worker that consumes order commands from Kafka, renders MJML email templates, and submits mail over ...SubscribesPlaceOrderCommand, CancelOrderCommand +1APIsAsyncAPIOwnerplatform-engineering-teamDiagramRepositoryOpen docs only |
| Runtime Transport & Protocol | SMTP over TLS (port 587) |
| Auth / Credential Boundary | API key injected via runtime secret configuration (apikey username); domain-authenticated sender identity recommended for production |
| Data / PII Sensitivity | High — carries customer recipient email addresses and order notification content; redact recipient metadata in logs and never log rendered email bodies |
| Failure / Fallback Behavior | Bounded client retries followed by Kafka listener backoff and dead-letter routing on Notification Dead Letter QueueChannelv1.0.0Notification Dead Letter QueueKafka dead-letter topic owned by the platform team that captures order notification commands that Notification API could...Ownerplatform-engineering-teamOpen docs; no delivery webhooks ingested |
Visualizations & Specifications
Delivery Integration Context
Loading graph...
Service Interactions
- Least-privilege API keys: Provision SendGrid keys scoped strictly to mail-send permissions, store them in the deployment secret store, and rotate or revoke keys immediately if exposed. - Submission vs. business truth: SMTP acceptance confirms only provider handoff, not recipient inbox delivery or order status.
Related Documentation
- API and contracts indexCustom DocAPI and contracts indexConsolidated index of BookWorm HTTP v1, gRPC, AG-UI, MCP, A2A, and Kafka/Wolverine contracts grouped by service with aut...Ownerplatform-engineering-teamOpen doc — Consolidated service, HTTP, gRPC, and Kafka directory.
- Notification APIServicev1.0.0Notification APIInternal background worker that consumes order commands from Kafka, renders MJML email templates, and submits mail over ...SubscribesPlaceOrderCommand, CancelOrderCommand +1APIsAsyncAPIOwnerplatform-engineering-teamDiagramRepositoryOpen docs — Consuming Kafka email worker.
- SendGridSystemv1.0.0SendGridExternal email delivery platform used by BookWorm to submit rendered transactional emails over authenticated SMTP. Ownerplatform-engineering-teamDiagramOpen docs — External SendGrid system boundary.
- domains/bookworm/subdomains/platform/engineering/platform-integration-boundaries — Platform service and external provider boundaries.