# Dynamic Mockups

> Browse mockup templates and render designs.

App · 7 actions. Web page: https://docs.lodol.com/docs/integrations/dynamic-mockups

## Actions

### Create a catalog

Create a catalog.

**Inputs**

- Name (`name`, text, required): The name of the custom catalog to create.

**Outputs**

- `data` (object): The response from Dynamic Mockups.

**Example output**

```json
{
  "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 (`name`, text, required): The name of the collection to create.
- Catalog uuid (`catalog_uuid`, text): Optional UUID of the catalog to place this collection in. If not provided, uses the default catalog.

**Outputs**

- `data` (object): The response from Dynamic Mockups.

**Example output**

```json
{
  "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_id`, text, required): The UUID of the mockup to retrieve.

**Outputs**

- `data` (object): The response from Dynamic Mockups.

**Example output**

```json
{
  "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**

- `data` (object): The response from Dynamic Mockups.

**Example output**

```json
{
  "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_uuid`, text): Optional UUID of the catalog to filter collections by.
- Include all catalogs (`include_all_catalogs`, true/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**

- `data` (object): The response from Dynamic Mockups.

**Example output**

```json
{
  "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_uuid`, text): Optional parameter to filter mockups by catalog UUID.
- Collection uuid (`collection_uuid`, text): Optional parameter to filter mockups by collection UUID.
- Include all catalogs (`include_all_catalogs`, true/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 (`name`, text): Optional parameter to filter mockups by name.

**Outputs**

- `data` (object): The response from Dynamic Mockups.

**Example output**

```json
{
  "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_uuid`, text, required): The UUID of the mockup template.
- Export label (`export_label`, text): A label for the exported image.
- Export options (`export_options`, object): Export options.
- Smart objects (`smart_objects`, list, required): List of smart objects inside a chosen mockup.
- Text layers (`text_layers`, list): List of text layers for the chosen mockup.

**Outputs**

- `data` (object): The response from Dynamic Mockups.

**Example output**

```json
{
  "data": {
    "data": {
      "export_label": "example",
      "export_path": "example"
    },
    "message": "example",
    "success": true
  }
}
```
