>_
SudoMock

Make (Integromat)

Build powerful visual automations with Make. Perfect for complex scenarios with branching logic and data transformations.

Visual Workflow Builder

Drag-and-drop interface with powerful data mapping and transformation tools

Why Make + SudoMock?

Visual Data Mapping

Intuitive interface for complex data transformations

Branching & Routers

Build conditional workflows with multiple paths

Error Handling

Built-in retry logic and error routes

Scheduling

Run scenarios on custom schedules

Quick Setup

Use Make's HTTP module to connect to SudoMock:

1

Create a New Scenario

In Make, click "Create a new scenario" and add your trigger module.

2

Add HTTP Module

Add an HTTP → Make a request module and configure:

  • URL: https://api.sudomock.com/api/v1/renders
  • Method: POST
  • Body type: Raw
  • Content type: JSON (application/json)
3

Configure Headers

Add the required headers:

Headers Configuration
1
Name: X-API-KEY
2
Value: sm_your_api_key_here
3
4
Name: Content-Type
5
Value: application/json
4

Set Request Body

Use Make's data mapping to construct the JSON body:

Make Request Body with Variables
1
{
2
"mockup_uuid": "{{1.mockup_uuid}}",
3
"smart_objects": [
4
{
5
"uuid": "{{1.smart_object_uuid}}",
6
"asset": {
7
"url": "{{1.design_url}}",
8
"fit": "cover"
9
}
10
}
11
],
12
"export_options": {
13
"image_format": "webp",
14
"image_size": 1920,
15
"quality": 95
16
}
17
}

Advanced Features

Using Routers for Multiple Mockups

Use Make's router to generate different mockup types based on product category:

Router Configuration
1
// Router Setup:
2
// Route 1: T-Shirts → Use tshirt_mockup_uuid
3
// Route 2: Hoodies → Use hoodie_mockup_uuid
4
// Route 3: Mugs → Use mug_mockup_uuid
5
6
// Filter condition example for Route 1:
7
{{1.product_type}} equals "t-shirt"

Bulk Processing with Iterator

Process multiple designs from an array using Make's Iterator:

Get ArrayIteratorSudoMockAggregator

Process each design in the array, then aggregate results back together.

Error Handling

Add error handlers to manage failures gracefully:

  1. Right-click the HTTP module
  2. Select "Add error handler"
  3. Choose Resume to continue or Break to stop
  4. Add notification module (Slack, email) to alert on failures
Error Handler Setup
1
// Error handler response mapping
2
Error Type: {{error.type}}
3
Error Message: {{error.message}}
4
HTTP Status: {{error.response.statusCode}}
5
6
// Retry directive (for Break handler)
7
Max retries: 3
8
Interval: 60 seconds

Parsing Response

Make automatically parses JSON responses. Access the mockup URL directly:

Response Mapping
1
// Access rendered mockup URL
2
{{2.data.print_files[].export_path}}
3
4
// Or use first item
5
{{2.data.print_files[1].export_path}}
6
7
// Check success status
8
{{2.success}}

Data Store

Use Make's Data Store to cache mockup UUIDs and map product types to templates. This makes your scenarios more maintainable.

Scheduling Scenarios

Run your mockup generation on a schedule:

  • Immediately: Triggered by external events (webhooks)
  • Interval: Every X minutes/hours
  • Daily: At specific times
  • Advanced: Custom cron expressions

Explore Other Integrations

Check out our guides for n8n and Zapier.