Create a decode job from an email. Supports two input modes via email.type:
EML mode (type: "eml"): Upload an .eml file as a Document via POST /documents (with an empty links array), then pass the document ID.
JSON mode (type: "json"): Pass the email body as a string (HTML or plain text, auto-detected). Optionally include metadata (from, to, cc, subject) and pre-uploaded attachment document IDs.
Provide either a shapeId or a magicInboxId to configure the decode pipeline. The response contains the created transport draft(s). Poll GET /drafts/{id} to track extraction progress.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
400Bad request — invalid EML file, document not yet uploaded, attachment document not yet uploaded, invalid magicInboxId, or missing/conflicting shapeId and magicInboxId
401unauthorized
404Document, attachment document, or MagicInbox not found
