Before you start
- An API key from your dashboard.
- A template. Upload a PSD if you do not have one.
- Artwork at a URL that loads without signing in, because SudoMock fetches it.
uuid and a smart_objects array holding the
uuid of every layer you can fill. That page has the call ready to copy in
eight languages. Read the pair once and keep it.
Guide
1
Pick a trigger
Create a Zap and choose the app that holds the design: a new store order, a
new spreadsheet row, a new database record.
2
Add Webhooks by Zapier
Choose Webhooks by Zapier as the action and the Custom Request
event. Set the method to
POST and the URL to
https://api.sudomock.com/api/v1/renders.3
Add the headers
Enter two headers. The first is named
x-api-key and holds your key. The
second is named Content-Type and holds application/json.4
Write the body
Paste the body into Data, then replace the artwork URL with the field
from your trigger using Zapier’s field picker. Keep the surrounding quotes.
5
Test it
Run the test. Zapier shows the response body, and the finished image URL
sits at
data.print_files[0].export_path. Add whatever action should
receive it: write it back to the row, attach it to the order, send it to
the customer.What comes back
The finished image URL arrives atdata.print_files[0].export_path, and the
whole response, field by field, is on
Render a PSD mockup.
Zapier usually exposes data print_files 0 export_path in the field picker of
the next step. When it does not, add a Code by Zapier step that parses
inputData.response and returns that one string as a named field.
An example Zap
- Shopify fires on a new order that carries a custom design.
- Filter by Zapier stops the run when the order has no design URL.
- Webhooks by Zapier renders the mockup.
- Gmail sends the finished image to the customer for approval.
When a render fails
A401 means the x-api-key header is missing or incomplete. A 422 names the
field it rejected, and is almost always an empty trigger field arriving as an
empty string. A download failure means the design URL asks for a login. Every
status is listed in Errors.