Export a project

Counts against the workspace's monthly export allowance.

post/projects/{id}/export

Request

  • Base URL
    https://api-postcards.designmodo.com/api/v1
  • Auth
    HTTP bearer

Path parameters

idstring required

The numeric project id or the short hex id.

Request body

imageHostingboolean

true: the HTML points at hosted images. false: a ZIP with the images and fonts inside.

cdnboolean

Serve hosted images from a CDN (Pro plan).

minifyboolean

Minified markup.

format'json' | 'html'

With image hosting: the HTML inside a JSON body, or the raw HTML.

variablesobject

Placeholder values to fill in, for example {"{{first_name}}": "Alex"}. Placeholders left out stay as they are.

Response

With imageHosting true: the HTML, as JSON or raw depending on format. With imageHosting false: a ZIP with the HTML, images and fonts.

htmlstring

Changes

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