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
  • Missing "Accept: application/json" header
  • (401) Missing API Key
  • (422) Invalid Mockup UUID
  • (422) invalid Smart Object UUID
  • (400) Wrong file URL extension provided
  • Getting 500 server errors?

Was this helpful?

  1. Getting Started

Troubleshooting

PreviousFrequently Asked QuestionsNextRender API

Last updated 9 months ago

Was this helpful?

Here you can find the most common issues you may encounter in our API integration.

Missing "Accept: application/json" header

Our API returns a JSON-formatted response.

If your client does not accept application/json, you may encounter some weird responses such as HTML or not well-formatted response messages.

To avoid any confusion, always send the "Accept: application/json" header parameter in any API call.

(401) Missing API Key

If you get 401 status code and the following response:

{
    "message": "Unauthorized"
}

You are probably missing the x-api-key header in your API call or your API key is not valid.

To get your API Key you can create one visiting page.

(422) Invalid Mockup UUID

Our requires Mockup UUID to know what mockup you want to render.

If you provided an invalid Mockup UUID or didn't provide it at all you may see this response:

{
    "message": "The selected mockup uuid is invalid.",
    "errors": {
        "mockup_uuid": [
            "The selected mockup uuid is invalid."
        ]
    }
}

There are two ways to fix this issue.

One is to copy Mockup UUID from the web application URL. Example image below.

(422) invalid Smart Object UUID

If you provided an invalid Smart Object UUID you may see this response:

{
    "message": "The selected smart_objects.0.uuid is invalid.",
    "errors": {
        "smart_objects.0.uuid": [
            "The selected smart_objects.0.uuid is invalid."
        ]
    }
}

There are two ways to fix this issue.

One is to copy Smart Object UUID from the web application URL. Example image below.

(400) Wrong file URL extension provided

If you provide any other, such as SVG, you may see this response:

{
    "success": false,
    "message": "Wrong file URL extension provided. svg is not supported. Supported values are: jpg, jpeg, png, webp, gif"
}

Getting 500 server errors?

This is not an expected behavior from our API.

Another way is to call to get all the available mockups from your account and their Mockup UUIDs.

Same as Mockup UUID, our requires Smart Object UUID to know what place inside a mockup you want to render and where you probably want to put your design asset.

Another way is to call to get all the available mockups from your account and their available smart objects with UUIDs.

When you provide the design asset you want to render on the mockup using , we accept the following file extensions: JPG, JPEG, PNG, WEBP, GIF

In this case, please and we will resolve the issue as soon as possible.

API Dashboard
Render API
Get Mockups API
Render API
Get Mockups API
Render API
contact us
Copy Mockup UUID from the URL