# twilio-sendgrid-inbound-parse

> Claude/Codex skill by [@twilio](https://omgskills.com/library/twilio/index.md) · 37 stars · Updated 2026-10-22

Receive inbound email via SendGrid Inbound Parse webhook. Covers MX record setup, parsed vs raw mode, handling attachments, and common pitfalls. Use when building email-to-app workflows like support ticket creation or email processing pipelines. Requires a SendGrid API key (SG.-prefix) — not applicable to the Twilio Email API (comms.twilio.com).

## Install

```sh
git clone https://github.com/twilio/ai /tmp/ai && ln -s /tmp/ai/skills/sendgrid/twilio-sendgrid-inbound-parse ~/.claude/skills/twilio-sendgrid-inbound-parse
```

## From README

Overview Inbound Parse converts incoming email into HTTP POST requests to your webhook endpoint. SendGrid receives the email at your domain's MX records and forwards the parsed content to your application. --- Configure MX records: Point your domain (or subdomain) to mx.sendgrid.net Add webhook: SendGrid Console \> Settings \> Inbound Parse \> Add Host & URL Choose mode: Parsed (default) or Raw Subdomain recommended: Use inbound.yourdomain.com to avoid disrupting existing email on yourdomain.com. --- Parsed Mode (Default) SendGrid extracts fields and POSTs them as form data: | Field | Description | |-------|-------------| | from | Sender address ("Name ") | | to | Envelope recipient | | subject | Email subject line | | text | Plain text body | | html | HTML body | | envelope | JSON string with to array and from | | attachments | Number of attachments (as string) | | attachment-info | JSON metadata for each attachment | | attachment1, attachment2...

## Links

- HTML page: https://omgskills.com/library/twilio/ai/skills/sendgrid/twilio-sendgrid-inbound-parse/
- GitHub: https://github.com/twilio/ai
- Author: [@twilio](https://omgskills.com/library/twilio/index.md)

## More from this repo

- [twilio-account-setup](https://omgskills.com/library/twilio/ai/skills/twilio/twilio-account-setup/index.md) — Used to create and configure a Twilio account from scratch.
   - [@twilio](https://omgskills.com/library/twilio/index.md) · 37 stars
- [twilio-agent-augmentation-architect](https://omgskills.com/library/twilio/ai/skills/twilio/twilio-agent-augmentation-architect/index.md) — Planning skill for augmenting human agents with real-time AI intelligence.
   - [@twilio](https://omgskills.com/library/twilio/index.md) · 37 stars
- [twilio-ai-agent-architect](https://omgskills.com/library/twilio/ai/skills/twilio/twilio-ai-agent-architect/index.md) — Planning skill for AI-powered conversational agents.
   - [@twilio](https://omgskills.com/library/twilio/index.md) · 37 stars
