Skip to main content
Make is a workflow automation platform that connects apps into scenarios. The official SudoMock app covers the render API. From inside a scenario you can upload a PSD, render it with new artwork, turn a product photo into a reusable mockup, render a short video, and hand the finished file to the next module.

Install the app

1

Find SudoMock in Make

Search for SudoMock in the module picker of any scenario. The listing on Make shows every trigger and action the app offers.
2

Create an API key

Create a key in your dashboard and copy it once. Confirm it is live before you build the scenario:
3

Add your SudoMock connection

Add any SudoMock module to a scenario. Make asks for a connection the first time. Paste the key into API key. Make verifies it against your account and shows the matching email, so a wrong key fails at setup instead of mid run.
4

Render your first mockup

Add the Render a mockup module, pick your connection, enter the mockup UUID, and map a design URL onto the smart object you want to fill. Run the scenario once. Upload a PSD first if you do not have a template yet.
The finished image URL arrives on the module output at print_files[0].export_path. Map it straight into the next module.

Modules

Get PSD mockup layers lists every layer of a template with its UUID, including the layers inside its smart objects. Map some of those UUIDs into Hidden layers on Render a mockup to leave those layers out of one render; the template itself does not change. Watch events starts a scenario when a SudoMock job finishes. Pick the event types it listens to, or leave the field empty to receive every event. Each delivery is signed by SudoMock, and the trigger drops any request whose signature does not match or that is more than five minutes old. Make an API call reaches any endpoint that has no module of its own. Enter a path below https://api.sudomock.com, including the API version. The connection supplies the key, so do not add a header yourself.

Repeat a design as a pattern

Render a mockup takes Tile on a smart object’s Asset, and the artwork repeats as a pattern across the whole smart object. Size is one tile, Fit places the artwork inside each tile, and Position sets where the grid starts, so a tile needs a Size. Tile spacing leaves a gap between the tiles, from 0 to 100 percent of the tile: that percent of the tile width between columns, and of its height between rows. Render a video offers the same fields on the smart objects it fills. Render a photo mockup takes Tile and Tile spacing in a render target’s Placement, where the size you set is one tile: Fit, or Width and Height, on a print area, and Coverage, or Width and Height, on a surface.

Keep a print area’s id

Set photo mockup print areas keeps an area’s id when that area carries its Print area ID, so a scenario that stored the id keeps rendering to it after the area moves.

Long renders and the Get a job module

A render sent with is_async returns a job id right away, so a scenario never waits on the response. Follow it with the Get a job module and branch on the status field, or start a separate scenario with Watch events, which runs as soon as the job finishes. The first three mean the work is still in flight. The last three are terminal, so a router that stops on those three never loops forever. Every field is on the jobs endpoint.

An example scenario

Here is a scenario you can build with two modules:
  1. Google Sheets watches a sheet for new rows.
  2. SudoMock renders the template using the design URL from that row.
The trigger and action pattern works with any app Make connects. Post the finished image to a chat channel, write it back to the sheet, or push it to a store listing.
Every SudoMock module reads the same connection, so one key is enough for a whole organization.