Email automation

Email Parser API — Turn Emails into Structured JSON

Email parser API that converts order confirmations, leads, support tickets and forwarded attachments into clean JSON automatically — no regex, no templates. Free to try.

6 min readUpdated April 14, 2026
3 min
average time saved per manually keyed email

What DocPeel extracts

No fixed columns or rigid schema. The LLM reads your document and returns clean, structured JSON automatically — or you define your own template to control the exact output shape.

Smart auto-extraction
Upload any document and the LLM intelligently surfaces all relevant data as clean JSON. No schema setup, no field mapping — it adapts to whatever your document contains.
Custom templates
Need specific field names, data types, or a fixed output structure? Define a template once and every extraction follows your schema exactly.

Why email is still the hardest data source to automate

Email is the universal inbox for business: orders arrive, leads respond, suppliers confirm, and customers complain — all in unstructured prose with no consistent schema. Regex-based parsers break the moment a sender changes their email template. Zapier email parsers need per-sender training and still miss edge cases.

The only practical approach is a model that reads the email the way a human would and extracts whatever fields the downstream system needs. That is what DocPeel does.

Common email workflows DocPeel automates

Order confirmation emails: extract order number, customer details, SKUs, quantities, and totals and post them to an order management system or Google Sheet the moment they arrive.

Lead capture emails: pull contact name, company, phone, country, and message from any inbound enquiry and create a CRM contact automatically — no Zap training required.

Support ticket creation: extract issue type, product mentioned, urgency signals, and customer contact info from support emails and create tickets in your helpdesk.

Supplier confirmations: parse purchase order acknowledgements for PO number, confirmed quantities, delivery dates, and any line-item deviations.

Handling attachments in the same job

A significant share of business emails arrive with a PDF, spreadsheet, or image attached. DocPeel processes the email body and its attachments together in a single extraction job, returning a unified JSON payload that includes both inline fields and any data found in attachments.

This means an order confirmation email that includes an attached invoice produces one result with all fields — not two separate jobs to correlate manually.

Routing results to your stack in real time

DocPeel delivers results via webhook the moment extraction completes. A simple POST receiver can create Shopify orders, post a Slack notification, or insert a row in a Google Sheet — without any polling loop.

For higher volumes, the REST API supports batch submission and async result polling with configurable callback URLs.

Who uses this

  • Sales teams capturing leads from inbound email
  • E-commerce operations processing order confirmations
  • Customer support teams auto-creating helpdesk tickets
  • Operations teams parsing supplier and logistics emails
  • Marketers routing form-submission emails to CRM

Export formats

JSONCSVWebhookGoogle Sheets

Native integrations

Google SheetsSlackWebhooksDropbox

Frequently asked questions

Does DocPeel read HTML emails correctly?

Yes. The parser handles plain text, HTML, and multipart MIME emails. Tables in HTML bodies are extracted as structured arrays, and inline images are processed alongside text fields.

Can I forward emails directly to DocPeel?

Yes. Every workspace has a dedicated inbound email address. Forwarding or CC-ing that address triggers extraction automatically with results available via webhook or the dashboard.

How does DocPeel handle email threads?

When a thread is forwarded, DocPeel extracts fields from the most recent message by default. You can configure extraction from a specific reply in the thread or from the full thread body.

What about emails with multiple attachment types?

Attachments are extracted in parallel and results are merged into a single job payload. PDF invoices, CSV spreadsheets, and inline images from the same email are all processed together.

Ready to automate your email automation workflow?

Start free and extract your first document in minutes. No credit card, no template configuration, no per-document fees to start.