DevicePreviewsController

Create a device preview run from HTML

post/emails/device-previews/import/html

Request

  • Base URL: https://api.mailslurp.com
  • URL: https://api.mailslurp.com/emails/device-previews/import/html
  • Auth: API key in header x-api-key

Request body

htmlstring required

HTML body to wrap into a minimal RFC822/MIME message before creating the device preview run.

subjectstring nullable

Optional email subject for the generated MIME.

fromstring nullable

Optional From address for the generated MIME.

tostring nullable

Optional To address for the generated MIME.

sourceAliasstring nullable

Optional source label to attach to the preview run.

externalIdstring nullable

Optional external source ID for correlating this import with another system.

Example request

{
  "options": {
    "targets": [
      "apple_mail_macos"
    ]
  }
}

Response

OK

Changes

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