๐Ÿ”Œ Mail Attachment Downloader 4.0

Send email and document data to REST APIs.

Mail Attachment Downloader 4.0 turns each email, and the documents attached to it, into a call to your API: the address, headers and a JSON, XML or form body built from the email's fields and the values read out of its PDFs, with the files themselves if you like, retried when the other end is busy. The answer can be read back for the steps after it. It runs on your own Windows server, as a service.

Any MethodPOST, PUT, PATCH, GET, DELETE
Your PayloadJSON, XML, form or files
RetriesOn timeouts, 429 and 5xx
24x7As a Windows service
REST and JSON
XML
Form posts
Multipart file uploads
Bearer and Basic
API-key headers
Zapier
Use Case 1

A REST API call for each email or file

The Web hook step calls any address, with the request built from the rule's fields.

๐Ÿ“– See the feature

The Web hook step

  • Address and method: POST, PUT, PATCH, GET or DELETE, with fields in the address, such as /orders/{ORDER_NUMBER}.
  • Content type and body: JSON, XML, plain text, CSV or a form, with fields filled in and escaped for that format.
  • Headers: any name and value, such as Authorization: Bearer โ€ฆ or an API-key header.
  • Send files: none, the file it runs for, or every file the rule saved, as multipart/form-data beside the body.
  • Timeout and retries: waits 2, 4, 8โ€ฆ seconds between tries on timeouts, 408, 429 and 5xx answers.
The Web hook step posting invoice number, supplier, due date and total as JSON to an API, with retries, a timeout and an Authorization header

The Web hook step: an invoice's values as JSON, with an Authorization header and retries.

Use Case 2

The data your API actually needs

The request is only as good as what goes in it. The rule reads the values first.

๐Ÿ”Ž

Values from the documents

Invoice numbers, totals, order lines and customer IDs read from the email and its PDFs with patterns or AI, as fields in the body.

โ†ฉ๏ธ

Read the answer

Save the answer in a field, then pick values out of the JSON with a Handlebars template, such as {{order.id}}, for a file name or the next call.

๐Ÿšฆ

Fails loudly

An answer the API rejects fails the step: the rule's If something fails steps run, the email can be moved to Needs attention, and History records it.

Use Case 3

Or hand it to Zapier

The Send to Zapier preset is the same step, ready for a Zap's webhook address, for teams that already automate there.

Send to Zapier

  • Zap's address and the fields to send, posted as JSON once per email.
  • The sender, subject, date, account and saved path are included, with the files under More options.
  • The reading stays on your PC: only the values you pick go to Zapier, not the mailbox.
The web hook step with the Send to Zapier preset: the Zap address and the fields to send.

Send to Zapier: the Zap's address and the fields to send.

Examples

Ways teams use it with REST APIs

๐Ÿญ

ERP or warehouse imports

Each order PDF's values posted as JSON to your ERP or WMS order endpoint, the PDF attached as multipart.

๐ŸŽซ

Ticketing

Alert emails from monitoring tools posted to your ticketing API, retried while it is busy.

๐Ÿง 

Your own AI or OCR service

Each attachment sent to an internal classification or OCR API, and its answer used to name and file the document.

How it fits together

From the inbox to your API

Rules pick the emails, read the values and call the API, as mail arrives.

1

An email arrives

Any mailbox, any provider

2

A rule matches it

Sender, subject, attachment name

3

Values are read

Patterns or AI, as you choose

4

Your API is called

Retried until it answers

Why rules and AI, not just AI?

An AI agent can call an API, but it reads every email through its service, spends tokens on each one, and may shape the request differently tomorrow, which an API won't accept. A rule sends the same request every time, escaped for its format, retries when the API is busy and records the answer. AI, if you want it, only reads the values that go into the body, and its answers can become patterns. How rules and AI work together

How it stacks up

PRO vs. the usual ways to get email data into an API

A custom script works until the mailbox, the format or the person who wrote it changes.

CapabilityMail Attachment
Downloader PRO
A custom script
you maintain
Cloud automation
(Zapier-style)
Email parsing
services
Gmail, Microsoft 365, Exchange and any IMAP mailbox, with sign-in handledโœ“You write itVaries by connectorForwarding only
Values read out of PDFs and attachmentsโœ“You write itWith some workโœ“
Files sent with the data, as multipartโœ“You write itVariesVaries
Retries on timeouts, 429 and 5xx, and a record of each callโœ“You write itVariesVaries
Any number of emails and calls, with no per-task feesโœ“โœ“Usually billed per task or runUsually billed per email or page
Mail stays on your own systemsโœ“โœ“Passes through the platformPasses through the service
Questions

Frequently asked questions

How does it sign in to my API?

With headers: an Authorization header with Bearer or Basic, or your API's own key header. OAuth sign-ins that need a browser aren't built in; use a long-lived token or key.

Can it send the attachments too?

Yes. Send the file it runs for, or every file the rule saved, as multipart/form-data beside the body (part payload for the body, part file for each file), or one file alone as the raw request body.

What happens when the API is down?

It retries on connection errors, timeouts, 408, 429 and 5xx answers, waiting 2, 4, 8 seconds and longer, up to the number of retries you set (3 by default). Other errors fail the step at once, so the rule's If something fails steps run.

Can it use values from the API's answer?

Yes. Save the answer in a field, and a Handlebars template picks values out of the JSON for later steps, such as a file name or another call.

Can another system start the work?

Yes: have it drop a file in a watched folder, SFTP server or cloud folder, or send an email. A watch sends each new file through your rules, and on to your API.

Which edition do I need?

PRO Rules Server, which has the Web hook step and the Send to Zapier preset, and the Windows service that runs it around the clock.

What you get

Which edition does what

Each edition includes everything in the ones before it: Free, PRO Backup, PRO Parser, PRO Rules Client, PRO Rules Server.

โœ“ Web hook

Any method, headers, body, files, retries and the answer kept. PRO Rules Server.

โœ“ Send to Zapier

The same step, ready for a Zap. PRO Rules Server.

โœ“ Fill a template (Handlebars)

Pick values out of a JSON answer, or build text and HTML. PRO Rules Server.

โœ“ Find fields with AI or patterns

Values from the email and its PDFs, for the request. PRO Rules Client and up.

โœ“ Run a script

PowerShell, a batch file or a program, for what an API call can't do. PRO Rules Server.

โœ“ Around the clock

The Windows service runs it with no one signed in. PRO Rules Server.

Related use cases

Other integrations

Let your API hear about every email that matters

Start the 30-day trial, add a Web hook step, and test it on a sample email.