The SendGrid integration sends email from your Archie app. Once connected, Archie exposes namespaced GraphQL operations (Documentation Index
Fetch the complete documentation index at: https://archie.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
sendgrid_*) for sending, managing contacts, and reading delivery stats.
A typed TypeScript SDK for integrations is coming with the next archie-app release. This page documents the GraphQL operation surface available today.
Enable the integration
Open Integrations in the left sidebar and pick SendGrid. You’ll need from your SendGrid dashboard:- API Key — generated in Settings → API Keys. Give it Mail Send permissions at minimum; add Marketing for contact and template features.
- Environment — pick the environment context (
Production,Staging, or a custom tag) so credentials route correctly.
What you can do
The integration adds operations across SendGrid’s core surfaces:- Send —
sendgrid_sendEmail,sendgrid_sendBulkEmail,sendgrid_sendTemplate - Contacts —
sendgrid_addContact,sendgrid_updateContact,sendgrid_deleteContact - Analytics —
sendgrid_getEmailStats,sendgrid_validateEmail
Sending email
A simple transactional email
CC, BCC, and attachments
to, cc, and bcc accept arrays of recipients. Attachments are passed as base64-encoded content:
Scheduled email
PasssendAt with an ISO 8601 timestamp to defer delivery:
Dynamic templates
For richer designs, use a SendGrid Dynamic Template (the template ID starts withd-):
Bulk sends
sendgrid_sendBulkEmail accepts an array of email payloads in a single call. Useful for onboarding sequences and one-off campaigns under SendGrid’s limits.
Contacts
Add, update, and delete recipients in your SendGrid contact lists:Analytics
Pull aggregate delivery metrics for a date range:sendgrid_validateEmail checks an address’s deliverability score before you send.
Webhooks
In SendGrid, go to Settings → Mail Settings → Event Webhook and point it at the Archie-generated webhook URL for your project. Configure the webhook signing key so Archie can verify events. Supported events includeprocessed, delivered, opened, clicked, bounce, dropped, spamreport, and unsubscribe. See Webhooks.
FAQ
What sender domains can I use?
What sender domains can I use?
Any domain you’ve authenticated in SendGrid. Domain authentication (SPF, DKIM) is required for reliable deliverability — single-sender verification works for testing but limits volume.
Why is my email going to spam?
Why is my email going to spam?
Almost always a sender authentication issue. Make sure you’ve completed domain authentication in SendGrid, set up DMARC, and that your
from address matches the authenticated domain. Warm new domains by sending gradually-increasing volume.Can I send marketing emails through this integration?
Can I send marketing emails through this integration?
Yes, including dynamic templates and contact list segmentation. For high-volume marketing campaigns specifically, SendGrid’s Marketing Campaigns UI gives you scheduling and analytics that the API doesn’t expose.
My API key returned 403 on email validation. What happened?
My API key returned 403 on email validation. What happened?
SendGrid’s email validation endpoint requires a paid Email Validation add-on. If your key doesn’t have it,
sendgrid_validateEmail falls back to a basic regex check and returns a slightly lower score with a note explaining why.How do I track which user clicked a link?
How do I track which user clicked a link?
Pass a
customArgs object on the send. SendGrid attaches it to every event for that message — Archie surfaces those custom args in the webhook events you receive.