Save an email as PDF, from .eml or Outlook .msg: header table, body, inline images, forwarded messages; attachments embedded as files.
export KEY=bigapi_… # your key, once per terminal
curl -X POST https://api.bigapi.dev/v1/email/to-pdf -H "Authorization: Bearer $KEY" -F 'file=@message.eml' -o message.pdf
New keys come with 100 free operations, no signup: curl -X POST https://api.bigapi.dev/v1/keys. Failed calls cost nothing.
| Name | Meaning |
|---|---|
file required | E-mail saved as .eml or Outlook .msg file; header, text and attachments go into the PDF. |
pageFormat | Paper size of the PDF. Allowed: A4, LetterDefault: "A4" |
remoteImages | Load external images (http/https). Off by default: newsletter tracking pixels would otherwise be fetched from our server. JavaScript in e-mails never runs. Default: false |
embed | Embed the attachments as files in the PDF (up to 25 MB in total); false only lists them. Default: true |
Returns application/pdf. Response headers carry the cost (X-BigAPI-Cost) and notes about your input (X-BigAPI-Warnings).
Connect BiGapi as an MCP server: https://api.bigapi.dev/mcp (hosted) or npx -y @bigapi/mcp (local). Then ask in plain words; the agent finds email_to_pdf on its own.