InboxController

Import email into inbox from base64 MIME

Imports a raw RFC822/MIME email into the specified inbox regardless of the original To header. V1 accepts MIME-family formats such as .eml, message/rfc822, and raw MIME bytes only. Outlook .msg, mbox, and maildir are not supported in V1. By default MailSlurp rewrites the MIME Message-ID header to avoid imported message identity clashes. Set runPipeline=true to run the normal inbound receive pipeline after persistence.

post/inboxes/{inboxId}/emails/import

Request

  • Base URL: https://api.mailslurp.com
  • URL: https://api.mailslurp.com/inboxes/{inboxId}/emails/import
  • Auth: API key in header x-api-key

Path parameters

inboxIdstring uuid required

Request body

rawEmailBase64string required

Base64 encoded RFC822/MIME email contents. This should be the full raw email including headers and body, such as the bytes from an .eml file.

externalIdstring nullable

Optional external identifier for the imported email source. Useful for correlating imports back to another system.

runPipelineboolean nullable

When true the normal inbound receive pipeline runs after persistence, including automations, webhooks, transformers, forwarders, repliers, and related fanout. When false the email is stored only.

overrideMessageIdboolean nullable

When true MailSlurp rewrites the MIME Message-ID header before storing and parsing the email so imported messages do not collide with existing message identities.

Response

Created

Changes

No recorded changes to this operation across all 1 revision of this API.