Dynamic Mockups

App · 7 actions

Browse mockup templates and render designs.

Actions

ActionWhat it does
Create a catalogCreate a catalog.
Create a collectionCreate a collection.
Get a mockup templateGet a mockup template.
List catalogsList catalogs.
List collectionsList collections.
List mockup templatesList mockup templates.
Render a mockupRender a mockup.

Create a catalog

Create a catalog.

Inputs

NamenametextRequired
The name of the custom catalog to create.

Outputs

dataobject
The response from Dynamic Mockups.
Example output
{
  "data": {
    "data": {
      "created_at": "example",
      "created_at_timestamp": 1,
      "name": "example",
      "type": "custom",
      "uuid": "example"
    },
    "message": "example",
    "success": true
  }
}

Create a collection

Create a collection.

Inputs

NamenametextRequired
The name of the collection to create.
Catalog uuidcatalog_uuidtext
Optional UUID of the catalog to place this collection in. If not provided, uses the default catalog.

Outputs

dataobject
The response from Dynamic Mockups.
Example output
{
  "data": {
    "data": {
      "catalog_id": 1,
      "created_at": "example",
      "id": 1,
      "is_published": 1,
      "name": "example",
      "slug": "example",
      "updated_at": "example",
      "uuid": "example",
      "workspace_id": 1
    },
    "message": "example",
    "success": true
  }
}

Get a mockup template

Get a mockup template.

Inputs

Mockupmockup_idtextRequired
The UUID of the mockup to retrieve.

Outputs

dataobject
The response from Dynamic Mockups.
Example output
{
  "data": {
    "data": {
      "collections": [
        {}
      ],
      "name": "example",
      "smart_objects": [
        {}
      ],
      "text_layers": [
        {}
      ],
      "thumbnail": "example",
      "thumbnails": [
        {}
      ],
      "uuid": "example"
    },
    "message": "example",
    "success": true
  }
}

List catalogs

List catalogs.

Inputs

None.

Outputs

dataobject
The response from Dynamic Mockups.
Example output
{
  "data": {
    "data": [
      {
        "created_at": "example",
        "created_at_timestamp": 1,
        "name": "example",
        "type": "example",
        "uuid": "example"
      }
    ],
    "message": "example",
    "success": true
  }
}

List collections

List collections.

Inputs

Catalog uuidcatalog_uuidtext
Optional UUID of the catalog to filter collections by.
Include all catalogsinclude_all_catalogstrue/false
Optional parameter to include collections from all catalogs. If false or omitted, only collections from the default catalog are returned. Set to true to fetch from all catalogs.

Outputs

dataobject
The response from Dynamic Mockups.
Example output
{
  "data": {
    "data": [
      {
        "created_at": "example",
        "created_at_timestamp": 1,
        "mockup_count": 1,
        "name": "example",
        "updated_at": "example",
        "updated_at_timestamp": 1,
        "uuid": "example"
      }
    ],
    "message": "example",
    "success": true
  }
}

List mockup templates

List mockup templates.

Inputs

Catalog uuidcatalog_uuidtext
Optional parameter to filter mockups by catalog UUID.
Collection uuidcollection_uuidtext
Optional parameter to filter mockups by collection UUID.
Include all catalogsinclude_all_catalogstrue/false
Optional parameter to include mockups from all catalogs. If false or omitted, only mockups from the default catalog are returned. Set to true to fetch from all catalogs.
Namenametext
Optional parameter to filter mockups by name.

Outputs

dataobject
The response from Dynamic Mockups.
Example output
{
  "data": {
    "data": [
      {
        "collections": [
          {}
        ],
        "name": "example",
        "smart_objects": [
          {}
        ],
        "text_layers": [
          {}
        ],
        "thumbnail": "example",
        "thumbnails": [
          {}
        ],
        "uuid": "example"
      }
    ],
    "message": "example",
    "success": true
  }
}

Render a mockup

Render a mockup.

Inputs

Mockup uuidmockup_uuidtextRequired
The UUID of the mockup template.
Export labelexport_labeltext
A label for the exported image.
Export optionsexport_optionsobject
Export options.
Smart objectssmart_objectslistRequired
List of smart objects inside a chosen mockup.
Text layerstext_layerslist
List of text layers for the chosen mockup.

Outputs

dataobject
The response from Dynamic Mockups.
Example output
{
  "data": {
    "data": {
      "export_label": "example",
      "export_path": "example"
    },
    "message": "example",
    "success": true
  }
}

On this page