Skip to main content
POST
Create a new postcard design. You can provide custom HTML directly or a text prompt for AI-powered HTML generation. Instant generation: Unlike image-based mailing APIs, design generation from a prompt is instant. The generated HTML is returned immediately in the response — no polling required.
string
required
Design name
string
AI prompt to generate an HTML design. Either prompt or html_front is required.
string
Custom HTML for the front side. Either prompt or html_front is required.
string
Custom HTML for the back side
string
default:"4x6"
Postcard size: 4x6, 6x9, 6x11
string
default:"landscape"
Orientation: landscape or portrait
string
Layout preset (e.g., l-left-image, l-split-equal)
string
Theme preset (e.g., professional, warm-friendly)
boolean
default:"true"
Include a Street View image placeholder in the design
boolean
default:"false"
Automatically publish the design after creation