Dynamic Mockups
App · 7 actions
Browse mockup templates and render designs.
Actions
| Action | What it does |
|---|---|
| Create a catalog | Create a catalog. |
| Create a collection | Create a collection. |
| Get a mockup template | Get a mockup template. |
| List catalogs | List catalogs. |
| List collections | List collections. |
| List mockup templates | List mockup templates. |
| Render a mockup | Render a mockup. |
Create a catalog
Create a catalog.
Inputs
- Name
nametextRequired - 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
- Name
nametextRequired - The name of the collection to create.
- Catalog uuid
catalog_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
- Mockup
mockup_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 uuid
catalog_uuidtext - Optional UUID of the catalog to filter collections by.
- Include all catalogs
include_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 uuid
catalog_uuidtext - Optional parameter to filter mockups by catalog UUID.
- Collection uuid
collection_uuidtext - Optional parameter to filter mockups by collection UUID.
- Include all catalogs
include_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.
- Name
nametext - 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 uuid
mockup_uuidtextRequired - The UUID of the mockup template.
- Export label
export_labeltext - A label for the exported image.
- Export options
export_optionsobject - Export options.
- Smart objects
smart_objectslistRequired - List of smart objects inside a chosen mockup.
- Text layers
text_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
}
}