To upload assets that can be used in render flow we the the following endpoint:
POST [<https://api.mockupsjar.com/mockups/upload>](<https://api.mockupsjar.com/mockups/upload>)
Options:
image
containing the base64-encoded image data.Don’t forget to add the authorization token in the headers.
More information can be found on this page Authentication
Valid response: 200 Ok
{
"status": "success",
"data": {
"upload": "<https://mockupsjar-production.s3-eu-west-1.amazonaws.com/uploads/image-vHWbtHepJIPqsIq5>"
}
}
Invalid response: 500 Exception
After you have the url for the uploaded asset you can use this url in the render flow.
POST <https://api.mockupsjar.com/mockups/render/><mockup-name>
{
zoomLevel: 1,
format: "jpg",
input: [
"uploaded asset url",
]
}
More information can be found on this page Simple Render
Sample base64 image