Eml To Pdf
by format.halowerk.com in Documents & files
Render an e-mail (EML, RFC 5322/MIME) as a reproducible PDF with decoded headers, the text body (HTML reduced to text) and a list of attachments with size and SHA-256. Own MIME parser: unfolded headers with RFC 2047 encoded-words, nested multiparts, base64 and quoted-printable, charsets via the WHATWG/ICU decoders, RFC 2231 parameter continuations and encodings for file names, format=flowed (RFC 3676).
https://format.halowerk.com/v1/eml-to-pdf- Price
- $0.004
- per call in USDC
- Uptime
- 95.8%
- last 30 days
- Response time
- 48 ms
- 147 ms slowest 5%
- Last check
- Passed
- 12 h ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://format.halowerk.com/v1/eml-to-pdf
Each call costs $0.004 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://format.halowerk.com/v1/eml-to-pdf
content-type: application/json
{
"eml": "From: Alice <[email protected]>\r\nTo: Bob <[email protected]>\r\nSubject: Hello\r\nDate: Mon, 02 Nov 2026 09:00:00 +0100\r\n\r\nHi Bob,\r\nsee you tomorrow.\r\n"
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
eml | string | No | |
eml_base64 | string | No | |
include_pdf | boolean | No | Default: true. |
page_size | string | No | One of: A4, Letter. Default: "A4". |
Example response
The provider's example. We can't check it without paying.
Example response, 32 lines
{
"limitations": [
"The PDF embeds Liberation Sans/Mono (Latin incl. extended, Greek, Cyrillic); characters outside it, for example CJK or emoji, appear as \"?\" (unsupported_characters).",
"Inline images are listed as attachments and not drawn."
],
"result": {
"attachments": [],
"body_chars": 26,
"body_excerpt": "Hi Bob,\nsee you tomorrow.\n",
"body_source": "text/plain",
"headers": {
"cc": null,
"date": "Mon, 02 Nov 2026 09:00:00 +0100",
"date_iso": "2026-11-02T08:00:00.000Z",
"from": "Alice <[email protected]>",
"in_reply_to": null,
"message_id": null,
"subject": "Hello",
"to": "Bob <[email protected]>"
},
"pages": 1,
"pdf_base64": "JVBERi0xLjcKJYGBgYEKCjggMCBvYmoKPDwKL0ZpbHRlciAvRmxhdGVEZWNvZGUKL0xlbmd0aCA1MDIKPj4Kc3RyZWFtCnicvVTJTiMxEL37K3xGonGVt7KERqJJMhcuDH1DHEDMjEAsYpH4/SnbZeJkGlAuKHrxUu6uV++V+0mNkzI6/57/qoOTm6vfz5evN48PZ5cPL/vj4931fjSJHJlISYPT0x+F/H+ioDwE2hsdox04Ot2rQ2MMMJBhBe6Hnm7VtKeWkzpVT18nTNFhIPSBdBr8fEYfB/ue0TNCzsSIO2TLLMn4RGE+EbjtTH1trsscy5v+jyXGURcbGccSWzCWjJWcH+vrAXbXyxsXEpr4sV7OdQ7Rjq6wBuitDZ/q1GcAqRXsWp8yb3vf… [truncated, 27236 chars]",
"pdf_bytes": 20425,
"pdf_sha256": "3ea4e37b45ea3a5eb38a47e0c7f68e793b06c645111961e419a116b97ce9a641",
"source_bytes": 147,
"source_sha256": "643552c00ab2b0cb64b1e3ea39e086a0f39271e1c0ba09a3a67c95ba88a91ed9",
"unsupported_characters": 0,
"warnings": []
},
"service": "eml-to-pdf",
"status": "success"
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.004.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://format.halowerk.com/v1/eml-to-pdf' \
-H 'content-type: application/json' \
--data-raw '{"eml":"From: Alice <[email protected]>\r\nTo: Bob <[email protected]>\r\nSubject: Hello\r\nDate: Mon, 02 Nov 2026 09:00:00 +0100\r\n\r\nHi Bob,\r\nsee you tomorrow.\r\n"}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://format.halowerk.com/v1/eml-to-pdf' \
-H 'content-type: application/json' \
--data-raw '{"eml":"From: Alice <[email protected]>\r\nTo: Bob <[email protected]>\r\nSubject: Hello\r\nDate: Mon, 02 Nov 2026 09:00:00 +0100\r\n\r\nHi Bob,\r\nsee you tomorrow.\r\n"}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.004 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.004" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.004 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fformat.halowerk.com%2Fv1%2Feml-to-pdf&method=POST
const res = await pay("https://format.halowerk.com/v1/eml-to-pdf", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"eml": "From: Alice <[email protected]>\r\nTo: Bob <[email protected]>\r\nSubject: Hello\r\nDate: Mon, 02 Nov 2026 09:00:00 +0100\r\n\r\nHi Bob,\r\nsee you tomorrow.\r\n"
}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.004 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.004"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://format.halowerk.com/v1/eml-to-pdf",
json={
"eml": "From: Alice <[email protected]>\r\nTo: Bob <[email protected]>\r\nSubject: Hello\r\nDate: Mon, 02 Nov 2026 09:00:00 +0100\r\n\r\nHi Bob,\r\nsee you tomorrow.\r\n",
},
)
print(res.status_code, res.text)Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 12 h ago | Passed | 402 | 40 ms | $0.004 |
| 2 days ago | Timed out | - | - | - |
| 4 days ago | Passed | 402 | 118 ms | $0.004 |
| 4 days ago | Passed | 402 | 40 ms | $0.004 |
| 5 days ago | Passed | 402 | 44 ms | $0.004 |
Show 10 older checks
| 5 days ago | Passed | 402 | 123 ms | $0.004 |
| 5 days ago | Passed | 402 | 39 ms | $0.004 |
| 6 days ago | Passed | 402 | 131 ms | $0.004 |
| 6 days ago | Passed | 402 | 147 ms | $0.004 |
| 6 days ago | Passed | 402 | 40 ms | $0.004 |
| 7 days ago | Passed | 402 | 120 ms | $0.004 |
| 7 days ago | Passed | 402 | 117 ms | $0.004 |
| 7 days ago | Passed | 402 | 48 ms | $0.004 |
| 8 days ago | Passed | 402 | 40 ms | $0.004 |
| 8 days ago | Passed | 402 | 126 ms | $0.004 |