/decode

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.

Language
Credentials
Header
URL
Response
Click Try It! to start a request and see the response here!