# Render Print Files API

## Export Print Files

> Returns print files for each smart object in selected mockup template.

```json
{"openapi":"3.1.0","info":{"title":"Dynamic Mockups API","version":"1.0"},"servers":[{"url":"https://app.dynamicmockups.com/api/v1"}],"security":[{"apiKeyAuth":[]}],"components":{"securitySchemes":{"apiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key required for authentication."}}},"paths":{"/renders/print-files":{"post":{"summary":"Export Print Files","description":"Returns print files for each smart object in selected mockup template.","operationId":"exportPrintFiles","parameters":[{"in":"header","name":"Accept","required":true,"schema":{"type":"string","enum":["application/json"]},"description":"The request must accept JSON responses."},{"in":"header","name":"x-api-key","required":true,"schema":{"type":"string","description":"API key required for authentication."}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mockup_uuid":{"type":"string","description":"The UUID of the mockup template."},"export_label":{"type":"string","description":"A label for the exported image."},"export_options":{"type":"object","properties":{"image_format":{"type":"string","description":"The format of the exported image.","enum":["jpg","png","webp"]},"image_size":{"type":"integer","description":"The size in pixels of the exported image."},"mode":{"type":"string","description":"Determines whether the exported image should be viewed in the browser or downloaded.","enum":["view","download"]},"image_dpi":{"type":"integer","description":"Dots per inch for the exported print file."}}},"smart_objects":{"type":"array","description":"List of smart objects inside a chosen mockup.","items":{"type":"object","properties":{"uuid":{"type":"string","description":"The UUID of the smart object."},"asset":{"type":"object","properties":{"url":{"type":"string","description":"URL to the asset image."},"fit":{"type":"string","description":"How the asset fits within the designated area.","enum":["stretch","contain","cover"]},"size":{"type":"object","properties":{"width":{"type":"integer","description":"The width of the asset in pixels."},"height":{"type":"integer","description":"The height of the asset pixels."}}},"position":{"type":"object","properties":{"top":{"type":"integer","description":"The top position of the asset."},"left":{"type":"integer","description":"The left position of the asset."}}},"rotate":{"type":"number","description":"The rotation angle of the provided asset."}}},"pattern":{"type":"object","description":"Configuration for using the asset as a repeating pattern.","properties":{"enabled":{"type":"boolean","description":"Whether the asset is used as a repeating pattern."},"scale_percent":{"type":"number","description":"Scale of the pattern relative to the original asset size."}}},"color":{"type":"string","description":"Color overlay for the smart object in hex code."},"blending_mode":{"type":"string","description":"Blending mode applied to the smart object.","enum":["NORMAL","DISSOLVE","DARKEN","MULTIPLY","COLOR_BURN","LINEAR_BURN","DARKER_COLOR","LIGHTEN","SCREEN","COLOR_DODGE","LINEAR_DODGE","LIGHTER_COLOR","OVERLAY","SOFT_LIGHT","HARD_LIGHT","VIVID_LIGHT","LINEAR_LIGHT","PIN_LIGHT","HARD_MIX","DIFFERENCE","EXCLUSION","SUBTRACT","DIVIDE","HUE","SATURATION","COLOR","LUMINOSITY"]},"adjustment_layers":{"type":"object","description":"Optional adjustment layers applied to the smart object.","properties":{"brightness":{"type":"integer","description":"Brightness adjustment (from -150 to 150)."},"contrast":{"type":"integer","description":"Contrast adjustment (from -100 to 100)."},"opacity":{"type":"integer","description":"Opacity adjustment (from 0 to 100)."},"saturation":{"type":"integer","description":"Saturation adjustment (from -100 to 100)."},"vibrance":{"type":"integer","description":"Vibrance adjustment (from -100 to 100)."},"blur":{"type":"integer","description":"Blur adjustment (from 0 to 100)."}}},"print_area_preset_uuid":{"type":"string","description":"UUID of the print area preset to automatically position provided design asset."}}}},"text_layers":{"type":"array","description":"List of text layers for the chosen mockup.","items":{"type":"object","properties":{"uuid":{"type":"string","description":"The UUID of the text layer."},"text":{"type":"string","description":"The text content for the text layer."},"font_family":{"type":"string","description":"The font family of the text."},"font_size":{"type":"number","description":"The font size for the text in pixels."},"font_color":{"type":"string","description":"The color of the text in hex code."}}}}},"required":["mockup_uuid","smart_objects"]}}}},"responses":{"200":{"description":"Print files successfully exported.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"export_label":{"type":"string","nullable":true},"print_files":{"type":"array","items":{"type":"object","properties":{"export_path":{"type":"string","description":"URL to download the print file."},"smart_object_uuid":{"type":"string","description":"UUID of the smart object used in rendering."},"smart_object_name":{"type":"string","description":"Name of the smart object."}}}}}},"success":{"type":"boolean","description":"Indicates if the print file export was successful."},"message":{"type":"string","description":"A message about the export process."}}}}}},"400":{"description":"Bad request due to invalid input parameters."},"401":{"description":"Unauthorized request, invalid or missing API key."}}}}}}
```

Export OpenAPI specification for Render Print Files API

{% file src="<https://1410134351-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXeuL34FauPTZ6yb0wAep%2Fuploads%2FfPpadnyLa2IDEP4Cm5Ms%2Frender_print_files_api.json?alt=media&token=b391133e-c728-4bb4-a082-c22d412ee296>" %}

{% hint style="info" %}
The Render Print Files API does not yet support MockAnything templates. We're actively working on this and expect support to be available soon.
{% endhint %}

## Explanation

The **Render Print Files API** is used to export print files of all smart objects in a mockup template and is mostly used for printing purposes.

The request payload used for this API is the same that the [Render API](https://docs.dynamicmockups.com/api-reference/render-api) uses.

The only additional option is **export\_options.image\_dpi**

## export\_options.image\_dpi

An optional parameter, the default **DPI**(Dots Per Inch), will be inherited from the PSD file.

## Credits usage calculation

The Render Print Files API consumes 2 credits for each exported print file.
