Before you start
- An API key from your dashboard.
- An Adalo plan that includes Custom Actions.
- 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
Create the Custom Action
Select a button, choose Add Action, then Custom Action, New Custom
Action, and name it
Render Mockup. Set the method to POST and the URL
to https://api.sudomock.com/api/v1/renders. Adalo does not offer Custom
Actions on a form submit button, so use a regular button.2
Add the headers
Select Add Header twice. Name the first
x-api-key and paste your key
into it. Name the second Content-Type and set it to application/json.3
Define the Inputs
In the Inputs panel, select Add Input for every value that changes
per user or per record. One is enough to start: name it
Design URL, type
Text, and give it a real public image URL as the Example Value.4
Build the body
Paste the body, then select the artwork URL string, keep the surrounding
quotes, and insert your
Design URL input with the Magic Text button.
Leave the inserted token exactly as Adalo writes it.5
Run the test and save the Output
Select Run Test Request. On success, select Add Item under Outputs,
add the render URL field as a
Text output named Render URL, then save
straight away. Each re-test clears the Outputs you added before it.The test spends credits, exactly like a production render. The current
credit weights are on pricing.
6
Bind the Inputs on the button
Example Values only feed the test. Open the button’s actions, select
Render Mockup, and bind each Input with the Magic Text button to the
record that holds the real value. In a follow up action, write
Render URL
onto the record. Adalo saves Custom Actions at team level, so editing this
one later changes it in every app that uses it.What comes back
The finished image URL arrives atdata.print_files[0].export_path. The whole
response, field by field, is on
Render a PSD mockup.
Adalo lists Text, Number, and Date/Time response fields, and a field
nested inside an array does not always appear. If export_path is missing from
the Outputs list, send the same call through Make or
Zapier and hand the URL back to Adalo as one flat text
value.
When a render fails
Everything about the output image, the format, the size, which layers are
filled, and the text overrides, is controlled by the request body. Every field
is on the render endpoint,
and every status is listed in Errors.