Email Parsing API
That Actually Works
Stop wrestling with raw email headers and MIME parsing. Get clean, structured email data from any email with our professional parsing API. Built for developers who value their time.
No credit card required • 1,000 emails/month free • Parse immediately
Complete Email Data Extraction
Headers & Metadata
Message-ID, In-Reply-To, References, Date, and all custom headers extracted and structured.
Content Parsing
Separate plain text and HTML content with proper encoding and structure preservation.
Address Parsing
From, To, CC, BCC, and Reply-To addresses parsed with names and email addresses separated.
Attachment Processing
Automatic attachment extraction with filename, content type, and size detection.
Security Analysis
SPF, DKIM, DMARC validation plus spam filtering and malware detection built-in.
Thread Analysis
Intelligent conversation threading with reply chain reconstruction and context preservation.
Simple Email Parsing API
Send raw email content to our parsing API and get back clean, structured data. Perfect for processing stored emails or custom integrations.
API Request
POST https://api.inbound.new/v2/parse Authorization: Bearer YOUR_API_KEY Content-Type: application/json { "rawEmail": "From: sender@example.com\n To: recipient@yourapp.com\n Subject: Test email\n Content-Type: text/plain\n\n Hello, this is a test email with an attachment." }
Parsed Response
{ "success": true, "parsedData": { "messageId": "<abc123@example.com>", "date": "2024-01-15T10:30:00Z", "from": { "address": "sender@example.com", "name": "John Doe" }, "to": [ {"address": "recipient@yourapp.com"} ], "subject": "Test email", "textBody": "Hello, this is a test...", "htmlBody": null, "attachments": [ { "filename": "document.pdf", "contentType": "application/pdf", "size": 12345, "url": "https://storage.inbound.new/..." } ], "headers": { "X-Custom-Header": "value" } } }
Advanced Email Parsing Capabilities
MIME Parsing
Handle complex multipart emails, nested MIME structures, and mixed content types automatically.
Header Analysis
Extract and parse all email headers including authentication, routing, and custom headers.
Content Extraction
Separate plain text and HTML content with smart encoding handling and structure preservation.
Attachment Processing
Extract, decode, and store attachments with metadata including filename, size, and content type.
TypeScript SDK for Email Parsing
Get full type safety and IntelliSense support with our TypeScript SDK. Makes email parsing development fast and error-free.
TypeScript Email Parsing Example
import { createInboundClient } from '@inboundemail/sdk' const inbound = createInboundClient({ apiKey: process.env.INBOUND_API_KEY }) // Parse email from raw source const result = await inbound.emails.parse({ rawEmail: emailSource }) // Fully typed response with IntelliSense const parsedEmail = result.parsedData // Access data with full type safety console.log('From Name:', parsedEmail.from.name) console.log('From Email:', parsedEmail.from.address) console.log('Subject:', parsedEmail.subject) console.log('Text Body:', parsedEmail.textBody) console.log('HTML Body:', parsedEmail.htmlBody) // Process attachments with types parsedEmail.attachments.forEach((attachment) => { console.log('Filename:', attachment.filename) console.log('Content Type:', attachment.contentType) console.log('Size (bytes):', attachment.size) console.log('Download URL:', attachment.url) }) // Access headers and metadata console.log('Message ID:', parsedEmail.messageId) console.log('Date:', parsedEmail.date) console.log('In Reply To:', parsedEmail.inReplyTo) console.log('References:', parsedEmail.references) // Custom headers console.log('Custom Headers:', parsedEmail.headers)
Flexible Integration Options
REST API
Standard REST endpoints for parsing emails from any language or framework.
Real-time Webhooks
Automatic parsing with webhook delivery for real-time email processing workflows.
TypeScript SDK
Native SDK with full type definitions and IntelliSense support for faster development.
Common Email Parsing Scenarios
Support Ticket Creation
Parse support emails to automatically create tickets with proper categorization and routing.
Order & Invoice Processing
Parse order confirmations, invoices, and receipts to extract structured business data.
Lead Qualification
Parse contact form emails to extract lead information and automatically score prospects.
Simple Email Parsing Pricing
Start with 1,000 parsed emails free every month. Scale affordably as your email processing grows.
Ready to Parse Emails Like a Pro?
Join thousands of developers who trust inbound for professional email parsing and processing.
✓ 1,000 emails/month free ✓ TypeScript SDK ✓ Structured data ✓ No setup fees