Skip to main content
POST

Authorizations

x-api-key
string
header
required

API key with sm_ prefix. Get your key at https://sudomock.com/dashboard/api-keys

Path Parameters

mockup_id
string
required

Body

application/json

Body for POST /api/v1/photo-mockups/{mockup_id}/render.

The mockup UUID is taken from the path; the body carries only per-print-area artwork configuration and export options.

print_areas
PhotoMockupPrintAreaRender · object[]
required

Artwork configuration per render target. Use uuid for a saved print area, and surface_uuid for a whole product surface. A product can be rendered either way, and saving a print area on it does not take its surface away.

Required array length: 1 - 8 elements
export_options
ExportOptions · object

Export configuration for format, size and quality. Every field has a default, so the whole object is optional.

Example:
is_async
boolean
default:false

If true, the render is QUEUED and the call returns 202 immediately with a job_id (poll GET /api/v1/jobs/{job_id}, or receive a webhook if one is configured); result_url carries the rendered image URL on success. If false (default), the render runs synchronously and returns the result.

Response

Successful Response

The finished photo-mockup render and where to fetch it.

data
PhotoMockupRenderResult · object
required

Rendered output files

success
boolean
default:true

Success status