Dynamic Mockups API
  • 🔑Get your API Key
  • 👋Get support via Slack
  • 🚀Get your first render in 1 minute
  • Getting Started
    • How does the API work?
    • How can I get my API key?
    • How are API calls billed?
    • How can I get support?
    • Frequently Asked Questions
    • Troubleshooting
  • API REFERENCE
    • Render API
    • Get Mockups API
    • Get Collections API
    • PSD Upload API
  • PRODUCT API REFERENCE
    • Render Product Images API
    • Get Products API
  • Mockup Editor SDK
    • Embed Mockup Editor
    • Embed in bubble.io
    • Editor Configuration
  • Knowledge Base
    • Tutorials
      • PSD Formatting Guide for Uploading to Dynamic Mockups
      • How to provide image link from Google Drive to Render API
      • How to render images using Zapier
      • How to render images using Make
    • Changelog
    • Photoshop API Feature Support
Powered by GitBook
On this page
  • Run this request in a Postman
  • Run this request from one of these
  • What to do now?
  • Congratulations! Use full potential now from our Render API!

Was this helpful?

Get your first render in 1 minute

Thanks to our already prepared sandbox request, you can see a render in a minute!

Run this request in a Postman

We did everything for you. Just copy everything below.

This request is using API KEY and Mockup from our sandbox account.

POST https://app.dynamicmockups.com/api/v1/renders

In Authorization, add the following:

  • Type: API Key

  • Key: x-api-key

  • Value: bdf8301a-ef40-457d-8f2e-0d91e18726a0:d1c144ad6cbe665f680584d9a917a2a56c2ae07bd9ddc102cdd881604a159691

In the raw JSON body, add the following:

{
  "mockup_uuid": "9ffb48c2-264f-42b9-ab86-858c410422cc",
  "smart_objects": [
            {
                "uuid": "cc864498-b8d1-495a-9968-45937edf42b3",
                "asset": {
                    "url": "https://app-dynamicmockups-production.s3.eu-central-1.amazonaws.com/static/api_sandbox_icon.png"
                    //or add your design asset URL from the link
                }
            }
    ]
}

Run this request from one of these

Not using Postman? No worries, get rendered image by running from one of these:

curl -X POST https://app.dynamicmockups.com/api/v1/renders \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "x-api-key: bdf8301a-ef40-457d-8f2e-0d91e18726a0:d1c144ad6cbe665f680584d9a917a2a56c2ae07bd9ddc102cdd881604a159691" \
-d '{
  "mockup_uuid": "9ffb48c2-264f-42b9-ab86-858c410422cc",
  "smart_objects": [
    {
      "uuid": "cc864498-b8d1-495a-9968-45937edf42b3",
      "asset": {
        "url": "https://app-dynamicmockups-production.s3.eu-central-1.amazonaws.com/static/api_sandbox_icon.png"
      }
    }
  ]
}'
const axios = require('axios');

const url = 'https://app.dynamicmockups.com/api/v1/renders';
const apiKey = 'bdf8301a-ef40-457d-8f2e-0d91e18726a0:d1c144ad6cbe665f680584d9a917a2a56c2ae07bd9ddc102cdd881604a159691';

const data = {
  mockup_uuid: '9ffb48c2-264f-42b9-ab86-858c410422cc',
  smart_objects: [
    {
      uuid: 'cc864498-b8d1-495a-9968-45937edf42b3',
      asset: {
        url: 'https://app-dynamicmockups-production.s3.eu-central-1.amazonaws.com/static/api_sandbox_icon.png'
      }
    }
  ]
};

axios.post(url, data, {
  headers: {
    'Content-Type': 'application/json',
    'Accept': 'application/json',
    'x-api-key': apiKey
  }
})
.then(response => {
  console.log('Response:', response.data);
})
.catch(error => {
  console.error('Error:', error.response ? error.response.data : error.message);
});
import requests

url = 'https://app.dynamicmockups.com/api/v1/renders'
api_key = 'bdf8301a-ef40-457d-8f2e-0d91e18726a0:d1c144ad6cbe665f680584d9a917a2a56c2ae07bd9ddc102cdd881604a159691'

data = {
    "mockup_uuid": "9ffb48c2-264f-42b9-ab86-858c410422cc",
    "smart_objects": [
        {
            "uuid": "cc864498-b8d1-495a-9968-45937edf42b3",
            "asset": {
                "url": "https://app-dynamicmockups-production.s3.eu-central-1.amazonaws.com/static/api_sandbox_icon.png"
            }
        }
    ]
}

headers = {
    'Content-Type': 'application/json',
    'Accept': 'application/json',
    'x-api-key': api_key
}

response = requests.post(url, json=data, headers=headers)

if response.status_code == 200:
    print('Response:', response.json())
else:
    print('Error:', response.status_code, response.text)
const url = 'https://app.dynamicmockups.com/api/v1/renders';
const apiKey = 'bdf8301a-ef40-457d-8f2e-0d91e18726a0:d1c144ad6cbe665f680584d9a917a2a56c2ae07bd9ddc102cdd881604a159691';

const data = {
  mockup_uuid: '9ffb48c2-264f-42b9-ab86-858c410422cc',
  smart_objects: [
    {
      uuid: 'cc864498-b8d1-495a-9968-45937edf42b3',
      asset: {
        url: 'https://app-dynamicmockups-production.s3.eu-central-1.amazonaws.com/static/api_sandbox_icon.png'
      }
    }
  ]
};

fetch(url, {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Accept': 'application/json',
    'x-api-key': apiKey
  },
  body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => {
  console.log('Response:', data);
})
.catch(error => {
  console.error('Error:', error);
});
<?php

$url = 'https://app.dynamicmockups.com/api/v1/renders';
$apiKey = 'bdf8301a-ef40-457d-8f2e-0d91e18726a0:d1c144ad6cbe665f680584d9a917a2a56c2ae07bd9ddc102cdd881604a159691';

$data = [
    "mockup_uuid" => "9ffb48c2-264f-42b9-ab86-858c410422cc",
    "smart_objects" => [
        [
            "uuid" => "cc864498-b8d1-495a-9968-45937edf42b3",
            "asset" => [
                "url" => "https://app-dynamicmockups-production.s3.eu-central-1.amazonaws.com/static/api_sandbox_icon.png"
            ]
        ]
    ]
];

$headers = [
    'Content-Type: application/json',
    'Accept: application/json',
    'x-api-key: ' . $apiKey
];

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));

$response = curl_exec($ch);

if (curl_errno($ch)) {
    echo 'Error:' . curl_error($ch);
} else {
    echo 'Response: ' . $response;
}

curl_close($ch);

What to do now?

We used mockup_uuid and smart_objects from our already prepared sandbox account. Now you can create yours.

STEP 3: Copy Mockup UUID and Smart Object UUID from the URL and place them instead of the ones we prepared for you and that's it!

Congratulations! Use full potential now from our Render API!

NextGetting Started

Last updated 4 months ago

Was this helpful?

STEP 1: You can create your account and API KEY for FREE. .

STEP 2: Choose one of 1000s other Mockups in our .

Our Render API can do much more! Go to and use the full potential!

🚀
Sign up here
Mockup Library
Render API
The place you can find Mockup UUID and Smart Object UUID