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:
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!
Last updated