Skip to main content
POST
Node.js SDK

Authorizations

Authorization
string
header
required

API key authentication. Use 'Authorization: Bearer YOUR_API_KEY' where YOUR_API_KEY is obtained from the Migma dashboard under Settings → Developers → API Keys.

Body

application/json
html
string
required

Email HTML content to preview

devices
string[]
required

Specific devices to render on

Minimum array length: 1
subject
string
default:Email Preview

Email subject line (for display purposes)

name
string

Custom name for the preview

Response

Preview creation started

success
boolean
data
object